#file: wage.py # Many companies pay time-and-a-half for any hours worked above 40 in a given week. # This program gets the number of hours worked and the hourly rate, and # calculates the total wage for the week. def main(): print("This program calculates the wage for one week work") h = eval(input("Please, input the total number of hours you worked during this week:")) hRate = eval(input("Please, input your rate of pay:")) if h > 40: updated_h = 40 + (h-40)*1.5 else: updated_h = 40 wage = updated_h * hRate print("Your wage for this week is:", wage) print("Have a good day!") main()