CS 1401 Assignment #11

Date Assigned: Monday, April 9, or Tuesday, April 10, 2007.

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

Objective: The main objective of this assignment is to learn to use inheritance and polymorphism.

Programming assignment: The task is the same as in the previous Assignments 9 and 10: Write a program for analyzing El Paso weather. This program must allow the user to enter dates followed by temperatures and wind speeds 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 10, we advised you to define a class Record whose objects contain two fields:

To be able to to store wind speeds, design a new class DetailedRecord which contains the third field: wind speed. Use objects of the new type in your program.

Deliverables: as instructed by your TA.