AddressBook

Using classes, design a 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 data members.
• Define a class, extPersonType using the class personType( as defined in Example 1-12, Chapter 1) The class dateType (as designed in Programming Exercise 2 of Chapter 2, and the class addressType. Add a data member to this class to classify the person as a family member, friend, or business associate. Also, add a data member to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the data members.
• Derive the class addressBookType from the class arrayListType, as defined in this chapter so that an object of type addressBookType can store objects of type extPersonType. An object of type addressBookType should be able to process a maximum of 500 entries. Add necessary operations to the class addressBookType so that the program performs the following operations:
1. Load the data into the address book from a disk
2. Search for a person by last name
3. Print the address, phone number, and date of birth (if it exists) of a given person
4. Print the names of the people whose birthdays are in a given month or between two given dates.
5. Print the names of all the people having the same status, such as family, friends, or business.
6. Print the names of all the people between two last names.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

×
New Download