Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: Apply what you have learned in OOP, Inheritance, Polymorphism and Files 1/O techniques to build the above shown CommunityMember hierarchy. For all classes we

image text in transcribed
image text in transcribed
Description: Apply what you have learned in OOP, Inheritance, Polymorphism and Files 1/O techniques to build the above shown CommunityMember hierarchy. For all classes we need to store the following information: 1. ID: unsigned long int. 2. FirstName: string. 3. LastName: string. 4. Address: string. 5. CellPhone: unsigned long int. For each of the derived classes, we need to store the information shown in the below table: Requirements 1. For every class, you need to build a default/parametrized constructor, 2. For every attribute in every class, you need to build a set/get function, 3. The default constructors should initialize all the objects' data members to its default values, 4. Parametrized constructors are used to set objects' data members using the values passed to the objects during instantiation, 5. For every class you must implement a readData() function to read all the object's data members from the user, 6. For every class you must implement a print() function to print all object's data to the screen, 7. Your program must be able to write all objects' data to the binary file "Community.dat", using the printToFile functions, 8. Your program should be able to read and append to the "Community.dat" file as needed, using the readfromfile functions, 9. Your main file must be able to store/retrieve data to/from output/input files depending on the user's choice, 10. It is not known how many objects will be added or their order of addition

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

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

Describe the five elements of the listening process.

Answered: 1 week ago