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")
E) both C and D
Erro handling and execution paths
Answer:
1, 2 and 3
Explanation:
Temporary locality occurs when a program accesses an instruction or a data, there is a high probability that this same instruction or data will be accessed again soon.
Answer with Explanation:
Part 1)
The given sine wave is as

The graphical representation of the wave is shown in the attached figure:
Part 2)
For a general wave equation
'A' is defined as amplitude of the wave
is defined as phase of the wave
Upon comparing with the given wave function we observe
1) Amplitude of the given wave is 3
2) Phase of the given wave 