Permalink
Browse files

Got it turned in SECONDS before it was due.

  • Loading branch information...
1 parent 2a592a5 commit f6c9e23a15e498239083838cc1f7f8f8ffd5f11c @kamron committed Feb 26, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 pset2year.py
View
@@ -0,0 +1,13 @@
+balance = 4773
+annualInterestRate = 0.2
+
+remainingBalance = balance
+monthlyPayment = 10
+while remainingBalance > 0:
+ remainingBalance = balance
+ for month in range (1,13):
+ remainingBalance-=monthlyPayment
+ remainingBalance+=remainingBalance*(annualInterestRate/12)
+ else:
+ monthlyPayment += 10
+print('Lowest Payment: ' + str(round(monthlyPayment-10, 2)))

0 comments on commit f6c9e23

Please sign in to comment.