Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- intCount=0
- monPaymentCount=0
- for monNum in range(1,13):
- monthlyPayment=balance*monthlyPaymentRate
- interes=(balance-monthlyPayment)*(annualInterestRate/12)
- newBalance=balance-monthlyPayment+interes
- balance=newBalance
- intCount = intCount + interes
- monPaymentCount = monPaymentCount + monthlyPayment
- yearlyPayments=monPaymentCount
- print ('Month: ' + str(monNum) + ' ' + 'Minimum monthly payment: ' + str(round(monthlyPayment,2)) + ' ' + 'Remaining balance: ' + str(round(balance,2)))
- print ('Total paid: ' + str(round(yearlyPayments,2)) + ' ' +' Remaining balance: ' + str(round(balance,2)))
Add Comment
Please, Sign In to add comment