Question: Write a C++program that will figure out how long it will take to heat/cool a room (using a simplified equation). Enter both the current temperature

 Write a C++program that will figure out how long it will

Write a C++program that will figure out how long it will take to heat/cool a room (using a simplified equation). Enter both the current temperature and the temperature being ventilated into the room. After 5 minutes, the two temperatures will "average". (So if the current room temperature is 70 degrees and you ventilate in 50 degrees, after 5 minutes the temperature will be (70+50)/2 60 degrees.) Have the program output the first time the room is within one degree of the ventilated temperature (at one of these 5 minute marks). Example 1 (user input is underlined): Initial room temperature: Ventilated air temperature: Time until temperature equalized: Example 2 (user input is underlined): 1 Initial room temperature: Ventilated air temperature: Time until temperature equalized

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!