Question: C++ Program The aim of this program is implementing a Management System for a Personal Contact Book. For this assignment, write a class called Address.
C++ Program
The aim of this program is implementing a Management System for a Personal Contact Book.
For this assignment, write a class called Address. This class should contain home, street, apt, city, state, zip, all string type.
Your class should support the following functions:
1. Create a partially filled array of address Contacts with capacity equal to 10.
2. Ask the user to input up to 10 Contacts (It may be less. The user should have the ability to stop inputting Contacts whenever he wishes).
3. Create a Menu in your main program with 3 options: search, display all, and exit. a) Provide a function in your main program that will be able to search for a particular Contact in your array of Contacts. Search must be based on the name. The function would return an index. You can call this function in your main program if the user selects option search from the menu to output information about this Contact in your main program. b) Provide a function in your main program that will allow you to print ALL Contacts in the array. Call this function if the user selects display all option from the menu. c) Exit the program if the user selects exit option from the menu.
4. Constructor that initializes a Contact by accepting all the parameters.
5. Default constructor that initializes everything to default values.
6. Accessor functions for each field.
7. Mutator functions for each field.
8. Input function to solicit the information.
9. Output function to print out the information about the contact to console in a nice format.
10. Any other necessary functions you feel are appropriate.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
