# Kelvin Ly
# 10/07/12
# Part H: Determines worker pay

# Get inputs, as usual.
name = input("What is the employee's name?\n")
payrate = float(input("What is the employee's pay rate ($/hr)?\n"))
hours = float(input("How many hours did the employee work this week?\n"))

pay = payrate * hours

if hours > 40:
	# Give them their bonus pay, basically a 50% bonus on all hours
	# past 40.

	pay = pay + (hours-40) * 0.5 * payrate

print(name, " gets paid $", pay, " this week.")

