rendered paste body#include <iostream>
using namespace std;
int main(){
//Declaring variables given in the project
float fltLoan1 = 55000;
float fltLoan2 = 26000;
float fltInterest1 = .009;
float fltInterest2 = .006;
float fltPayment = 0;
int intMonthCounter = 0;
while (fltLoan1 > 0)
{
intMonthCounter++;
cout << "Month #" << intMonthCounter << endl;
fltPayment = 1500 - ((fltLoan1 * fltInterest1) + (fltLoan2 * fltInterest2));
cout << "Your month's payment breaks down like this:\n" << "Interest Payment on Loan 1 ($55,000 @ .9%) is: " << (fltLoan1 * fltInterest1);
cout << "\nInterest Payment on Loan 2 ($26,000 @ .6%) is: " << (fltLoan2 * fltInterest2);
cout << "\nPayment to Loan 1's premium is: " << fltPayment;
fltLoan1 -= fltPayment;
cout << "\n------------" << endl;
}
return 0;
}