SHARE
TWEET

Untitled

ninooooo Feb 18th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def main():
  2.     while True:
  3.  
  4.         print("Welcome to the Tax  Calculator")
  5.         first_name = (input("Please enter your first name: "))
  6.         income = float(input("Please enter your monthly income: "))
  7.  
  8.         if income < 1000:
  9.             print(first_name + ", you have no withholding this month.")
  10.             if income == 0:
  11.                 break
  12.         elif income < 2000:
  13.             tax = 15.50
  14.         elif income < 3000:
  15.             tax = 50.25
  16.         elif income < 4000:
  17.             tax = 105.25
  18.         elif income >= 4000:
  19.             tax = income * .04
  20.             print(first_name + ", your estimated monthly withholding will be: $") + str(format(tax, '.2f'))
  21.         cmd = input('Do you want to quit? Enter \'0\'!')
  22.         if cmd == '0':
  23.             break
  24.  
  25.         print("Press 'Enter' to close program")
  26.  
  27. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top