Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mortgage math



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

This email sent to email@hidden
References: 
 >mortgage math (From: Brian Lackey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.