Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 25Step 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