Suppose we have a 2D array, double[][] temperatures
, which has 52 columns, one for each week of the year, and each column has 7 values, one for each day of that week. Each value is a double, representing the temperature at noon on that day in Fahrenheit. We wish to write a program which will print the average temperature of each week. Which traversal method should we use to iterate through temperatures
?