Question: Need help writing the code for the following. Should have the . cpp and . h files Employee.h , Employee.cpp , SalariedEmployee.h , SalariedEmployee.cpp ,

Need help writing the code for the following.
Should have the .cpp and .h files
Employee.h, Employee.cpp, SalariedEmployee.h, SalariedEmployee.cpp, HourlyEmployee.h, HourlyEmployee.cpp, CommissionEmployee.h, CommissionEmployee.cpp.
Employee classes:
o Employee, SalariedEmployee, HourlyEmployee, CommissionEmployee
SalariedEmployee: earnings = weekly salary
HourlyEmployee: if hours =40 earnings = wage * hours;
if hours >40 earnings =(40*wage)+((hours 40)* wage *1.5)
CommissionEmploye: earnings = commissionRate * grossSales
Each employee has three bank accounts: 2 checking accounts and 1 savings account or 2 savings
and 1 checking accounts.
Use an array or a vector to store bank accounts.
The implementations of earnings() and print() functions cannot be decided in the Employee class.
The print() function will print employee's name, ssn, earnings, and also all three accounts.
information including balance, interest rate, number of deposits and withdrawals.
Use Project_p2.cpp to test your program.
Submit .cpp and .h files, Employee.h, Employee.cpp, SalariedEmployee.h, SalariedEmployee.cpp,
HourlyEmployee.h, HourlyEmployee.cpp, CommissionEmployee.h, CommissionEmployee.cpp.
Need help writing the code for the following.

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