Menu

[solved] – Question 92217

Q2) The monthly sunshine record for a holiday resort follows.

month jan feb march april may june july aug sep oct nov dec

hours of sunshine 100 90 120 150 210 250 300 310 280 230 160 120

Write a program to do the following.
(a) Store the names of the months and the hours of sunshine in two one-dimensional arrays.
(b) Calculate and display the average number of hours of sunshine over the year.
(c) Calculate and display the names of the months with the highest and lowest number of hours of sunshine.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *