Question: The code below is written to find the highest and the lowest daily temperature, as well as average temperature in June in Lund. There is
The code below is written to find the highest and the lowest daily temperature, as well as average temperature in June in Lund. There is one mistake in the code that most likely will give the wrong result, which?
load dailyJune.txt min =0; max =0; total =0; for i=1: length(dailyJune) if dailyJune (i) end if dailyJune (i) > max max = dailyJune (i); end total = total + dailyJune (i); end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
