Lab 6 - Lite

You might also like

You are on page 1of 1

Object Oriented Programming

Lab 6:

Instructions:

The deadline to submit this lab is 10:20

Submit your own work

Best of luck.

Task 1:

Create an Employee Class, the class have the following attributes:

Id, age, hourly_rate, hours_worked, Bonus, Tax, Penalty, Medi_tax

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 “helper_functions” and move all behaviours of employee in this file and store it in same
location where your .py/.ipynb file is stored

Call different function from newly created file.

Task 4: load the given dataset and try to run each function you created for Employee class for this
dataset.

Task 5: Will be shared soon

You might also like