Archived
1
0
Fork 0
This repository has been archived on 2024-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
PY4E/Assignment 3.1/main.py
2021-09-08 10:33:48 -05:00

15 lines
399 B
Python

hours_worked = input("Enter Hours Worked: ")
hours_worked = float(hours_worked)
hourly_rate = input("Enter Hourly Rate: ")
hourly_rate = float(hourly_rate)
total_pay = 0;
if hours_worked > 40:
overtime_hours = hours_worked - 40
total_pay = (hourly_rate * 40.0) + (overtime_hours * (hourly_rate * 1.5))
elif hours_worked < 40:
total_pay = (hourly_rate * hours_worked)
print(total_pay)