Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

What is American Polity and Governance ?

Answered: 1 week ago