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 :

  1. Write a program that reads in the interest rate, number of years, and loan amount, and computes monthly payment and total payment.
  1. 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

 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!