Answered step by step
Verified Expert Solution
Question
1 Approved Answer
https://gyazo.com/8b6f4f4fbcd45b35afe052d044821cbf https://gyazo.com/f7370fe30a716e49d41b4e908c1a42f3 What to do: Write a Java Web application using a servlet and Java class that will calculate an amortization table for a loan.
https://gyazo.com/8b6f4f4fbcd45b35afe052d044821cbf
https://gyazo.com/f7370fe30a716e49d41b4e908c1a42f3
What to do: Write a Java Web application using a servlet and Java class that will calculate an amortization table for a loan. An amortization table shows the monthly payment, the amount paid to interest, the amount paid down on the balance, and the monthly final balance over the life of a loan. When completed your application should produce output with numbers like that shown in Figures 1 and 2. As you can see in Figure 1 these values are for a 30year loan with a principle of S200000 at 6% interest your appliation should work correctly for any reasonable values of loan properties. You should make the following components for this assignment: Loan java: This defines a loan object. You may adjust this class as needed. Here the Total Term is the total number of months in the life of the loan: Monthly Payment Principle Monthly Rate (-(1 Monthly Rate) -Total Term) Amortization.java: This component wil provide the amortization table portion of the output shown in Figures 1 and 2 when the doAmortization method is called. You may adjust this class as needed Some other relationships that you will need to complete the view are monthly payment to interest- monthly interest rate * current balance monthly payment to balance monthly payment - monthly payment to interest current balance (after payment) = current balance (before payment)-monthly payment to balance . index.jsp: an html form page that allows the user to enter the initial loan information. Use textboxes and buttons. When the form is submitted, the AmortizationServlet class will be called to create the loan amortization output. AmortizationServlet: a servlet that wil 1. Get the data from the request. 2. Create a Loan and an Amortization object 3. Use the Loan and Amortization object to calculate the amortization table 4. Get values from Amortization object and incorporate it into the HTML for response to the client. What to do: Write a Java Web application using a servlet and Java class that will calculate an amortization table for a loan. An amortization table shows the monthly payment, the amount paid to interest, the amount paid down on the balance, and the monthly final balance over the life of a loan. When completed your application should produce output with numbers like that shown in Figures 1 and 2. As you can see in Figure 1 these values are for a 30year loan with a principle of S200000 at 6% interest your appliation should work correctly for any reasonable values of loan properties. You should make the following components for this assignment: Loan java: This defines a loan object. You may adjust this class as needed. Here the Total Term is the total number of months in the life of the loan: Monthly Payment Principle Monthly Rate (-(1 Monthly Rate) -Total Term) Amortization.java: This component wil provide the amortization table portion of the output shown in Figures 1 and 2 when the doAmortization method is called. You may adjust this class as needed Some other relationships that you will need to complete the view are monthly payment to interest- monthly interest rate * current balance monthly payment to balance monthly payment - monthly payment to interest current balance (after payment) = current balance (before payment)-monthly payment to balance . index.jsp: an html form page that allows the user to enter the initial loan information. Use textboxes and buttons. When the form is submitted, the AmortizationServlet class will be called to create the loan amortization output. AmortizationServlet: a servlet that wil 1. Get the data from the request. 2. Create a Loan and an Amortization object 3. Use the Loan and Amortization object to calculate the amortization table 4. Get values from Amortization object and incorporate it into the HTML for response to the client
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started