Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #I want this program to add up my expense
- #I want this program to add up my income
- #I want this program to give me a final gross income after expenses
- #I want to get inputs from the user
- print "\nWe are going to calculate your gross income"
- print "but first we need to know a few things:\n "
- print "What is your total income?"
- print "(To add income just put in numbers like so: 123 + 123)"
- income = raw_input( ": " )
- income = int ()
- print "Excellent! Now what is the amount of total expenses?"
- expenses = raw_input(": ")
- expenses = int ()
- print "One moment while we calculate..."
- print "(push ENTER to continue. CTRL-C to exit)"
- raw_input("? ")
- gross = ("%d - %d") % (income, expenses)
- gross = int ()
- print "Your total gross income is: %d" % gross
- print "Have a nice day!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement