Answer:
The algorithm for switching off the electric water heater automatically when the temperature rises to 70 o Celsius is given below.
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")