Assignment #8 - Beige&Chartruese Pages.


Objectives:

The Assignment:

Requirements:

You are given the BeigeChartrueseLibrary class, which containes a main method, a constructor, and a number of other methods. You should complete that class using any or all of the dictionaries developed previously. Also given are classes representing the information: Record, PhoneNumber, ZipCode, and StateAbbr. These classes are provided so that you may create appropriate hash functions, comparisons, and equality tests for the specific types of values given in the program. Records are comparable, which means they have a natural ordering. When returing sequences of Records, they should be in that natural ordering. This may require taking various steps to improve the efficiency of the overall program.

The bcPhone user can do a search by name (first, last or full), city, state, ZIP code, or phone number. A person's full name is their first name followed by their last name separated by a space. They can also do a combination search, where they enter more than one field, and a search is performed, returning results that match all the provided criteria.

When the user searches, it sends a comma delimited text request to the laptop server and expectes a comma/line delimited text response. The text request comes in one of the following forms:

The response should be in the form:

FirstName LastName
Address
City, ST
ZIP
Phone_number

NextPersonsFirstName LastName
123 Address
MyCity, VI
54321
234-555-6789

...

Responses should be in the natural ordering defined for Records (provided in the Record class). Be sure there is a space between the names, a comma and space after the city. Each record should have a blank line after it, and the last record should have two blank lines.

Some other information which your program should conform to or may be helpful:

Submission:

Grading Criteria: