Mortgage - Home Mortgage, Mortgage Loans, Rates, Calculators, Mortgage Brokers, Credit, Landers  

Go Back   Mortgage Forum Index > Mortgage and Loans Forum > Mortgage Calculator

Open Question: Help with java program?

This is a discussion on Open Question: Help with java program? within the Mortgage Calculator forums, part of the Mortgage and Loans Forum category; I did allright with the program, but now I have to add an array of 7 years payment amount @ ...


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. ...

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2008, 06:31 AM
Administrator
 
Join Date: Oct 2007
Posts: 44,600
Your Earnings US $: 186,715.70
How To Earn By Posting?
Default Open Question: Help with java program?

I did allright with the program, but now I have to add an array of 7 years payment amount @ 5.35%, 15 years payment amount @ 5.5%, and I have yet to be ableto put this into a decimal place of two. This has been a very complicated addition to an easy program. How can I do this? 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...
Reply With Quote

Tags
java, open, program, question


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Question: Modify my java program with new interest rates and terms arrays? Administrator Mortgage Calculator 0 11-20-2008 05:00 PM
Open Question: Round Up Payment amounts to the 10ths in Java? Administrator Mortgage Calculator 0 11-13-2008 07:00 PM
Open Question: Can anyone tell me a program that can help pay on your mortgage.? Administrator Mortgage Refinancing 0 11-05-2008 05:28 PM
Open Question: Java Mortgage calculator help.? Administrator Mortgage Calculator 0 10-11-2008 08:54 PM
Mortgage Java Program Administrator Mortgage Know-How 0 09-27-2008 10:17 PM


Bookmark this thread
Share |

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Discussion Open Question: Help with java program? in printable format

All times are GMT. The time now is 02:04 AM.


Loans & Mortgage Forum :: Register :: Members :: Statistics :: Rules :: Help :: Contact :: Archive