Question: Homework Assignment 1 2 Write a program that extends activity 2 with a variable desired temperature. The program will ask the user to enter a
Homework Assignment
Write a program that extends activity with a variable desired temperature. The program will ask the user to enter a desired temperature value and it shifts the conditions shown in Fig A about the desired value. The program will continue asking the user for the room temperature and displays Temp, AC state, and Heater state. Use a loop to continuously ask for the room temperature until the user quits. Note that the user will only enter the desired temperature at the start of the program.
Temperature
Sensor
Heater
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
