Question: Program: employeepay.py Author: Elzinnia Shorter Last date modified: 0 9 / 1 5 / 2 4 The purpose of this program is
Program: employeepay.py
Author: Elzinnia Shorter
Last date modified:
The purpose of this program is to take the inputs hourly wage, total regular hours, and total overtime hours and display employees total weekly pay.
# Prompt the user for hourly wage, total regular hours, and total overtime hours
hourlywage floatinputEnter hourly wage:
regularhours floatinputEnter total regular hours:
overtimehours floatinputEnter total overtime hours:
# Calculate the regular pay by multiplying the hourly wage by the total regular hours
regularpay hourlywage regularhours
# Calculate the overtime pay by multiplying the hourly wage by and then by the total overtime hours
overtimepay hourlywage overtimehours
# Calculate the total pay by adding the regular pay and the overtime pay
totalpay regularpay overtimepay
# Display the total weekly pay
printTotal weekly pay: $ totalpay
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
