Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C programing Write code that averages 5 temperature values, then displays the average, but displays a message if the average is below freezing (32
Using C programing
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.
Record the complete code in the space provided
*Answer must be typed***
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started