#Exercise 3.1
#Enter Hours: 35
#Enter Rate: 2.75
#Pay: 96.25

#Pay employee 1.5 times the hourly rate for hours worked above 40

#Enter hours: 45
#Enter Rate: 10
#Pay: 475.0

hours_worked = int(raw_input('Enter hours worked: '))
pay_rate = float(raw_input('Enter pay rate: '))

if hours_worked <= 40:
 total_pay = hours_worked * pay_rate
else:
 overtime_hours = hours_worked - 40
 overtime_payrate = pay_rate * 1.5
 overtime_pay = overtime_hours * overtime_payrate
 total_pay = 40 * pay_rate + overtime_pay

print 'Pay: ' + str(total_pay)

f711ffe50ddc039c9942b5e69dac4466ae5add76
#Exercise 3.1
#Enter Hours: 35
#Enter Rate: 2.75
#Pay: 96.25

#Pay employee 1.5 times the hourly rate for hours worked above 40

#Enter hours: 45
#Enter Rate: 10
#Pay: 475.0

hours_worked = int(raw_input('Enter hours worked: '))
pay_rate = float(raw_input('Enter pay rate: '))

if hours_worked <= 40:
 total_pay = hours_worked * pay_rate
else:
 overtime_hours = hours_worked - 40
 overtime_payrate = pay_rate * 1.5
 overtime_pay = overtime_hours * overtime_payrate
 total_pay = 40 * pay_rate + overtime_pay

print 'Pay: ' + str(total_pay)
