Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions