OOPs With Inheritance - 3 (Employee - Manager)
OOPs With Inheritance - 3 (Employee - Manager)
(c) The main program has a global 1D array, EmployeeArray, to store data about eight
Initialize the array EmployeeArray values with the help of the above table.
For example,
For Normal Employee
EmployeeArray.append(Employee(15.22,12452,”JuniorDeveloper”))
For Manager
EmployeeArray.append(Manager(22.50,02586,5.25,”Inteface Manager”))
(ii) A program to store the number of hours each employee has worked in week 1.
(d) (i) The main program needs to call EnterHours() and use the method GetTotalPay()
to output the employee number and total pay for each of the eight employees.
Amend the main program to perform these tasks.
(ii) Test your program. Take a screenshot of the output.
========================