Phone Book Programming Project

We are in need of a phone book which we can store individuals’ first and last names, addresses, and phone numbers. Contacts should be sorted alphabetically.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

For the implementation, we will need a class for Contact objects. This Class will contain the attributes for the first and last name, address and phone number.

A Second class will be your AddressBook Container class. This will have an aggregate relationship with the Contact class. This means it will have and maintain the sorted list of Contacts.

The container class can be either a linked list or an array style list. If you choose to make an array style list, you should implement a binary search to find contacts.

When the program starts it should open to a main menu with choices:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
  1. Add Contact
  2. Find Contact
  3. Edit Contact
  4. Delete Contact
  5. Display Current Contact

If there is existing data, your list should populate from the list. When you change the list. The data file should be updated.

AddressBook
PersonContainer:This is either an array
list or linked list. The list needs to be
sorted
Current Position
+AddressBook()
+addContact(Contact):void
+delete Contact(Contact)
+findContact(Name):int
+getCurrent():Void
+MakeEmpty():Void
+^AddressBook()
Contact
+firstName:string
+lastName:string
+Phone Number
+Address:string
+Contact():void

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER