hey thanks for all the help.
I made the appropriate changes in the loop, and changed up the formulas a little bit too in the loop. My calculator is giving me the right answer, but forget the loop, the whole program isn't working. And i have been working on this on and off for a couple of days. Please kindly help me
1 2 3 4 5 6 7 8 9 10 11 12 13
|
principle=totalLoan;
for (double i = monthlyPayment; i <= totalLoan; ++i)
{
interestPaid= monthlyInterest*totalLoan;
principlePaid= monthlyPayment-interestPaid;
balanceRemaining=principle-principlePaid;
principle=balanceRemaining+principlePaid;
totalLoan = balanceRemaining;
cout <<i<<setw(15)<<principle<<setw(13)<<interestPaid<<setw(13)<<principlePaid<<setw(13)<<balanceRemaining;
}
getch();
}
|
the compiler is giving me the following output:
All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.29
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========