C programming language  *include comments Inside the main function write code that estimates the temperature in a freezer (in °C) given the elapsed time (hours) since a power failure. Assume this temperature (?) is given by ? = 4?2 ? + 2 − 20 where ? is the time since the power failure. The program should prompt the user to enter how long it has been since the start of the power failure in hours and minutes. Note that you will need to convert the elapsed time into hours. Example. If the user enters 3 for hours and 30 minutes, this would need to be converted into 3.5 hours

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 4E: (General math) a. Write a function named rightTriangle() that accepts the lengths of two sides of a...
icon
Related questions
Question

C programming language 

*include comments

Inside the main function write code that estimates the temperature in a freezer (in °C) given the
elapsed time (hours) since a power failure. Assume this temperature (?) is given by
? =
4?2
? + 2
− 20
where ? is the time since the power failure. The program should prompt the user to enter how
long it has been since the start of the power failure in hours and minutes. Note that you will need
to convert the elapsed time into hours. Example. If the user enters 3 for hours and 30 minutes,
this would need to be converted into 3.5 hours

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning