Question: Need impletation through code for HourlyEmployee.h , HourlyEmployee . cpp , CommissionEmployee . h , CommissionEmployee . cpp . Employee classes: o Employee, SalariedEmployee, HourlyEmployee,

Need impletation through code for HourlyEmployee.h
,
HourlyEmployee.cpp
,
CommissionEmployee.h
,
CommissionEmployee.cpp
.
Employee classes:
o Employee, SalariedEmployee, HourlyEmployee, CommissionEmployee
SalariedEmployee: earnings
=
weekly salary
HourlyEmployee: if hours
=
4
0
earnings
=
wage
*
hours;
if hours
>
4
0
earnings
=
(
4
0
*
wage
)
+
(
(
hours
4
0
)
*
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.
Need impletation through code for

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!