Write bash script for the monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining...


Write bash script for the monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining principal).The principal paid for the month is therefore the monthly payment minus the monthly interest. Write bash script that lets the user enter the loan amount, number of years, and interest rate, and then displays the amortization schedule for the loan.


Sample output:


Enter annual interest rate: 5.75


Enter no of years: 5


Enter loan amount: 1000


Interest rate       monthly payment        total payment


5%                    188.8                           11322.74



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here