Salespersons are paid a salary plus a commission


1. Develop classes or class templates for the following:

i.) Administrative Employess are paid a salary, but they also receive a bonus at regular intervals during the year. Add a class "Administrator" to the Employee class hierarchy.

ii.) Factory workers are paid a certain amount for each unit they make and their total pay is the number of units produced times the pay per unit. Add a class "FactoryEmployee" to the Employee class hierarchy.

iii.) Salespersons are paid a salary plus a commission on their sames times the commision rate. Add a class "Salesperson" to the Employee class hierarchy.

Now, write a complete PAYROLL program for a company in which each employee falls into one of the 3 categories - Administrative, FactoryEmployee or Salesperson.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Salespersons are paid a salary plus a commission
Reference No:- TGS0116040

Expected delivery within 24 Hours