Programming Problem Chapter 9-1 Pg. 447 Solution
You are working on a proect that requires climate data for a location. The maximum daily change in barometric pressure is one aspect of climaate that your company needs. You have a file (barometric.txt) 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.txt". 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.
You'll get 1 file (2.0KB)