Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day Feb. 14, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    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?