Question: Write a Raptor program that askes the user for 5 temperature inputs from 40 to 120 degrees F and then displays a table of the

Write a Raptor program that askes the user for 5 temperature inputs from 40 to 120 degrees F and then displays a table of the temperatures along with the average temperature and the minimum and maximum temperature.

Using loops, ask the user for 5 temperatures and store the temperature inputs in an array (load the array). Make sure you check that the inputs are in the range of 40 120. The array name follows the same naming convention as a variable.

You must load all the the user inputs into the array before beginning part 2. 

Using a loop, read the temperature values from the array (unload the array) and calculate the sum, average value of the 5 temperatures and the minimum and maximum temperatures. Display a list / table of the temperatures, average temperature and the min and max values.

Sample output: Temperature values ___________________ 45.6 67.2 45.8 55.7 70.1 Average temperature is: 56.88 degrees F. Minimum temperature is: 45.6 degrees F. Maximum temperature is: 70.1 degrees F. 

use flowchart

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!