Write code that averages 5 temperature values, then displays the average, but displays a message if the
Fantastic news! We've Found the answer you've been seeking!
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 variables that will be used throughout this code.
- Display a message that prompts the individual to input 5 variables.
- Use the function that will read the variables that were typed.
- Write an assignment statement that will average the temperatures that were typed.
- Write an if statement that will display a message if the temperature is below freezing.
- Write an else statement that will display the average.
- Build and execute the code.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: