Guest User

Untitled

a guest
Jan 27th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Wages = float(raw_input("How much do you get paid per hour?"))
  2. hoursworked = float(raw_input("How many hours did you work this week?"))
  3. Bigwages = Wages * 1.5
  4. oldwages = Wages * 40
  5. newhours = hoursworked - 40
  6. if hoursworked > 40:
  7. total = newhours * Bigwages + oldwages
  8. else:
  9. total = hoursworked * Wages
  10. print ("Your total paycheck is $"), total
  11. input("Press any key to exit.")
Add Comment
Please, Sign In to add comment