Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago