Itco 620 unit 5 project

283 views

Published on

Published in: Technology, Economy & Finance
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
283
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Itco 620 unit 5 project

  1. 1. SOLUTIONJUG.COMITCO 620 - Unit 5 ProjectScreenshot 1Screenshot 2Screenshot 3Screenshot 4CLICK HERE TO GET THE SOLUTION !!!!!!Your project as a programming consultant is to create a program that develops an amortizationschedule. Your program should be written as a Java applet. As an applet, your program will beexecuted through the use of a browser. Your applet should prompt the user for three differentinputs, loan amount, the duration of the loan and the annual interest rate. Your task is to create aJava applet that provides the user with a payment schedule, or amortization schedule. Theschedule must include monthly payment amount, interest amount, principal amount and theremaining balance per pay period. The amortization table must be presented to the user in a nicelyformatted table.The applet input will be the loan amount, annual percentage rate (APR), and the number of years topay out the loan. The output will be the loan amount, interest rate per pay period number of payperiods and the monthly payment. This information would be followed by the amortization schedule.Following is an example of the expected output for a $35,000 loan over 8 years at 8.5% interestrate.Loan Amount: $35,000Interest Rate per pay period: 0.085Pay Periods: 96Monthly Payment Amount: $503.72Payment Monthly Amount Interest Principal Balance35,000.001 503.72 247.92 255.80 34,744.202 503.72 246.10 257.62 34,486.583 503.72 244.28 259.44 33,965.86….
  2. 2. 95 503.72 7.07 496.65 500.7896 503.72 3.55 500.17 0.61The necessary calculations are below:p,loan amount or principaln,number of payments = payments per year * number of yearsi,interest rate per pay period = APR/payments per year = APR/12t,interest paid = interest rate per pay period * previous principal balancer,monthly payment amount = principal * interest per period / (1-(1+(interest perperiod)/100)^(number of payments-1)^2)a, principle amount = monthly payment amount – interest paidb, principle balance = previous balance – principle amountHint: In Java syntax the monthly payment calculation is:r=((p*(i/100))/(1-(Math.pow((1+(i/100)),(n*(-1))))));Details:Please note that your program should accept three inputs:1. The loan amount,2. Annual Percentage Rate, and3. The number of years to pay out the loanAnd calculate six types of outputs:1. The monthly payment amount,2. Interest per pay period,3. Number of pay periods,4. Amortization schedule (including amount of interest per pay period, principal per pay period,and principle balance)When coding your applet, remember the following:Your applet needs to extend the Applet (or JApplet) class. Of course, you needto import the appropriate applet package(s).Your applet needs to have declarations for the fields, labels, components,widgets,etc. that you use in the applet.There are applet methods that are called automatically by browsers (please seeyour textbook). Make sure you initialize (implement init()) your applet.You need the code that does the calculation of the interest.You need to handle the event of pressing the button. There are some examplesin the book (ask your instructor for the specific pages).
  3. 3. Please create an HTML page that contains the applet tag. In addition to your mortgagecalculator commented Java code, you need to provide the HTML page.Here is the Hello world Java code example to create an applet:import java.applet.*;import java.awt.*;/*** The HelloWorld class implements anapplet that* simply displays "HelloWorld!".*/public class HelloWorld extends Applet {public void paint(Graphics g){// Display "Hello World!"g.drawString("Hello world!",50, 25);}}Then you would compile the class and create an HTML page called Hello.htm:<HTML><HEAD><Title>A Simple Program.</Title></HEAD><BODY>Here is the output of my program:<APPLET CODE="HelloWorld.class"WIDTH="150" HEIGHT="25"></APPLET></BODY></HTML>Screenshot 1Screenshot 2Screenshot 3
  4. 4. Screenshot 4CLICK HERE TO GET THE SOLUTION !!!!!!

×