Question
Write a program that estimates the temperature in a freezer (in Celsius) given the elapsed time in hours) since a power failure. Assume this temperature
Write a program that estimates the temperature in a freezer (in Celsius) given the elapsed time in hours) since a power failure. Assume this temperature (T) is given by the following equation 412 T= -20 t+2 Where t is the time since the power failure. Your program should prompt the user to enter how long it has been since the start of the power failure in whole hours and minutes. Note that you will need to convert the elapsed time into hours. For example, if the user enters 2 (hours) 30 (minutes), you would need to convert this to 2.5 hours. If you did not choose integer for the input for hours earlier, you should change it to int for this assignment. Minutes can be either int or float/double. Pre-lab Assignment: 1. Write down parts of step 2 analysis: a. Input: b. Output: C. Constraint: 2. Write down the complete pseudocode for this problem. Error checking is required. Refer to slides 19, 20, and 23 in Notes_3_C_1 for format. Add error checking to your assignment 3 C program. Refer to slides 21 and 24 for syntax. Before you turn in the program on D2L, make sure at least two results are included, one of which should use invalid inputs.
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