Question: Using a header and main file Create a class called AddressBook in C++. It should be able to store a maximum of 50 names and
Using a header and main file Create a class called AddressBook in C++. It should be able to store a maximum of 50 names and 50 phone numbers (make an array of structures in the object or two arrays)It should contain a method called add Name that will take a name and phone number and add it to the address book. There should be a method called find Name that will take a string for the name and return the phone number if found in the list otherwise return "Person Not Found". The class should have a method called display to show all the entries in the address book sorted by last name (last name, first name). Create a main function to test your class. Inside the main ask for five names and enter them into the address book. In the main, look for one that is in the address book and test for a name that is not in the address book. Finally, in the main, display the names in the address book.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
