Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this in Java. 1-Create an application that will allow a loan amount, interest rate, and number of finance years to be entered for

I need this in Java.
image text in transcribed
image text in transcribed
image text in transcribed
1-Create an application that will allow a loan amount, interest rate, and number of finance years to be entered for a given loan. Determine the monthly payment amount. Calculate how much interest will be paid over the loan. Display an amortization schedule showing the new balance after each payment is made Design an object-oriented solution by using the three layers architecture. For the load class, characteristics such as the amount to be financed, rate of interest period of time for the loan, and total interest paid will identify the current state of a loan object. Include methods to determine the monthly payment amount, return the total interest paid over the life of the loan, and return an amortization schedule In the second class, instantiate an object of the load class. Allow the user to input data about more than one loan. Display in the loan LoanApp class the payment amount, amortization schedule, and the total amount of interest to be paid. In the third class, provides a discount percent based on payment amount paid. Note: Test for valid data entries Formulas are needed to calculate the following: numPayments-years 12; term = (1 + rate /12.0)"mPayments term (1+rate/12.0numPayments (2*2) paymentAmounts loanAmount * rate /12 * term/term-1.0) monthinterest- rate/12 *balance Principal = payment-month!nterest Balance balance-principal TotalinterestPaid totalinterestPaid +monthlnterest Discount Amounte paymentAmount discountPercent If paymentArmount >= 2000: discountPercents .2 If paymentAmount >=1000:discoumPercent. I //javalang. Math // For example: double resultsMath.pow(2,2); result is 4.0 Otherwise, discountPercent 0; Note: The desired output is to display the monthly payment amount, an amortization schedule, and the total interest paid over the life of the loan. The following shows a prototype for the final output

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 Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Evaluate the integral. csc x dx

Answered: 1 week ago