C++: Programming Problem - cin Max and Min

Name __________________________________

(10 points) Write a program that reads daily temperatures, as floats. Read in a loop until an EOF. After the input has been read, print the maximum and minimum values. You can assume that there is at least one input data value.

Sample input values

   10.0  11.3  4.5  -2.0  3.6  -3.3  0.0
The output should look something like the following. Formatting may vary.

   Maximum = 11.3
   Minimum = -3.3


Be careful in choosing the initial values for the maximum and minimum values. Will your program work correctly if all numbers are negative?