Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the same dataset , we are going to find out a few things aboutRiverside’s

ID: 3610763 • Letter: U

Question

Using the same dataset, we are going to find out a few things aboutRiverside’s climate*. Modify your lab 3 code to answer thefollowing questions:


Explanation / Answer

please rate - thanks I checked most of the numbers If I had known about these I would have done it differently fromthe beginning, so the code is a slight mishmash #include #include #include #include using namespace std; double mean(int [],int); double standardd(int[],int, double); double calc(int, double); int main(){ string month,htempm,ltempm,precip,pmonth="",rainm,ctempm,coldestm ; inthtempd,ltempd,htempy,ltempy,max=-1000,min=1000,rainc=0,ctempd,ctemp=1000; int ctempy,coldt=1000,tottemp=0,daycount=0; doubletotrain=0,rain,maxrain=0,mrain=0,average,sd,atemp,coldesttemp=1000; int meantemps[365],day=0; stringstream s; int count=0,i; int in[11],sum=0; ifstream input; input.open("temp.txt");          //open file   if(input.fail())            //is it ok?        { coutmonth; while(input)     {if(month!=pmonth)        {if(mrain>maxrain)           {rainm=pmonth;            maxrain=mrain;            }            atemp=tottemp/(daycount*1.);                    if(atempin[i];     input>>precip;     tottemp+=in[3];     meantemps[day++]=in[3];     daycount++;     if(precip!="T")         {stringstreams(precip);          s >>rain;          totrain+=rain;          if(totrain!=0)            rainc++;          }     mrain+=rain;     sum+=in[9];     count++;     if(in[2]>max)        {max=in[2];        htempm=month;        htempy=in[1];        htempd=in[0];        }      if(in[4]month; } if(mrain>maxrain)     {rainm=pmonth;     maxrain=mrain;     } atemp=tottemp/(daycount*1.); if(atemp