#include #include #include void main () { double principal, payment, annual; int months; { cout << endl; cout << "Please enter the amount of the loan --> $"; cin >> principal; cout << "The annual interest rate --> %"; cin >> annual; cout << "The amount of the monthly payments --> $"; cin >> payment; cout << "How many months the payment is for --> "; cin >> months; cout << "\n\n"; double interest, balance1; cout << setprecision(2) << setiosflags (ios::fixed |ios::showpoint | ios::right); cout << "Month "; cout << "Principal "; cout << "Interest "; cout << "Payment "; cout << "New Balance"<< endl; interest = principal*(payment/12); balance1 = principal; for(int x=0; x<=months; x++) { cout << x << " "; cout << principal << " "; cout << interest << " "; cout << payment << " "; cout << balance1 << " "; cout << endl; principal = balance1; balance1 = principal+interest-payment; } } }