Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON Employee who are paid hourly in a company earn time-and-half for any hours worked above 40 hours in a given week. (1) Prompt the
PYTHON
Employee who are paid hourly in a company earn time-and-half for any hours worked above 40 hours in a given week.
(1) Prompt the user for the number of hours worked and the hourly wage, and output the total gross pay for the week in the format shown in example output.
The input
35 12.5
gives the output
Enter number of hours worked: Enter hourly wage: Gross pay: $437.5
The input
46.5 11
gives the output
Enter number of hours worked: Enter hourly wage: Gross pay: $547.25
(2) Compute and output the deductions for social security (6.2% of gross pay) and Medicare (1.45% of gross pay).
The input
35 12.5
gives the output
Enter number of hours worked: Enter hourly wage: Gross pay: $437.5 Deductions Social Security: $27.12 Medicare: $6.34
The input
46.5 11
gives the output
Enter number of hours worked: Enter hourly wage: Gross pay: $547.25 Deductions Social Security: $33.93 Medicare: $7.94
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