Yes this is a homework assignment. My instructor has broken english and I
just could not follow along last night. How do I do this
Write the program in Java (without a graphical user interface) and have it
calculate the payment amount for 3 mortgage loans:
a.. 7 year at 5.35%
b.. 15 year at 5.5%
c.. 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount
for each loan.
My first one is below that works but how do I do the above
public class wtest
{
public static void main (String[] args)
{
double principal =2000000.0;
double rate =5.75;
double term =30.0;
double monthlyPayment =0.0;
rate = rate/1200.0;
term = term * 12;
monthlyPayment = principal * rate/ (1.0 - Math.pow(rate+1 ,-term));
System.out.prin tln(monthlyPaym ent);
}
}
--
The best live web video on the internet http://www.seedsv.com/webdemo.htm
NEW Embedded system W/Linux. We now sell DVR cards.
See it all at http://www.seedsv.com/products.htm
Sharpvision simply the best http://www.seedsv.com
just could not follow along last night. How do I do this
Write the program in Java (without a graphical user interface) and have it
calculate the payment amount for 3 mortgage loans:
a.. 7 year at 5.35%
b.. 15 year at 5.5%
c.. 30 year at 5.75%
Use an array for the different loans. Display the mortgage payment amount
for each loan.
My first one is below that works but how do I do the above
public class wtest
{
public static void main (String[] args)
{
double principal =2000000.0;
double rate =5.75;
double term =30.0;
double monthlyPayment =0.0;
rate = rate/1200.0;
term = term * 12;
monthlyPayment = principal * rate/ (1.0 - Math.pow(rate+1 ,-term));
System.out.prin tln(monthlyPaym ent);
}
}
--
The best live web video on the internet http://www.seedsv.com/webdemo.htm
NEW Embedded system W/Linux. We now sell DVR cards.
See it all at http://www.seedsv.com/products.htm
Sharpvision simply the best http://www.seedsv.com
Comment