Menu

(Solved) : Instructions Enhance Program Exercise 20 First Telling User Minimum Monthly Payment Prompt Q37209706 . . .

Programming Exercise 5-21

Write in C++. Please provide copy and paste code.

Instructions Enhance your program from Exercise 20 by first telling the user the minimum monthly payment and then prompting t1 #include ciastrean> using nanespace std; 41 int nain () double loanArount: double monthlyPayrent; double paynentorincipal;

Thanks.

Instructions Enhance your program from Exercise 20 by first telling the user the minimum monthly payment and then prompting the user to enter the monthly payment. Your last payment might be more than the remaining loan amount and interest on it. In this case, output the actual amount of the last payment. Also, output the total interest paid 1 #include ciastrean> using nanespace std; 41 int nain () double loanArount: double monthlyPayrent; double paynentorincipal; int nonths cout fixed shopoint; 13cout << setprecision(2) cout c Enter the Loan anount 15cin oananount 16 cout endl; cout <* “Enter the interest rate per year 1 cin interestRate 19 cout endl; 21 cout “Enter the monthly paynent: 2cin ronthlyPayrent cout “Monthly payment is too low. The loan cannot be repaid. se endl; return 1 Months e while cloanAnount e) cout-ce “It will take·s nonths-cs “months to repay the Loan.” 35 38 return Show transcribed image text Instructions Enhance your program from Exercise 20 by first telling the user the minimum monthly payment and then prompting the user to enter the monthly payment. Your last payment might be more than the remaining loan amount and interest on it. In this case, output the actual amount of the last payment. Also, output the total interest paid
1 #include ciastrean> using nanespace std; 41 int nain () double loanArount: double monthlyPayrent; double paynentorincipal; int nonths cout fixed shopoint; 13cout

Expert Answer


Answer to Programming Exercise 5-21 Write in C++. Please provide copy and paste code. Thanks. …

OR