Each employee record is consist of the following:
The employee number is composed of the year and month of hiring and control number in the format (YYYYMMNNN)
Where YYYY is the year, MM is the month and NNN is the control number.
Write a program that will answer the questions below.
Note: consider that the current date is 04/21/2022 in the computation.
class Employee:
def __init__(self, emp_no, first_name, last_name,
department, rate_per_day, no_days_work, birthdate):
self.emp_no = emp_no
self.first_name = first_name
self.last_name = last_name
self.department = department
self.rate_per_day = rate_per_day
self.no_days_work = no_days_work
self.birthdate = birthdate
Comments
Leave a comment