Question
I am having trouble getting started on a Python Program (introduction course) I am supposed to write a Payroll Program with the information given. Rules
I am having trouble getting started on a Python Program (introduction course) I am supposed to write a Payroll Program with the information given.
Rules
Hours Worked - integer
Rate of Pay float
Input the above two variables and compute gross pay, taxes, and net pay and display
They get double time for any hours over 50
They get time and a half for any hours over 40 and up to 50 (maximum of 10)
They get regular pay for all hours up to 40
Taxes to calculate on gross pay.
Then subtract the taxes from gross pay to get net pay
Federal 25.00%
Minnesota State 7.00%
Social Security 6.00%
Medicare 2.00%
If Hours > 50
Double hours
OT hours
Regular hours
Double rate of pay
OT rate of pay
Double pay
OT pay
Regular pay
Gross pay
If Hours > 40
OT hours
OT rate
OT pay
Regular pay
Gross pay
If Hours <= 40
Regular pay
Gross pay
Step 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