Q. i) Administrative Employees 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 "Factory Employee" to the Employee class hierarchy.
iii) Salespersons are paid a salary plus a commission on their same times the commission rate. Add a class "Salesperson" to the Employee class hierarchy.
Now, write a complete PAYROLL program for An industry in which each employee falls into one of the 3 categories - Administrative, Factory Employee or Salesperson.