Question: Write this in C + + PLEASE! I dont want it in Python ( 4 ) You can solve the following problem in C +

Write this in C++ PLEASE! I dont want it in Python (4) You can solve the following problem in C++. Write an abstract base class called
Employee that contains a name and social security number (both are strings) together with
appropriate member functions. Also include a pure virtual function print() that prints out the
name and social security number.
Next, derive (from Employee) a class Hourly that adds data members wage (which is the hourly
wage) and hours (which is the number of hours worked that week). Write the appropriate
member functions, including a print() function prints out name, social security number, wage,
hours, and money earned that week (note: if hours >40, the employee gets paid time and a half
for the hours over 40).
Next, derive (from Employee) a class Salaried that adds a data member yearly salary. The print()
function prints out name, social security number, yearly salary, and salary for that week (which
is yearly/52).
Finally, create a class Roster that can hold a variable number of employees. This class should
have operations to add or delete an employee and print out the entire roster of employees.
Duplicate employees should not be allowed.
Written in C++
Write this in C + + PLEASE! I dont want it in

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 Accounting Questions!