Final answer:
The Raptor program entails creating a flowchart to handle user input of 5 temperature values, validating them within a specific range, storing them in an array, and then calculating and displaying the average, minimum, and maximum temperatures along with a list of input temperatures.
Step-by-step explanation:
The task is to create a Raptor flowchart that can receive, validate, and process temperature inputs. The flowchart will include a loop to ask the user for 5 temperature inputs and will check if they are within the range of 40 to 120 degrees Fahrenheit. Valid inputs will then be stored in an array. After the temperature inputs have been collected, another loop will be used to unload the array and calculate the sum, average, minimum, and maximum temperature values. Finally, the program will display the temperatures in a table, as well as the average, minimum, and maximum temperatures.
Sample Raptor Flowchart Steps:
- Start the program.
- Declare an array to store temperature values.
- Loop 5 times asking the user for temperature input.
- Validate if the temperature is between 40 and 120 degrees F.
- Store the valid temperature in the array.
- Once all inputs are stored, begin another loop to read from the array.
- Calculate the sum, average, minimum, and maximum from the array values.
- Output the temperature values, average, minimum, and maximum temperatures.
- End the program.
For example, after executing the program, the output would be similar to this:
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.