Question: Write a program that reads in the interest rate, number of years, and loan amount, and computes monthly payment and total payment. For example :
- Write a program that reads in the interest rate, number of years, and loan amount, and computes monthly payment and total payment.
- For example :
Enter yearly interest rate, for example 4.5: 3.25
Enter number of years as an integer, for example 5: 9
Enter loan amount, for example 120000.95: 10000.0
The monthly payment is RM106.91
The total payment is RM11547.13



Task 2: 1. Write a program that reads in the interest rate, number of years, and loan amount, and computes monthly payment and total payment. loanAmountmonthlyInterestRate 1 monthlyPayment 1. (1+monthlyInterestRate numberOfYears012 = 2. For example : Enter yearly interest rate, for example 4.5: 3.25 Enter number of years as an integer, for example 5: 9 Enter loan amount, for example 120000.95: 10000.0 The monthly payment is RM106.91 The total payment is RM11547.13 Hint: Use the Math. pow(a, b) method to compute a raised to the power of| b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
