Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started