Guest User

Untitled

a guest
Jan 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. balance = 3926
  2. annualInterestRate = 0.2
  3. MP = 10
  4.  
  5. for month in range (0,12):
  6. while balance >= 0:
  7. remaining = balance
  8. monthlyInterestRate = (annualInterestRate)/12
  9. balance = (remaining - MP) * (1 + monthlyInterestRate)
  10. if remaining < 0:
  11. break
  12. else:
  13. MP += 10
  14.  
  15. print 'Lowest Payment: ', +round(MP)
Add Comment
Please, Sign In to add comment