This program will allow the user to enter the principal amount that theyre borrowing,the interest rate, and the length in years. Then, it will print a mortgage loan payoff table.Algorithm:1) Input principal (the amount borrowed)2) Input interest (the interest rate annually)3) Input lengthYears (the number of years of the loan)4) Calculate the monthlyPayment using the formula provided belowmonthlyPayment = principal * (decimalInterest / (1 (1 + decimalInterest)^(-lengthMonths)))5) Compute the monthlyInterest by multiplying principal by the decimalInterest6) Compute the monthlyPrincipal by taking monthlyPayment and subtract monthlyInterest7) Compute the newBalance by taking the principal and subtract monthlyPrincipal8) Make the newBalance become the principal9) Loop step 5 through 8 until principal is 010) Prompt the user if they want to repeat back to step 1, so nested loop11) If they press Y, clear the screen and go back to step 1. If they press N, exit the loop.
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.