Exercise 06: Estimate The Temperature In A Freezer

Date completed: 31/08/2019

Write a program that estimates the temperature in a freezer (in °C) given the elapsed time (hours) since a power failure. Assume this temperature ( T ) is given by:

T = 4t 2 t + 2 - 20

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 entered 2 30 (2 hours 30 minutes), you would need to convert this to 2.5 hours.

The Created Code

The created source code can be found here. It has been compressed in to a 7-Zip file.

Some screen prints

Description Screen Print Out
The output as seen in the command prompt c_s01_ex06 image