Extend the program in Problem 5 so that it also outputs the maximum and minimum barometric readings for each day on file differences.dat, and then outputs the maximum and minimum readings for the year on cout at the end of the run.
REF PRB:
You are working on a project that requires climate data for a location. The maximum daily change in barometric pressure is one aspect of climate that your company needs. You have a file (barometric.dat) containing hourly barometer readings taken over the course of a year. Each line of the file contains the readings for a single day, separated by blanks. Each reading is expressed in inches of mercury, so it is a decimal number ranging from approximately 28.00 to 32.00. For each line of data, you need to determine the maximum and minimum readings, and output the difference between those readings to file differences.dat. Each output value should appear on a separate line of the file. Once the file has been read, the program should output the greatest and least differences for the year on cout. Develop the program using functional decomposition, and use proper style and documentation in your code. Your program should make appropriate use of value-returning functions in solving this problem.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.