Im making a program that shows the info of a payment plan. I have the main formula done but dont know how to make the for loop with i to break down all the info for every month.
I want it to look like:
![Name: helpme.jpg
Views: 21
Size: 40.8 KB]()
The formulas for all the columns are:
Payment number = Payment number + 1
Interest paid = New balance due * monthly interest rate
Principal paid = monthly payment Interest paid
Cumulative interest = Cumulative interest + Interestpaid
Paid to date = Paid to date + monthly payment
New balance due = New balance due Principal paid
I have this much so far but am not sure whether or not to assign variables to everything like I am. I want to use the 'for' instead of the 'if' but it doesnt let me.
amortunfinished.cpp
I want it to look like:
The formulas for all the columns are:
Payment number = Payment number + 1
Interest paid = New balance due * monthly interest rate
Principal paid = monthly payment Interest paid
Cumulative interest = Cumulative interest + Interestpaid
Paid to date = Paid to date + monthly payment
New balance due = New balance due Principal paid
I have this much so far but am not sure whether or not to assign variables to everything like I am. I want to use the 'for' instead of the 'if' but it doesnt let me.
amortunfinished.cpp