In other words instead of storing person objects in a


For this project, you will take the PhoneBook class re-write it so that it contains a hash table as a data field.

In other words, instead of storing Person objects in a binary search tree, the PhoneBook class will store these Person objects in a hash table.

The key to this project is in developing a good hashCode()function, which translates a key value into an index value.

Organize your project into the following classes:

Person, which represents the name and phone number of a person, you will store instances of this class in the phone book.

PhoneBook, which represents the phone book. The class should contain a hash table as a datafield. This table contains the people in the book. The phone book should contain the add,delete, find, change, quit, save and restore methods.

Menu, which provides the program's user interface-contains a main() method which creates a PhoneBook object, displays the PhoneBook's methods as different menu selections and invokesthe PhoneBook method the user selects.

HashTable, which is the ADT HashTable. This is the class which contains the PhoneBook'scollection of data (all of the People objects in the PhoneBook), as well as the operations whichcan be performed on that collection of data.

The key to this project is in the implementation of a hashCode() method, which "translates" a key valueinto a numeric index value, which identifies the location in which an item will be "stored" in the hashtable.

You must also consider how to resolve a "collision". This is when two key values are translated into the same index value.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: In other words instead of storing person objects in a
Reference No:- TGS02903648

Expected delivery within 24 Hours