Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java Displaying the loan amortization schedule The monthly payment for a given loan pays the principal and the interest. The formula to compute the monthly

image text in transcribed

java

Displaying the loan amortization schedule The monthly payment for a given loan pays the principal and the interest. The formula to compute the monthly payment is as follows: Monthly pay = (loanAmount * monthlyInterestRate)/(1-1/(1+ monthlyInterest Rate) humor years ? )) 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 a program that lets the user enter the loan amount, the number of years, and the interest rate, and displays the amortization schedule for the loan. Suppose you enter the loan amount for 10000 for one year with an interest rate of 7%, display a table as follows: Payment # Interest Principal Balance 1 58.33 53.62 48.89 806.93 811.64 816.37 9193.07 8381.43 7565.06 14.96 10 5.01 850.3 855.26 860.25 1715.53 860.27 0.01 Note: Use the GUI interface to input the values and display the table on to an output file. Must import the necessary files to read using GUI and output the table to external output file. Also use Math class to compute the power of a number. Use DecimalFormat class to reduce the decimal to two places

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions