Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c++ program with a class with following properties, and array as given in the question. please answer following all the given outlines and

Write a c++ program with a class with following properties, and array as given in the question. please answer following all the given outlines and make sure programme runs. thankyou image text in transcribed
Write a program that estimates the temperature, T in a freezer ( in C ) given the elapsed time, t (hours) since a power failure. Assume this temperature (T) is given by T=t+24t220 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: A data member to store hour A data member to store minutes A member function to ensure the minutes is in the range 0 to 59 A member function to convert the hour and minutes entered by user into hours. For example, the user enters 230 ( 2 hours 30 minutes), you would need to convert this into 2.5 hours - A member function to calculate T - And some other member functions as necessary - Create an array of 10 objects of FreezerTemp class. Each object will have different hour and minutes entered by the user EECE 1313 PROGRAMMING FOR ENGINEERS | GROUP PROJECTS 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

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago