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. Your program should be able to handle a maximum of 500 entries.
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 (as defined in Example 10-10, Chapter 10), the class dateType(as designed in this chapters Programming Exercise 2), 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. An object of the type addressBookType should be able to process a maximum of 500 entries.
The program should perform the following operations:
Load the data into the address book from a disk (Ch11_Ex5Data.txt).
Sort the address book by last name.
Search for a person by last name (option 1).
Print the address, phone number, and date of birth (if it exists) of a given person (option 2).
Print the names of the people whose birthdays are in a given month (option 3).
Print the names of all the people between two last names (option 4).
Depending on the users request, print the names of all family members, friends, or business associates (option 5).
Print the entire address book (option 6).
Save the sorted address book to a file (option 7).
Terminate the program (option 9).
Please help me I am having a very hard time it keeps popping up as 0% on cengage mindtap when I try to submit it & please put in C++ format. My professor said that everything was fine except for my addressBookTypeImp.Cpp file which is below and i will also put the addressBookType.h file as well
addressBookType.h:
//addressBookType.h #ifndef H_addressBookType #define H_addressBookType #include
using namespace std;
class addressBookType { public: void print() const;
void printNameInTheMonth(int month); void printInfoOf(string lName); void printNamesWithStatus(string status); void printAt(int i);
void printNamesBetweenLastNames(string last1, string last2);
void insertAt(const extPersonType& eP, int i);
void insertLast(const extPersonType& eP);
int search(string lName);
void sort();
void saveData(ofstream&);
addressBookType();
private: extPersonType list[500];
int length; };
#endif
addressBookTypeImp.cpp:
#include
using namespace std;
void addressBookType::print() const{
}
void addressBookType::printNameInTheMonth(int month){
}
void addressBookType::printInfoOf(string lName){
}
void addressBookType::printNamesWithStatus(string status){
}
void addressBookType::printAt(int i){
}
void addressBookType::printNamesBetweenLastNames(string last1, string last2){
}
void addressBookType::insertAt(const extPersonType& eP, int i){
}
void addressBookType:: insertLast(const extPersonType& eP){
}
int addressBookType::search(string lName){
}
void addressBookType::sort(){
}
void addressBookType::saveData(ofstream&){
}
addressBookType::addressBookType(){
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
