Question: PLEASE READ INSTRUCTIONS CAREFULLY Develop a model of the problem you are developing. This is different from the flowcharting you have been doing throughout the

PLEASE READ INSTRUCTIONS CAREFULLY

Develop a model of the problem you are developing. This is different from the flowcharting you have been doing throughout the semester. Make sure the model reflects the problem statement. You then need to develop a C++ program to solve the problem stated by you.

Define a class Person with appropriate data member(s) and member functions (at least constructors and a destructor for each class.)

Define the class First derived from the class Person that will create your first name with appropriate data member(s) and member functions (at least constructors and destructor for each class) and writes your first name in the file first.txt.

Define the class Last derived from the class Person that will create your last name with appropriate data member(s) and member functions (at least constructors and destructor for each class) and writes your last name in the file last.txt.

You will create an object of the class First and an object of the class Last using the default constructors and constructors with arguments.

The default constructors initialize the two objects F1 and L1. An overloaded constructors will obtain the first name and the last name from the keyboard and create objects F2 and L2.

The program will then reads the first name and the last name from the files and writes both files to the file Name and displays your full name using the function displayName() to display your full name in the format shown below.

Firstname Lastname

Once the first name and last name for all objects are displayed, the program ends.

Other member functions for the classes are defined by the programmer and as a minimum will include constructors, destructors, accessor, and mutating functions. User-defined functions will be used as needed to solve your problem.

This program leaves out a few options for you to select.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!