Please modify the attached program so it will satisfy the below requirements:
- 7 year at 5.35%
- 15 year at 5.5%
- 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. On longer-term loans, the list will scroll off the screen. Do not allow the list to scroll off the screen, but rather display a partial list and then allow the user to continue the list. Allow the user to loop back and enter new data or quit. Insert comments in the program to document the program.
A program is written as a procedural C++ program to calculate mortgage payment amount. The program allows the user to:
- Input the amount of a mortgage
- Select from a menu of mortgage loans and then calculates the mortgage payment amount.