Question: Using classes, design an online address book to keep track of the names, addresses, phone numbers and dates of birth of family members, close friends,
Using classes, design an online address book to keep track of the names, addresses, phone numbers and dates of birth of family members, close friends, and certain business associates.
a. Define a class addressType that can store a street address, city, state, and zip code. Use the appropriate functions to print and store the address. Also, use constructors to automatically initialize the member variables.
b. Define a class extPersonType using the class personType, the class dateType and the class addressType. Add a member variable to this class to classify the person as a family member, friend or business associate. Also, add a member variable to store the phone number. Add the functions to print and store the appropriate information. Use constructors to automatically initialize the member variables.
c. Define the class addressBookType using the previously defined classes. The program should perform the following operations:
1. print the address, phone number, and date of birth of a given person
2. print the names of the people whose birthdays are in a given month
3. print the names of all the people between two last names
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
