Answer to Question #328839 in Python for Eren

Question #328839

Each employee record is consist of the following:

  • emp_no
  • first_name
  • last_name
  • department
  • rate per day
  • no. of days work
  • birthdate


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.


1
Expert's answer
2022-04-16T15:14:39-0400
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS