Question
1. Address Book Entry Create a class that contains an address book entry and name it AddressBook . The table below describes the information that
1. Address Book Entry
Create a class that contains an address book entry and name it AddressBook. The table below describes the information that an address book entry has.
Attributes/Field | Description |
Name | Name of the person in the address book |
Address | Address of the person |
Mobile Number | Mobile number of the person |
Email Address | Email address of the person |
The class definition should contain the following:
Attributes
Constructor
Accessors and mutators
2. Address Book Implementation
Create a class and name it AddressBookTest which will contain the main method for implementation of the AddressBook class methods from #1 of this activity. Instantiate an array of AddressBook objects of 100 entries. Create a menu that will implement the following methods:
Main Menu
Add Entry
Delete Entry
View All Entries
Update An Entry
Exit
The program should loop back to the main menu after implementing a method chosen by the user. Note that options 2, 3 and 4 should not be implemented if no entry has been added yet. The program ends at the Exit option.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started