Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Fundamentals of Electric Circuits

Authors: Charles K Alexander, Matthew Sadiku

6th edition

78028221, 9781260226409, 978-0078028229

More Books

Students also viewed these General Management questions

Question

Why does a confined particle have quantized energy levels?

Answered: 1 week ago

Question

2. Use the working-backward strategy to plan a party.

Answered: 1 week ago

Question

Solve the following 1,4 3 2TT 5x- 1+ (15 x) dx 5X

Answered: 1 week ago

Question

4. How does a sex-linked gene differ from a sex-limited genepg99

Answered: 1 week ago