IN C++ I understand how to make the classes, having trouble implementing use, Thanks! Using classes and arrays, design an Online Address Book to keep
IN C++
I understand how to make the classes, having trouble implementing use, Thanks!
Using classes and arrays, 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.
Your program should be able to handle as many entries as required.
1. 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.
2. Define a class, personType , that can store the first name and the last name of a person. Use the appropriate functions to print and store the first and the last name. Also, use constructors toautomatically initialize the member variables.
3. Define a class,dataType, that can store the day, the month, and the year of a date. Use the appropriate functions to print and store the day, the month, and the year. Also, use constructors to automatically initialize the member variables.
4. Define a class extPersonType. The class is a derived class from the above classes. The class adds a member variable to classify the person as a family member, friend, or business associate. Also, the class adds a member variable to store the phone number. Moreover, the class adds (or override) functions to print and store the appropriate information. Use constructors to automatically initialize the member variables.
5. Define the class addressBookType using the previously defined classes. An object of the type addressBookType should be able to process as many entries as required.
6. Write a C++ program to test your design. The program should perform the following operations:
Add a new entry to the address book.
Delete an entry from the address book.
Print all the information of the addres
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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