Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Book: D. S. Malik Data Structures Using C++ 2nd Edition create a c++ program from chapter 3 page 205 exercise 9 9. Using classes, design

Book: D. S. Malik

Data Structures Using C++

2nd Edition

create a c++ program from chapter 3 page 205 exercise 9

image text in transcribed

9. 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, Your program should be able to handle a and certain business associates. 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 a. 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 Pro- gramming 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 informa- b. tion. Use constructors to automatically initialize the data members. Derive the class addres sBookType from the class arrayListType, as defined in this chapter, so that an object of type addressBookType can store c. 206 Chapter 3: Pointers and Array-Based Lists objects of type extPersonType. An object of type addressBookType should be able to process a maximum of 500 entries. Add n tions to the class addressBookType so that the program should performm the following operations: i. Load the data into the address book from a disk li. Search for a person by last name ii. Print the address, phone number, and date of birth (if it exists) of a ecessary opera- given person iv. Print the names of the people whose birthdays are in a given month or between two given dates. t the names of all the people having the same status, family, friend, or business. Print the names of all vi. the people between two last names

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions