Question: Write code that averages 5 temperature values, then displays the average, but displays a message if the average is below freezing (32 F). Declare the

Write code that averages 5 temperature values, then displays the average, but displays a message if the average is below freezing (32 F). Declare the variables that will be used throughout this code.

  1. Display a message that prompts the individual to input 5 variables.
  2. Use the function that will read the variables that were typed.
  3. Write an assignment statement that will average the temperatures that were typed.
  4. Write an if statement that will display a message if the temperature is below freezing.
  5. Write an else statement that will display the average.
  6. Build and execute the code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres an example in Python python Declare variables temperaturesum 0 numtemperat... View full answer

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 Computer Network Questions!