Question: Dr . Aobo needs your help to solve a problem regarding the humidity levels of his home. After contacting an AC company, Dr . Rincon

Dr. Aobo needs your help to solve a problem regarding the humidity levels of his home. After contacting an AC company, Dr. Rincon was told that he needs to run the AC on cool to reduce the humidity of his house to a value that is less than 60%.
Fortunately, Dr. Rincons house has a smart thermostat that allows him to create an automation program to turn the AC on when the humidity values are equal or greater than 60%. One thing to consider is that the AC should turn off if the current humidity value is less than 60%(to reduce power consumption).
Your work is to write a C++ program to implement an automation program to reduce the humidity in Dr. Rincons house based on the rules presented below.
Input:
A positive integer value representing the current relative humidity of the house. You must use the following output message when requesting the information from STDIN (standard input):
cout << "Enter the current relative humidity: ";
A positive integer value representing the current time in hours (using the 24-hour format). You must use the following output message when requesting the information from STDIN (standard input):
cout << "Enter the current time: ";
Process:
Given the current time, you must access the information about the current target temperature from the smart thermostat.
The target temperature on Dr. Rincons home is based on the following schedule:
From 6 AM to 7:59 AM, the target temperature is 76.
From 8 AM to 5:59 PM, the target temperature is 78.
From 6 PM to 8:59 PM, the target temperature is 75.
From 9 PM to 5:59 AM, the target temperature is 72.
After determining the current target temperature based on the current time, your program must implement an automation programto reduce the current relative humidity based on the following rules:
Set the current target temperature to 73 if the current relative humidity is greater than 65 and the current target temperature is 78.
Set the current target temperature to 76 if the current relative humidity is greater or equal than 60 and less or equal than 65 and the current target temperature is 78.
Set the current target temperature to 78 if the current relative humidity is less than 60 and the current target temperature is 76(to reduce power consumption).
Output:
The current target temperature based on the schedule. You must use the following output message:
cout << "The current target temperature is "<</* variable with target Temperature */<<"F"<< endl;
The change in the current target temperature (if needed). You must use the following output messages:
cout << "Changing target temperature to 73F"<< endl;or
cout << "Changing target temperature to 76F"<< endl;or
cout << "Changing target temperature to 78F"<< endl;
Output:
Given the following input, the expected output of your program is:
Enter the current relative humidity: 66 Enter the current time: 9 The current target temperature is 78F Changing target temperature to 73F

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 Programming Questions!