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: 09/15/24
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
hourly_wage = float(input('Enter hourly wage: '))
regular_hours = float(input('Enter total regular hours: '))
overtime_hours = float(input('Enter total overtime hours: '))
# Calculate the regular pay by multiplying the hourly wage by the total regular hours
regular_pay = hourly_wage * regular_hours
# Calculate the overtime pay by multiplying the hourly wage by 1.5 and then by the total overtime hours
overtime_pay = hourly_wage *1.5* overtime_hours
# Calculate the total pay by adding the regular pay and the overtime pay
total_pay = regular_pay + overtime_pay
# Display the total weekly pay
print('Total weekly pay: \$', total_pay)

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 Programming Questions!