Use python to create this program. 1) Employee Class Write an Employee class tha
ID: 3713910 • Letter: U
Question
Use python to create this program.
1) Employee Class Write an Employee class that keeps data attributes for the following pieces of information: Note: For all classes, the attributes must be hidden Employee Name Employee Number Hire Date Create accessors and mutators Attributes should be hidden. Create a class attribute that determines a standard pay rate adjustment 4% for raises 2) ProductionWorker Class Write a class named ProductionWorker that is a subclass of Employee that holds the following attributes .Shift number (should be an integer) Pay rate Create accessors and mutatorsExplanation / Answer
Doing first one as per chegg policy
class Employee(object):
standard_pay_rate = 0.0
def __init__(self, name, number, hire_date):
self._name = name
self._number = number
self._hire_date = hire_date
def get_employee_name(self):
return self._name
def get_employee_number(self):
return self._number
def get_employee_hire_date(self):
return self._hire_date
def set_employee_name(self, name):
self._name = name
def set_employee_number(self, number):
self._number = number
def set_employee_hire_date(self, hire_date:
self._hire_date = hire_date
# copy pastable code: https://paste.ee/p/aRXFZ
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.