Draw This - beginner
Draw a flowchart that shows how a smart home device, like a smart thermostat, decides to turn the heating ON or OFF based on the current room temperature and the desired temperature set by the user.
Draw a flowchart that shows how a smart home device, like a smart thermostat, decides to turn the heating ON or OFF based on the current room temperature and the desired temperature set by the user.
_______
/ \
| Start |
\_______/
|
v
____________ ____________
| Input: | | Input: |
| Current Temp| | Desired Temp|
|____________| |____________|
| |
v v
_____________
| Compare: |
| Current < |
| Desired? |
|_____________|
/ \
Yes No
/ \
v v
___________ ___________
| Turn ON | | Turn OFF |
| Heating | | Heating |
|__________| |__________|
\ /
\ /
v v
_______
/ \
| End |
\_______/
This flowchart starts by taking two inputs: the current room temperature and the desired temperature set by the user.
It then compares if the current temperature is less than the desired temperature.
If yes, the heating is turned ON to warm the room.
If no, the heating is turned OFF because the room is warm enough.
The flowchart ends after deciding the heating state.
Pass the test and this pattern moves unknown