Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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