Assignment 2

Due Tuesday, Sept. 27, 2005

 

Grading(Maximum Score 100):

Initial score is based on the proper use of classes and object oriented concepts. Points will be taken off for not meeting all requirements. 5 points will be taken off for each class or method that does not have documentation! Documentation is defined as a written description of what the method or class does. This can be as short as a couple words or as long as a paragraph. Documentation MUST be in JavaDoc Format!

 

Overview:

This program will implement a Contacts List.

 

Usage Information:

The program will allow input of new contacts and the printing of the entire contact list.

The contact list will be stored in a file between runs of the application.

Each time the application is invoked the stored file will be read in from disk and then be maintained in memory.

When the application closes, the stored file will be updated to reflect the current contacts list.

Other features that would normally be implemented in such an application are not required.(Including Delete….)

 

 

Requirements:

Implement a class that stores a single contact record.

This class should store only relevant information about a contact.

A data structure should contain the multiple contact records that make up the list.

The list of contacts can be implemented using any available data structure.

The application MUST handle possible Exceptions and provide as stable a system as possible!

 

Everything else is up to you!

 

Turn in:

Output of three sample runs:

One adding two records and storing the result

The second displaying the stored records, and adding two more records

The third displaying the resulting 4 records.

A Printout of your code.

 

Tips:

Don’t go too crazy on storing a lot of information on the contact. Name and phone number is sufficient.  Creativity and completeness will buy you leniency in grading, just make sure it works!