Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What is the total annual turnover rate?

Answered: 1 week ago