-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram2.py
More file actions
22 lines (18 loc) · 907 Bytes
/
program2.py
File metadata and controls
22 lines (18 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
print "You will be asked several questions regarding your financial situation."
print ""
hourlywage = float(raw_input("How much do you make per hour before taxes? (Format: 8.31, 14) $"))
workweek = float(raw_input("How many hours do you work in a week? (Format: 17.56, 40) "))
taxestakenoutpercentnumber = float(raw_input("How much percent of your paycheck is taken out for taxes? (Format: 10, 20, 30, etc) "))
taxestakenout = taxestakenoutpercentnumber / 10
hourlywageaftertaxes = hourlywage * taxestakenout
moneyperweek = hourlywageaftertaxes * workweek
moneypermonth = moneyperweek * 4
moneyperyear = moneypermonth * 12
print ""
print "In a week, you will make $%d after taxes." % moneyperweek
print ""
print "In a month, you will make $%d after taxes." % moneypermonth
print ""
print "In a year, you will make $%d after taxes." % moneyperyear
print ""
raw_input("\nPress Enter to exit the program.")