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).