Question: This program explores the use of decision structures. The new program should take into account overtime, and output the following regular hours overtime hours regular
This program explores the use of decision structures.
The new program should take into account overtime, and output the following
- regular hours
- overtime hours
- regular pay
- overtime pay
- gross or total pay
- tax withheld at rate of 12.5%
- other deductions at rate of 5% of the the total pay over $500.00
- net pay
Write a program that asks for the number of hours for that week and generates a pay stub with the outputs listed above.
- Copy Template.py to a new file with a descriptive name.
- Update the file header with your info
- Update the IPO template, listing inputs, outputs, and any formulas you use.
- Create variables as needed. Make sure the names fit Python rules and conventions and are descriptive.
- Add comments and blank lines to identify and describe code sections
- Make the output readable
- Make the inputs able to be entered as any amount of hours and pay type.
Example output/result

Pay Program Enter the number of hours worked this week: 60 Pay Stub Regular Overtime Hours 40 20.0 Pay 600.0 450.0 Gross Pay: 1050.0 Tax : 131 .25 Other deductions : 27.5 Net pay: 891. 25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
