Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Payment program

$
0
0
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
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images