Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #PSet2_Problem 1
- #done!
- for i in range(12):
- monthlyInterestRate = (annualInterestRate)/12.0
- minimumMonthlyPayment = monthlyPaymentRate * balance
- monthlyUnpaidBalance = balance - minimumMonthlyPayment
- updatedBalance = monthlyUnpaidBalance + (monthlyInterestRate * monthlyUnpaidBalance)
- balance = updatedBalance
- print('Remaining balance: ' + str(round(updatedBalance, 2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement