Question: 2-2. Write a program that implements the control diagram below (Fig. 3). The program will ask for a Desired Value and use a loop
2-2. Write a program that implements the control diagram below (Fig. 3). The program will ask for a Desired Value and use a loop to continuously ask for an input that is the room temperature until the user quits. Note that the desired temperature will be entered only once. 1. 2. On Program Flow 3. 4. 5. Off -2.5 +2.5 Desired Value Fig. 3 Initialize the state of the system, e.g., state = 0 Enter desired temperature Enter room temperature Temperature (F) Determine and display next state that is update the state value Ask the user if he/she wants to continue. If the user wants to continue go to 3 otherwise quit.
Step by Step Solution
There are 3 Steps involved in it
The flowchart describes a program that controls the temperature in a room The program works by first asking the user for ... View full answer
Get step-by-step solutions from verified subject matter experts
