Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please program in python 3.9. I posted this yesterday and the person did not do it correctly. Please program in Python. Please program in python
Please program in python 3.9. I posted this yesterday and the person did not do it correctly. Please program in Python.
Please program in python 3.9. I posted this yesterday and the person did not do it correctly. Please program in Python.
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.00Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started