ERrr i'm so frustrated...
I'm doing a c++ assignment based on a loan amortization table..
In it the user enters in 3 values... Loan Amount... Interest Percentage rate.. and Number of Months to payback the loan..
From that were supposed to seperate the monthly payments into a table... and include values for Payment Number, Interest Paid, Principal Paid, Cumulative Interest Paid, Total Paid to Date, and New Balance
Above the table are the Loan Amount, Interest Percentage Rate Amount, Number of Months amount, and Monthly Payment amount (based on a formula from teacher)..
I'm using multiple functions for each variable i mentioned, plus one for the outstream table...
When I try to loop it all in main so that it carries through each function then outputs the values.. then repeats until all the monthly payments have been made instead it shows this:
Amount Annual%Interest Months Monthly Payment
1500.00 0.14 12.00 134.68
-----------------------------------------------------------------------------------
Payment Interest Principal Cumulative Total Paid New Balance
Number Paid Paid Interest to Date Due
-----------------------------------------------------------------------------------
0.00 17.50 117.18 210.00 0.00 1382.82
: It doesn't even show the payment number properly (which is a function set up just to add 1 and output itself (pay_num++

: It adds up the sum of all 12 monthly payments and then outputs the total once for the Cumulative Interest
: It doesn't even give a value for Total Paid to Date
which function is:
Total_Paid = Total_Paid + Principal_Paid; (with total_paid being set to 0)
The total paid function does the same as the cumulative when I put a reference variable next to it (takes the sum of all 12 payments and outputs it one time!)
I'm using reference variables.. and i'm not 100% with some...
I know for specific help you'd need to see my whole code and the actual assignment... But ANY SUGGESTIONS would help a lot!!
thanks!