go to previous page   go to home page   go to next page

Answer:

Yes.


Weather Report

Since an array is an object, a reference is needed to access it. Usually the reference is in a reference variable.

Say that you are writing a program to keep track of weather for your city. You want to record the high temperature of each day for a month.

You want an object that:

  1. Represents one month of weather
  2. ...it records the high temperature for each day of the month
  3. ...has methods to access and change data
  4. ...has methods that summarize the data

QUESTION 2:

In a month of up to 31 days there will be up to 31 values to store.

What do you propose could be done to store all this data?


go to previous page   go to home page   go to next page