The program below is the solution to Liang’s Introduction to Java Programming (9th Edition) Chapter 2 Exercise 2.20.

Question: If you know the balance and the annual percentage interest rate, you can compute the interest on the next monthly payment using the following formula:

interest = balance * (annualInterestRate /1200)

Write a program that reads the balance and the annual percentage interest rate and displays the interest for the next month.

Ex02.20 solution- liang introduction to java programming
Program output

Click here to see other solutions to Introduction to Java Programming.

Write A Comment