System Temperature Calculation Problem

We are going to simulate a small utility program that records the temperature inside the computer box. Each minute, the temperature is taken and stored in an array. Our program will read this array and calculate the highest, lowest and average temperature.

Since we don't have the tools yet to create the array automatically, we will prompt the user for the numbers. We will assume that the array will hold ten temperature readings.

Inputs

Input will consist of a sequence of temperatures in Celsius.

Outputs

Show the highest, lowest and average temperatures.

Notes

Answer

Here is one solution to this problem.