Write a program that requests the floating 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. Save it as overtimePay.py. Output Example 1:

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 20PE: The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a...
icon
Related questions
Question

Python  

Read Chapter 5: If Statements
Submit
1. 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 floating 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. Save it as overtimePay.py.
S.
Output Example 1:
Output Example 2
Enter hourly wage: 12
Enter hourly wage: 15.99
Enter number of hours worked: 60
Enter number of hours worked: 20, 75
Gross paY for week is $840,00.
Gross pay for week is $331.79.
Transcribed Image Text:Read Chapter 5: If Statements Submit 1. 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 floating 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. Save it as overtimePay.py. S. Output Example 1: Output Example 2 Enter hourly wage: 12 Enter hourly wage: 15.99 Enter number of hours worked: 60 Enter number of hours worked: 20, 75 Gross paY for week is $840,00. Gross pay for week is $331.79.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT