1 declare and instantiate a two-dimensional int array


1. Declare and instantiate a two-dimensional int array called temperatures which contains four rows (corresponding to weeks) and seven columns (corresponding to days) with the initial values 73, 71, 68, 69, 75, 77, and 78 in the first row, 76, 73, 72, 72, 75, 79, and 76 in the second row, 79, 82, 84, 84, 81, 78, and 78 in the third row, and 75, 72, 68, 69, 65, 63, and 65 in the fourth row.


2. Write nested loops that calculate the following:

a.The average temperature for each week.
b.The average temperature for each day.
c.The high and low temperature for each week.
d.The high and low temperature for each day.
e.The average temperature of all the temperatures.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: 1 declare and instantiate a two-dimensional int array
Reference No:- TGS0967690

Expected delivery within 24 Hours