Question: MCS 2514 Computer Science 2 Homework Five - Spring 2023 Prof. Khalil Khalaf Create a group of different employees using a single vector, and then

 MCS 2514 Computer Science 2 Homework Five - Spring 2023 Prof.Khalil Khalaf Create a group of different employees using a single vector,

MCS 2514 Computer Science 2 Homework Five - Spring 2023 Prof. Khalil Khalaf Create a group of different employees using a single vector, and then saving the data to a file using a function. All employees have a first name, a last name, a title and a salary. But, there are three types of employee records, each with some distinct attributes: 1) Manager - Number of meetings per week - Number of vacation days per year 2) Engineer - Boolean specifying whether they know C++ or not - Number of years of experience 3) Researcher - String specifying the school they got their PhD from - String specifying the topic of their PhD Thesis Provide the implementation of all three classes such as: - One vector of the following abstract class: class Employee \{ protected: string mFirstName; string mLastName; int mSalary; string mTitle; public: virtual void SetData() = 0; virtual void SaveToFile ( ofstream & out )=0; \} - One function to write the vector to a file: void SaveToFile(vector aVector)

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!