4 - If an employee is paid hourly, he is paid a fixed amount for every hour of work. So, if he gets paid $15.00 an hour, and he works eight hours his gross pay is $120.00. An hourly employee’s gross pay must be calculated on a weekly basis because of a Rule called overtime, the federal government’s Fair Labor Standards Act states that for overtime an employee must receive overtime pay for hours worked over 40 in a work week at a rate not less than 1.5 times regular rates of pay. Write a python program that ask for the hourly pay rate and the number of hours worked in a week by the employee and calculate it’s pay accordingly. If the employee worked overtime, he should be paid 1.5 times regular rates of pay for every exceeding hour. Don't use built-in methods

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

4 - If an employee is paid hourly, he is paid a fixed amount for every hour of work. So, if he gets paid $15.00 an hour, and he works eight hours his gross pay is $120.00. An hourly employee’s gross pay must be calculated on a weekly basis because of a Rule called overtime, the federal government’s Fair Labor Standards Act states that for overtime an employee must receive overtime pay for hours worked over 40 in a work week at a rate not less than 1.5 times regular rates of pay. Write a python program that ask for the hourly pay rate and the number of hours worked in a week by the employee and calculate it’s pay accordingly. If the employee worked overtime, he should be paid 1.5 times regular rates of pay for every exceeding hour.

Don't use built-in methods 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole