Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON! Federal law requires that hourly employees be paid time-and-a-half for work in excess of 40 hours in a week. For example, if a person's
PYTHON!
Federal law requires that hourly employees be paid "time-and-a-half" for work in excess of 40 hours in a week. For example, if a person's hourly wage is $12 and he or she works 60 hours in a week, the person's gross pay should be (40 * 12) + (1.5 * 12 * (60 -40)) = $840.
Write a program that requests the number of hours a person works in a given week and the person's hourly wage as input, and then displays the person's gross pay. See Fig. 3.9.
Fig. 3.9
Enter hourly wage: 12.50
Enter number of hours worked: 47
Gross pay for week is $631.25
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