Make a c++ program that will read in a list of temperatures from…

Question Answered step-by-step Make a c++ program that will read in a list of temperatures from… Make a c++ program that will read in a list of temperatures from standard input (in). all temperatures must be read and must be stored in an array. it can be assumed that there will no more than a thousand temperatures given. this is important because you have to declare an array of fixed size.If there is bad input for one number, store the special value Not-A-Number in the array at the given position, then continue reading further values. Not-A-Number can be stored by using the NAN macro defined in cmathuse cin.eof() (end-of-file) to determine when you have read in every value. Although you can assume there are no more than 1000 values, you cannot make an assumption about the exact number.there must be three output files:A list of “everyday high temp”. Since each temperature reading represents 1 hour, you must iterate through your array 24 values at a time. For each 24 value block, calculate the maximum value and print it out.Iterate through each temperature reading, one at a time. Calculate the mean of all temperatures from 12 hours prior to 11 hours ahead. When near the beginning or end of the array, you must be careful not to overrun the bounds of the array. E.g., if for hour #3, calculate the average of hours #0-#14. Print out a two-column table, with the raw temperature reading in the left column and the sliding window 24-hour average in the right column.The mean temperature of all readings, followed by the mean temperature of all readings except the highest, followed by the mean temperature of all readings except the two highest. Hint: use the maximum value function to find the highest value and then set it to NAN Make a makefile that builds this code as well Computer Science Engineering & Technology C++ Programming Share QuestionEmailCopy link Comments (0)