Advertisement
akosiraff

Amortization JAVA

Nov 3rd, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/amortization-java/
  3. Write an application that will calculate an amortization table for a loan. Loan class: This defines a loan object. Create the loan class based on the class diagram shown in Figure 3. Use the to String method to output the loan values like those shown at the top of Figure 1. To calculate a monthly payment, use the following fomula. Here the Total Term is the total number of months in the life of the loan: Monthly Payment = Principle * Monthly Rate / (1 – (1 + Monthly Rate) -Total Term )) Amortization class: This component will provide the amortization table portion of the output shown in Figures 1 and 2 when the doAmortization method is called. Note that constructors are overloaded for both Loan and Amortization classes. 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 Main class: use the main() method to manage the execution of the application. in this method you should: 1. Create and initialize an object from the Loan class 2. Use the loan object’s toString method to print the loan properties 3. Create and initialize an object from the Amortization class 4. Use the amortization object’s doAmortization method to print the amortization table
  4. Download: http://solutionzip.com/downloads/amortization-java/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement