Which activity to use to add the average temperature value based on the data for the past hour of measurements…When a new measurement hour arrives, the employee adds the resulting row with the average temperature value based on the data for the past measurement hour. After the resulting line, the employee continues to add measurements for the next hour, according to the previously indicated algorithm.
Where are the measurements being recorded?
Use a for loop or while loop depending on thw requirement…
Create two varibles one for input measurement and one for average…start avaerage with zero
And in the loop use if condition averagevar =0
On then side use avaeragevar = inputvar and on else side use averagevar = (inputvar + averagevar)/2
Whenever inputvar changes average var gets updated
Hope this helps