Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Heres an example in Python python Declare variables temperaturesum 0 numtemperat... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

Students also viewed these Computer Network questions

Question

If z = 3 j5, find the value of in (z).

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago

Question

Calculate the account balance for each of the following:

Answered: 1 week ago