Advertisement
shegues

computepaywithfunction

Oct 20th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def computepay(Hours, Rate):
  2.     gross_pay = (h - 40) * (1.5 * r) + (40 * r)
  3.     return gross_pay
  4. Hours = input("give me hours")
  5. h = float(Hours)
  6. Rate = input("give me rate")
  7. r = float(Rate)
  8. x = computepay(h, r)
  9. print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement