Guest User

Untitled

a guest
Jul 2nd, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. bal = float(raw_input('What is the amount of your debt, in dollars and cents? Do not include the dollar sign - i.e. "1234.56" for a $1,234.56 loan).'))
  2. a = float(raw_input('Enter the annual interest rate in percent. Do not include the percent sign - i.e. "25" for a 25% rate.'))
  3. ann = a / 100
  4. m = ann / 12 # Tests returned several syntax errors with this line which I could not identify; the issue was really with another line.
  5. mon = m * 100
  6. mini = float(raw_input('Enter the minimum monthly payment rate as a decimal using the same format.'))
  7.  
  8. print 'Starting balance: $ %s' % bal # this should read as "Starting balance $x.yz", but not with variables. You know what I mean.
  9. print 'Annual interest rate: %s percent', % a
  10. print 'Monthly interest rate: %s percent', % mon
Advertisement
Add Comment
Please, Sign In to add comment