CS 1401 Assignment #10

Date Assigned: Monday, April 2, or Tuesday, April 3, 2007.

Due Date: Monday, April 9, or Tuesday, April 10, 2007, before the beginning of your lab section.

Objective: The main objective of this assignment is to learn to use arrays of objects.

Programming assignment: The task is the same as in the previous Assignment 9: Write a program for analyzing El Paso weather. This program must allow the user to enter dates followed by temperatures at these dates. Assume that we are only tracing one year, so the overall number of such dates does not exceed 366. Your must then output the following information:

Main difference: In the previous assignment 9, following our advise, you stored the dates in one array (array of strings), and temperatures in another array (array of numbers).

For this new assignment, define a class Record whose objects contain two fields:

Instead of using two arrays, use a single array of records (i.e., of objects of type Record).

Deliverables: as instructed by your TA.