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

1. Read data from a user defined file name. (the data tobe used can be obtained

ID: 3610692 • Letter: 1

Question

1. Read data from a user defined file name. (the data tobe used can be obtained here)

2. Design and implement an array(s) to read in and storethe data in that file

3. Traverse the array(s) to determine:

a) The highest temperature of 2006, and what day itoccurs on

b) The lowest temperature of 2006, and what day itoccurs on

c) And average humidity in 2006

The data catalogues temperature readings, dew point values,humidity, and measured precipitation throughout the year 2006. Youwill need to declare multiple single dimensional arrays (or onemultidimensional array) in order to store the information needed toperform the previously mentioned tasks. In addition, this labshould be a refresher on how to do file handling and reading from afile. All of the data is separated by whitespace, so parsing thedata should be a non-issue. There may be more information in thatfile than is necessary, so it is up to you to decide 1) whatinformation is important (and should it be stored?) 2) what data isnot useful (and should it be stored?) and 3) how are you going touse that data?


Explanation / Answer

please rate - thanks #include #include using namespace std; int main(){ string month,htempm,ltempm,precip ; int htempd,ltempd,htempy,ltempy,max=-1000,min=1000; 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)     {     for(i=0;i>in[i];     input>>precip;     sum+=in[9];     count++;     if(in[2]>max)        {max=in[2];        htempm=month;        htempy=in[1];        htempd=in[0];        }      if(in[4]>month; } cout