Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please follow the given conditions and ensure the programme runs. thanks. Write in c++ Write a program that estimates the temperature, T in a freezer
Please follow the given conditions and ensure the programme runs. thanks.
Write in c++
Write a program that estimates the temperature, T in a freezer (in oc) given the elapsed time, t (hours) since a power failure. Assume this temperature (D is given by -20 Where t is the time since the power failed. Your program should prompt the user to enter how long it has been since the start of the power failure in whole hours and minute. Create a class called FreezerTemp with the following properties: o A data member to store hour A data member to store minutes o A member function to ensure the minutes is in the range 0 to 59 o A member function to convert the hour and minutes entered by user into hours. For example, the user enters 2 30 (2 hours 30 minutes), you would need to convert this into 2.5 hours A member function to calculate T 0 And some other member functions as necessary Create an array of 10 objects of FreeuerTemp class. o Each object will have different hour and minutes entered by the user EECE 1313 PROGRAMMING FOR ENGINEERS I GROUP PROJECTS o After all 10 objects have received their input (hours and minutes), sort the objects ascendingly and display the hour, minutes, and the temperature T for each Object.
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