Question: An Introduction to Programming, Using Python. By David Schneider Chapter 3 - Section 3.2 30. Overtime Pay: Federal law requires that hourly employees be paid

An Introduction to Programming, Using Python. By David Schneider Chapter 3 - Section 3.2

30. Overtime Pay: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!