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
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 One thing to consider is that the AC should turn off if the current humidity value is less than 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 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 AM to : AM the target temperature is
From AM to : PM the target temperature is
From PM to : PM the target temperature is
From PM to : AM the target temperature is
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 if the current relative humidity is greater than and the current target temperature is
Set the current target temperature to if the current relative humidity is greater or equal than and less or equal than and the current target temperature is
Set the current target temperature to if the current relative humidity is less than and the current target temperature is 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 F endl;or
cout "Changing target temperature to F endl;or
cout "Changing target temperature to F endl;
Output:
Given the following input, the expected output of your program is:
Enter the current relative humidity: Enter the current time: The current target temperature is F Changing target temperature to F
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
