Temperature array, potentially 2D?
<p>The assignment at hand is below:</p>

<p>Write a program that uses an array to store the temperature for five day objects.<br>
Each object must encapsulate it’s day name (ex: Monday, Tuesday...etc) and temperature
The controlling program will display the average temperature for that week.</p>

<p>Now I understand the basic principle of array's and how they are used, but the I am confused about two things:</p>

<pre><code>public class TemperatureAndDay {
    public static void main(String[] args) {

    double [] temperature = new double [4];

    temperature[0] = 45.24;
    temperature[1] = 67.30;
    temperature[2] = 55.23;
    temperature[3] = 49.20;
    temperature[4] = 50.22;

    }
 }
</code></pre>

<p>Could anyone give me some tips/hints/examples of code that would give me a better understanding of what my professor wants me to do? Thank you.</p>
