User-agent: Mozilla Thunderbird 0.9 (X11/20041103)
Hey Brian:
Years ago I did a program that did that, but there are two catches:
1. It's written in "C"
2. It doesn't take leap years into account.
I actually wrote it for my own use because I was trying to figure out
potential costs.
The port from "C" to java should be easy. If you want it, let me know
and I'll e-mail it to you.
Good Luck,
Bill Wagner
Brian Lackey wrote:
I am in a class learning java. I am a new beanie. I am trying to
figure out how to calculate hard coded values. Is there a class that
already has the mortgage calculation in it? Math.pow?
======
public class mortgage {
public static void main(String[] arguments) {
int term = 360; //length of loan in months
int mortgage = 200000; //mortgage amount
double rate = 5.75; // percentage rate of loan
System.out.println("A mortgage payment on $200000 at 5.75% for
30 years is ");
}
}
=======
Brian Lackey
email@hidden
Fort Collins, CO
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden