Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use C++ for this assignment Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth
Use C++ for this assignment
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. Use the included personType.h and personTypeImp.cpp files as well as the dateType.h and dateTypeImp.cpp files to complete the assignment.
- 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.
- 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 (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the member variables.
- Define the class addressBookType using the previously defined classes. The program should perform the following operations:
- Provide the user a menu option with the ability to enter the personal information, the date of birth information and the address information. You will need to create an array of 10 addressBookType objects and write data to an object to the array as the user data in entered. The user should have the ability to use this menu option in the program to enter another object. You will need to keep track of the number of objects entered to make sure the user cannot enter more than 10 objects.
- Provide a menu option to search by name and print the address, phone number and date of birth if the name exists. Give an appropriate message if the name is not found.
- Provide a menu option to enter a month of the year and display the name, address, and phone number of the entries with birthdays in that month.
- Provide a menu option to enter the classification of a person (family, friend, or business) and display the name, address, and phone number of the entries with birthdays in that month.
- Provide a menu option to exit the program.
- Make sure the user does not exceed the 10-max limit of addressBookType objects at any point during the program.
personType.h file
personTypeImp.cpp file
dateType.h file
dateTypeImp.cpp file
//personType.h #ifndef H_personType #define H_personType #include
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