Declare an array of double of size 365 to store daily


Declare an array of double of size 365 to store daily temperatures for one year. Using this data structure, write a code fragment to find

• The hottest and coldest days of the year.

• The average temperature of each month.

• The difference between the hottest and coldest days of every month.

• The temperature of any given day. The day is specified by two input values: month (1, . . . , 12) and day (1, . . . , 31). Reject invalid input values (e.g., 13 for month and 32 for day).

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Declare an array of double of size 365 to store daily
Reference No:- TGS01243783

Expected delivery within 24 Hours