0% found this document useful (0 votes)
101 views1 page

Using Classes

The document describes developing a C++ address book program with classes to store details of up to 300 classmates including their matric number, name, address, phone number, gender, race, religion, and date of birth. The program should include classes for storing addresses and personal details, derive an address book class from an array list class to store person objects, and provide operations to load data from a file, search by matric number, print a person's details, print details of people with birthdays in a given month/range of dates, and print names matching a status.

Uploaded by

Mohd Firdaus
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views1 page

Using Classes

The document describes developing a C++ address book program with classes to store details of up to 300 classmates including their matric number, name, address, phone number, gender, race, religion, and date of birth. The program should include classes for storing addresses and personal details, derive an address book class from an array list class to store person objects, and provide operations to load data from a file, search by matric number, print a person's details, print details of people with birthdays in a given month/range of dates, and print names matching a status.

Uploaded by

Mohd Firdaus
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Using classes, develop an address book to keep track of the matric numbers, names, addresses, phone numbers, genders,

races, religions, and dates of birth of classmates. Your program should be able to handle a maximum of 300 entries.

a. 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 initialise the data members. b. Define a suitable class extPersonType using the class personType, the class dateType, and the class addressType. Add data members to this class to include the gender, matric number, race and religion. 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 initialise the data members. c. Derive the class addressBookType from the class arrayListType, 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 300 entries. Add necessary operations to the class addressBookType so that the program should perform the following operations.

i. Load the data into the address book from a file. ii. Search for a person by the matric number. iii. Print the details of a given person. iv. Print the matric numbers, names, and date of birth of the people whose birthdays are in a given month or between two given dates. v. Print the names of all the people with the same status, such as gender, race, and state.

*Develop your program in C++.

You might also like