![]() |
|
|||||||
Open Question: Modify my java program with new interest rates and terms arrays?This is a discussion on Open Question: Modify my java program with new interest rates and terms arrays? within the Mortgage Calculator forums, part of the Mortgage and Loans Forum category; Help.. I need to add in the same code format the following:7 year mortgage @ 3.35%15 year mortgage @ 5.5% ... |
|
Google Ads
Advertisement
|
|
| Mortgage Calculator Mortgage calculators are used to help a current or potential real estate owner determine how much they can afford to borrow to purchase a piece of real estate. This online tool enables prospective borrowers to calculate and compare monthly mortgage payments for different loan types, terms, interest rates ... A calculator that determins what the monthly principal and interest will be by entering the home loan amount and interest rate. ... |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Help.. I need to add in the same code format the following:7 year mortgage @ 3.35%15 year mortgage @ 5.5% andthe 30 year @ 5.75A% (Already coded)How do I add the arrays, and just get the paymentamount rounded to .00 for each on the same page?import java.text.DecimalFormat;public class MortgagePayment{ public static void main(String args[]) throws Exception { //declare and construct variables int loanAmt = 200000; // this is the principal loan amount int loanTerm = 30; // this is the loan term in years int monthNum = 360; // indicates the monthly line item number int line = 0; double intRate = 5.75; // this is the initial interest rate double monthlyPay = 0; // monthly payment double monPrinPay; // monthly principal payment double newLoanBal = 200000; // the loan balance double monIntPaid; // interest paid double newIntRate = 0; // monthly interest rate // displays in the console window System.out.println(); System.out.println(Welcome to Anne's Mortgage Payment Calculator); System.out.println(); System.out.println(This program will calculate and display: (1) Monthly mortgage payments); System.out.println(The principal loan amount = $ + loanAmt); System.out.println(The interest rate = + intRate + %); System.out.println(The term of the loan = + loanTerm + years); // construct the formulas loanTerm = loanTerm * 12; newIntRate = (intRate * .01) / 12; monthlyPay = loanAmt * newIntRate / (1 - Math.pow(1 + newIntRate, - loanTerm)); // displays the variable information and formula results System.out.println(); System.out.println(The monthly payment for a $ + loanAmt + over a + loanTerm + -month term (30 years) at a ); System.out.println(intRate + % interest rate = $ + monthlyPay); System.out.println(); }}
More... |
| Tags |
| arrays, interest, java, modify, open, program, question, rates, terms |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Let bankruptcy courts modify mortgage terms | Administrator | Mortgage Know-How | 0 | 12-01-2008 11:29 PM |
| Java - Mortgage Calculator Add Arrays | DreamInCode.net | Administrator | Mortgage Calculator | 0 | 11-25-2008 11:39 PM |
| Open Question: Help with java program? | Administrator | Mortgage Calculator | 0 | 11-21-2008 06:31 AM |
| FHFA Will Modify Mortgage Terms by Brute Force | Administrator | Mortgage Know-How | 0 | 10-06-2008 07:08 AM |
| Countrywide launches program to refinance or modify mortgages | Administrator | Mortgage Know-How | 0 | 10-24-2007 12:37 AM |
| Bookmark this thread |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|