Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE C LANGUAGE***** Write a program that simulates an AC/Heater control system. The program reads the room temperature and uses the conditions shown in Fig.

USE C LANGUAGE*****image text in transcribed

Write a program that simulates an AC/Heater control system. The program reads the room temperature and uses the conditions shown in Fig. 2 to determine the AC and heater states. The program displays Temp, AC state, and Heater state. Note that the desired temp is fixed at 72.5 F. Assign the states with integer numbers, e.g., 3- high, 2- med, 1- low, or 0- off. Temperature Sensor Desired Temp = 72.5 Heater Desired Temp AC Fig. 1 States Heater AC High 3 Med 2 Low 1 Off -0 40 50 60 80 90Temp (F) Fig. 2-2 Program Flow: 1. Enter room temperature 2. Use Fig. 2 to get the state of the heater (3- high, 2- med, 1- low, or 0- off) and AC (3 - high, 2- med 1- low, or 0- off) Display the room temperature, AC state, and Heater state 3

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

a. Do team members trust each other?

Answered: 1 week ago