22.7k views
2 votes
Write an algorithm for switching off the electric water heater automatically when the temperature rises to 70 o Celsius.

User Petrhaus
by
5.6k points

1 Answer

3 votes

Answer:

The algorithm for switching off the electric water heater automatically when the temperature rises to 70 o Celsius is given below.

Step-by-step explanation:

Let use python code for this question.

we will use if statement to check the condition if the temperature is greater than 70.

When the temperature is 70, then the algorithm will send signal to hardware to turn yourself off.

if(temperature==70):

print("send_turn_off_signal")

User Zo
by
5.5k points