Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!C:\Python32
- #Filename: py4infoex2.3.py
- from decimal import *
- getcontext()
- hours = Decimal (input ('hours worked?\n'))
- rate = Decimal (input ('hourly wage?\n'))
- pay = Decimal ((hours * rate).quantize (Decimal ('.01'), rounding=ROUND_UP))
- print ('wages earned: ${0}'.format(pay))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement