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?

 The code below is written to find the highest and the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!