Question: I need help with a python code that encapsulates data about an office worker . The class should store the following things: Employee Number Office

I need help with a python code that encapsulates data about an office worker

. The class should store the following things: Employee Number Office Number Name (First and Last) Birthdate Total number of hours worked Total number of overtime hours worked

the class should also implement the following methods: __init__() o This is your constructor. It should not accept any arguments. get_employee_number() o Returns the employee number set_employee_number(x) o Changes the employee number get_office_number() o Returns the office number set_office_number(x) o If the office number given is less than 100 or greater than 500 return False, otherwise return True get_name() o Returns the employees name set_name(x) o Changes the employees name get_birthdate(m, d, y) o Sets the employee's birthdate o Accepts three arguments: Month, Day, Year set_birthdate(d, m, y) o Changes the employees birthdate o The function should return true if the month is 1-12 and the day is 1-31 (dont worry about which month has how many days) and false if an invalid day or month is entered. get_hours_worked() o Returns the number of hours worked add_hours(x) o If the number of hours being added is greater than 9, add 9 hours to the total hours worked and add the remainder to the total overtime get_hours_overtime() o Returns the number of overtime hours worked..

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!