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 earnings wage hours;
if hours earnings wagehours wage
CommissionEmploye: earnings commissionRate grossSales
Each employee has three bank accounts: checking accounts and savings account or savings
and 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 Projectpcpp 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
