Computer Science 121
Assignment 9
Due: April 28, 2004

This time you are to write a program that reads in data about a person and stores the information in an array of classes.  The data should consist of the person’s name, and birth date.  You may store the birth date any way you want, but it must include the day, month and year that the person was born.

Store the name and birth date in a class, one for each person in the file.  After the data for each person has been read in, calculate the person’s age, and store that in the class also.  The class should be able to read in the data for a single person, calculate the person’s age, and then display the data for the person.

After all the data has been read in, display the data on the screen.  When done, find the oldest and the youngest person.  Display this information on the screen as well.

When you have finished the program, write a description of how you went about designing and writing the program.  Use a word processor and print the description on a separate sheet of paper.

people.txt

Alice Lee
7 4 1990
Bobby Smith
3 6 1989
Cathy Chan
5 10 1985
David Levin
25 10 1996
Eddie Jones
16 5 1992