Professional Documents
Culture Documents
Lab 7
Lab 7
Lab 7
Task 1:
Initialize each attribute using constructor method. Each attribute should be private.
Task 2:
for this class implement following methods:
Print #to display all information of each attribute
Basic_pay #hourly rate * hours worked)
Tax # total applicable taxes on emplyee
Gross_pay #basic pay plus any allowance/deducitons/taxes?
Task 3:
Make a new file “main.py” and import all behaviours of employee class in this new file then try to call
few functions from previous file where those functions are defined.
Task 4: load the given dataset then call tax and gross_pay function from your class for this data.
Bonus tasks:
find the id and gross pay of most senior employee of the company.
Modify your code to Add another column to “Basic Pay” in dataset, also print all records.