Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Wages = float(raw_input("How much do you get paid per hour?"))
- hoursworked = float(raw_input("How many hours did you work this week?"))
- Bigwages = Wages * 1.5
- oldwages = Wages * 40
- newhours = hoursworked - 40
- if hoursworked > 40:
- total = newhours * Bigwages + oldwages
- else:
- total = hoursworked * Wages
- print ("Your total paycheck is $"), total
- input("Press any key to exit.")
Add Comment
Please, Sign In to add comment