Question: Read 12 temperature values (one for each month) using the input function, and display the number of the month with the highest temperature. To do

 Read 12 temperature values (one for each month) using the input

Read 12 temperature values (one for each month) using the input function, and display the number of the month with the highest temperature. To do this, use the following pseudo-code b. Read first value and store it as highest value highest month 1 for current month from 2 to 12 # here, use the range function (remember the rule on range upper bound) read next value. If value is higher than the highest value Set highest value to that value Set highest month to the current month # after the loop Print the highest temperature and the number of the month associated with the temperature

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!