Java Mortgage calculator help.? - mortgage calculator amortization table
Can someone help me fill in the details of this situation? I must have a mortgage calculator, the following Java --
The user is prompted to enter the mortgage amount, duration in years of the mortgage, and an annual interest rate. The amount of the mortgage will be greater than 0 and not to exceed $ 10,000,000. The minimum loan term is five years, with a maximum of 30 years. In May, you can show to provide more information about the mortgage application three most commonly used and the user will select in a position to mortgage instead of providing information on mortgage. Once the user has provided information on mortgages, the program needs to calculate the monthly mortgage payment and amortization table for the duration of the mortgage. Show paid for each month, repayment plan, the duration of the loan, the loan balance, principal balance, balance of interest, principal and interest.
The formula for the mortgage payments.
PMT = (PV x IR) / (1 - (1 + IR) ^-NP)
Where:
PMT = monthly payment
PV = value principle (loan amount)
IR = Interest Rate per month
NP = Note Period, or mortgage Term in months
IR = apr/100/12
NP = Time * 12
April, when> 0 and the \\ \\ \\ \\ Apr \\ \\ \\ \\ u0026lt; = 100 then
PMT = (Principal * IR) / (1 - (1 + IR)-NP)
April = 0 else if
PMT = Principal / NP
End If
I need help I'm not so good with Java. While the calculator gives me this, I think he can do the rest.
Tuesday, January 5, 2010
Mortgage Calculator Amortization Table Java Mortgage Calculator Help.?
Subscribe to:
Post Comments (Atom)
1 comments:
java.util.Scanner import;
MortgageCalculator2 class (
Public MortgageCalculator2 () (
) intro (;
)
public void measurement (String s) (
System.out.println ( "% s% s", s);
)
public void Metz (String s) (
System.out.println ( "% s>", s);
)
public void intro () (
Scanner sc = new Scanner (System.in);
perform Boolean = true;
("---------------------------------- Mess ...
(Chaos, Death Speci \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ u00e2l WARESOFT ");
Disaster ( "If you do not swim the loan, the governor will");
("---------------------------------- Mess ...
while (run) (
String [args] = new String [3];
Metz ( "Enter Principal Amount");
args [0] = sc.nextLine ();
Metz (giving the "period of the note (years))";
args [1] = sc.nextLine ();
Metz ( "Give an example in April: 9.55 ");
args [2] = sc.nextLine ();
LMP = load String (args);
( "\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ N catastrophe");
Trouble (PMT);
Disaster ( "do nothing");
if (sc.nextLine ().
catch ( "q")) (
run = false;
)
)
)
public static void main (String [] args) throws Exception (
MortgageCalculator2 new ();
)
to invite private String (String [] args) (
Float.valueOf PV = float (args [0]);
int term = Integer.valueOf (args [1]);
April Float.valueOf = float (args [2]);
/ / IR = double April / 100 / 12;
Double Jump = April / 12;
Double np = length * 12;
System.out.println ( "The monthly interest rate:% 2.2f%%", IR);
payNum double = (PV * n) / (1 - (1 + IR)-NP);
Return String.Format ( "Monthly Payment: $% 6.2f" payNum);
)
)
I have no confidence in tRAINING formula. This is not just as a mortgage loan program. But it will probably give way.
Post a Comment