Question: Programming Exercise #1 (Employee and ProductionWorker classes): a.Name the first Python program company_employee.py , to keep it separate from the employee.py file you created for

Programming Exercise #1 (Employee and ProductionWorker classes):

a.Name the first Python program company_employee.py, to keep it separate from the employee.py file you created for Lab #11. The name of the class is still Employee. The Employee and ProductionWorker classes are both defined in this file.

b.Name the second Python program company_employee_demo.py. This will be the program that creates an instance of a ProductionWorker.

c.Ensure that the employee number is 5 characters long. Hint: Use a validation loop. It does not have to consist only of digits.

d.Ensure that the shift number entered is the value 1 or 2. Hint: Use a validation loop. Remember that the number is an integer.

e.Format the hourly rate with a dollar sign and 2 decimal places. Remember that the number is a

f.There is an example below of what the program interaction might look like. Yours does not have to look exactly like this, as long as it works correctly:

g.Be sure to include the four lines of documentation at the top of each program, and a short comment above every line or small section of Python code.

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!