Question: Program in PYTHON 3.9 Program in PYTHON 3.9 Program in PYTHON 3.9 Program in PYTHON 3.9 Problem Statement Design a class named Employee. The class

Program in PYTHON 3.9

Program in PYTHON 3.9

Program in PYTHON 3.9 Program in PYTHON 3.9 Program in PYTHON 3.9Program in PYTHON 3.9 Problem Statement Design a class named Employee. The

Program in PYTHON 3.9

Program in PYTHON 3.9

Problem Statement Design a class named Employee. The class should keep the following information in fields: Employee name (str) Employee number (str) Hire date (str) Write__init__, setters, and getters, and str method for the class. Next, write a class named ProductionWorker that is a subclass of the Employee class. The Production Worker class should inherits the fields of the Employee class and have additional fields to hold the following information: Hourly pay rate (float) Hours worked (int) Write __init__, setters, and getters, getTotalPay, and str methods for the class. (Use the format function to format the output, e.g. format(1.2323, .2f') 1.23) . In the main function, ask the use to enter employee name, number, hire date, hourly pay rate, and hours worked, create a Production Worker object and print out the worker info. (Check sample output on next page) Put the two classes and the main function in one program, and name your program employee_yourLastName.py Sample Output: Enter employee name: John Smith Enter employee number: ABC123 Enter hire date: 11-15-2020 Enter hourly pay rate: 16.5 Enter hours worked: 20 Here is the worker info: Employee name: John Smith Employee number: ABC123 Hire date: 11-15-2020 Hourly pay rate: $16.50 Hours worked: 20 Total pay: $330.00

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!