#Python
balance = 4842
annualInterestRate = 0.2
monthlyPaymentRate = 0.04
totalPaid=0.0
i=1
while(i<=12):
monthlyInterestRate=annualInterestRate/12.0
minimumMonthlyPay=monthlyPaymentRate*balance
monthlyUnpaidBal=balance-minimumMonthlyPay
balance=monthlyUnpaidBal+monthlyInterestRate*monthlyUnpaidBal
totalPaid+=minimumMonthlyPay
print "Month:", i
print "Minimum monthly payment:", round(minimumMonthlyPay,2)
print "Remaining balance:", round(balance,2)
i+=1
print "Total paid:", round(totalPaid,2)
print "Remaining balance:", round(balance,2)
#Program to calculate receipt of a Credit Card
balance = 4842
annualInterestRate = 0.2
monthlyPaymentRate = 0.04
totalPaid=0.0
i=1
while(i<=12):
monthlyInterestRate=annualInterestRate/12.0
minimumMonthlyPay=monthlyPaymentRate*balance
monthlyUnpaidBal=balance-minimumMonthlyPay
balance=monthlyUnpaidBal+monthlyInterestRate*monthlyUnpaidBal
totalPaid+=minimumMonthlyPay
print "Month:", i
print "Minimum monthly payment:", round(minimumMonthlyPay,2)
print "Remaining balance:", round(balance,2)
i+=1
print "Total paid:", round(totalPaid,2)
print "Remaining balance:", round(balance,2)
I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article. Need credit collection services commercial? Visit dlrcollectionagency.com
ReplyDelete