The PROGRAM

The functionality of this program is achieved through

Now that we have an understanding of these three fundamental elements, lets move onto the make-up of the program


The Employee Class

Base class Employee

Class Hierarchy
  Employee
   /               \
     Hourly Based  Salary Based

Two additional classes added using INHERITANCE:
One for HOURLY based employees and the other for SALARY based employees

Inheritance for different classes of employees is achieved with the following line of code:

class Hourly Based : public Employee {


The Employee Class contains the following

Compute gross pay
Compute net pay
Compute average net pay (for small company)
Compute tax amount
compute overtime pay
Display/output Employee name and ID, hours worked, hourly rate, overtime pay, gross pay, tax amount, and net pay. The average net pay of all employees

Its data members include:

Employee Name
Employee ID
Hours Worked
Hourly Rate
Overtime hours
overtimepay
grosspay
netpay
Tax Rate
taxamount
Marital Status

PLANS:
Create the Employee Class; the class definition itself is the plan(s) for the program

OBJECTS:
Employee

Attributes- Name, ID, hours worked, hourly rate
Methods- Display/output employee info


Diagram Illustration of the program
 

1

Hosted by www.Geocities.ws

1