Question: We would like to write a code for an automatic air conditioning system. This system controls temperature according to the season and the level of

 We would like to write a code for an automatic air

We would like to write a code for an automatic air conditioning system. This system controls temperature according to the season and the level of humidity. In this system, user first enter a number (1 - 4) to indicate the season according to the following table: then, she/he enters the humidity level. System controls inside temperature according to the following setting. During the humidity is above 40%, the temperature is set to 20C. Otherwise, temperature is set to 22C. During summer, in the humidity is above 40%, the temperature is set to 18C. If the humidity is below 20%, the temperature is set to 21C, otherwise, temperature 20C. During Fall, if the humidity is above 40%, the temperature is set to 24c. Otherwise, the temperature is set to 22C. During winter, the temperature is always at 24C

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!