This website uses cookies to ensure you have the best experience. Learn more

Mortgage Calculator Week 5 Java Ii

511 words - 3 pages

/*Programmer:SkySharkFile:MortgageCalculator5.javaDate:June 23,2008Purpose:To calculate and display the mortgage of the hard coded terms- 7 year at 5.35%- 15 year at 5.5%- 30 year at 5.75%*/import java.text.NumberFormat; //for currency formatimport java.util.*; //for Scannerimport static java.lang.System.out;import java.io.*;public class MortgageCalculator5{public static void main (String [] args)throws IOException{double loanAmount = 200000; //Loan amountdouble monthlyInt[] = {5.35, 5.50, 5.75}; //Monthly interest ratedouble monthlyPayment = 0; //Monthly paiddouble payments = 0;//Paymentdouble interestpaid = 0;//Interest paiddouble principalpaid = 0;//Principal paiddouble interest = 0;//Interestint loanTerm[] = {7, 15, 30}; //Term in year, arrayint lineCount = 1;// Int line ...view middle of the document...

println("\nYour monthly payment will be: " + currency.format (monthlyPayment) + "\n");out.printf("%s%15s%20s%20s\n", "Payment#", "Balance", "Principle Paid", "Interest Paid");while (lineCount key to continue ...\n");System.in.read(); //read in}}break;case 2:loanAmount = 200000.00; // reset loan amountlineCount = 1; //reset line countmonthlyPayment = calculate(loanAmount, monthlyInt[1], loanTerm[1]) ;out.println("\nYour monthly payment will be: " + currency.format(monthlyPayment) + "\n");out.printf("%s%15s%20s%20s\n", "Payment#", "Balance", "Principle Paid", "Interest Paid");while (lineCount key to continue ...\n");System.in.read(); //read in}}break;case 3:loanAmount = 200000.00; // reset loan amountlineCount = 1; //reset line countmonthlyPayment = calculate(loanAmount, monthlyInt[2], loanTerm[2]) ;out.println("\nYour monthly payment will be: " + currency.format(monthlyPayment) + "\n");out.printf("%s%15s%20s%20s\n", "Payment#", "Balance", "Principle Paid", "Interest Paid");while (lineCount key to continue ...\n");System.in.read(); //read in}}break;}out.println();out.println();}else //choice 4 was selectedout.println("\nThank You and come to see us again.\n");} // end of while} // end of mainpublic static double calculate(double Amount, double MonthInt, int Term) // calculation{double Monthly;Term = Term * 12;MonthInt = MonthInt / 100 / 12;Monthly = ( Amount * Math.pow((1 + MonthInt), Term) * MonthInt) /( Math.pow( (1 + MonthInt), Term ) - 1 );return Monthly;}private static void ShowMenu() // menu setup{out.println(" M E N U");out.println("\n");out.println("1. 7 Years at interest rate 5.35%");out.println("2. 15 Years at interest rate 5.50%");out.println("3. 30 Years at interest rate 5.75%");out.println("4. End program \n");out.print("\nEnter your choice: ");} // end function ShowMenu} // end of class

Find Another Essay On Mortgage Calculator week 5 Java II

History of Programming Languages Essay

1667 words - 7 pages . N.p., n.d. Web. 07 May 2014. . Hiscott, Rebecca. "10 Programming Languages You Should Learn in 2014." Mashable. N.p., 21 Jan. 2014. Web. 07 May 2014. . "History of Java." An Introduction to the Java Programming Language. Binghamton University, 1997. Web. 5 May 2014. . "History of PHP

The Capital Markets Process of Securitisation

3569 words - 14 pages securities, established under trust or corporations law (Liaw, A. et al 2000, pg 5). The financial intermediary sells the assets to the SPV, transferring ownership of the assets and removing the asset from the seller's balance sheet. To finance the purchase the SVP will issue securities to institutional investors in the domestic or international markets. These securities will have the backing of the mortgage or other asset pool (HREF:1

The Mortgate Industry

1086 words - 4 pages several factors. Each officer should be seasoned reception and working conditions for at least 3-5 "quality" leads per day, if they do not produce the same results through a consistent referral base. Range of 3-5 should their pipelines full and give them all credit for work they are during the working week. There is no time or money to now that has lost the mortgage industry is changing. Some terminology will be discussed, questions and insights lead

Financial Summary/Assumptions

1390 words - 6 pages due to them getting their hair cut every 3-5 weeks.  Women’s haircuts, color, perms and weaves are 41.16% of potential customers and are return every 5-7 weeks. Prices are based on the average cost of services in the valley and are comparable to some of the major chain salons. Rental income comes from the upstairs being rented out to a daycare company that has agreed to sign a three year lease for the rental amount of $1400 per month

Mortgage Law - MORT-Dead GAGE-Pledge

9215 words - 37 pages SALE WHEN VALID (1) 5[***] A mortgagee, or any person acting on his behalf, shall, subject to the provisions of this section have power to sell or concur in selling the mortgaged property or any part thereof, in default of payment of the mortgage-money, without the intervention of the court, in the following cases and in no others, namely (a) Where the mortgage is an English mortgage, and neither the mortgagor nor the mortgagee is a Hindu

essay

1001 words - 5 pages . It is a computer based software application which is an assemblage of devices like alarm, contacts, reminders, calculator, conversions and furthermore various other aspects. The project comprises of client interface evolved by java applets and database organized by MY SQL software. I have been appreciated by my professors and my project coordinator for these two projects. This work has instilled a great confidence in me in addition to

Solving the Foreclosure Crisis

1116 words - 4 pages would get to write off $4814.70 on the rental “losses.” The co-ops would essentially be non-profit, and would rent houses for what the principal and interest payment would be if the purchase had been financed. The principal and interest payment on $140,000 on a 5.5%, 30-year fixed mortgage is $794.90 (using a mortgage calculator available at http://www.yourkauairealty.com/calc-mort-pay.html) so the co-op would rent the house for that amount

Probability

774 words - 4 pages bought all the lottery tickets they were guaranteed to win because of one out millions of tickets would have the winning number on it. David J. Hand also wrote this example, “On September 6, 2009, the Bulgarian lottery randomly selected as the winning numbers 4, 15, 23, 24, 35, 42. There is nothing surprising about these numbers. The digits that make up the numbers are all low values -- 1, 2, 3, 4 or 5 -- but that is not so unusual. What was

Effects Of Financial Crisis On Real Estate Industry

1525 words - 6 pages =IPSGoldstein, Matthew, and David Henry, 2008, "THE SUBPRIME MESS: A SLOW BURN." Business Week 4067 http://find.galegroup.com.ezproxy.emich.edu/ips/start.do?prodId=IPSKellogg, Sarah, 2008, "The subprime mortgage meltdown: an uncertain future." Washington Lawyer, http://find.galegroup.com.ezproxy.emich.edu/ips/start.do?prodId=IPSZimmerman, Thomas, 2007, "The great subprime meltdown of 2007." Journal of Structured Finance 13.3 http

Statement Of Purpose for College Life

918 words - 4 pages knowledge in the field of computers, I decided to pursue an undergraduate degree in Information Technology. Owing to a good score of 92% in Physics, Chemistry and Math, I was accepted into the prestigious Vivekanand Education Society Institute of Technology which is among the top 5 universities in Mumbai, India. Through this medium, I was exposed to the full range of engineering courses from java, Data Structures, C++ to Operating Systems, Network

Technology in the Mathematics Classroom

983 words - 4 pages . “Because calculators do all of the work for the student, he/she will not be stimulated or challenged enough.” 3 3. "If I didn't need to use technology to learn math, then neither does my child. After all, I turned out just fine." 4. “The use of calculators prevents students from effectively learning the basic mathematics they will need when they enter the workforce.” 5. “People will become so dependent on calculators that they will be

Similar Essays

House Mortagage Case Assignment Fnce1101 Mortgage Report And Listing

1108 words - 5 pages FNCE1125 Introduction to Finance Mortgage Case Winter 2016 Weight: 15% Name: ___________ Section (Required): __ (First, last) Instructor (Required): Section Item Worth Earned I Finding the House 1 II Down Payment and Mortgage Amount 2 III CMHC Premium 2 IV Mortgage Rate 1 V Prepayment Privileges 2 VI Calculating Your Monthly Mortgage Payment 3 VII Payment Frequencies 5 VIIII Calculating Annual Property Tax 3 IX Qualification 3 X Closing Costs 1

Survey Of Mpi Implementations Delimited By Java

3125 words - 13 pages parallelism support would be a part of Java 7. Still, the utilization of multi-core systems in clusters requires distributed memory parallelism using MPI like frameworks. This paper presents a literature review of existing MPI implementations in Java. The remaining part of the paper is organized as follows; section II covers the literature overview, section III gives critical evaluation of MPI models, and concluding remarks are covered in section IV

Compiler Essay

4117 words - 16 pages BASIC language written in Java. Instant Basic for Java -- pure Java certified 4GL tool similar to Visual Basic. OmniBasic -- a structured dialect of Basic with many extensions. OpenBasic -- Basic interpreter and run-time system similar to Basic Four Business Basic. PRO/5 -- business application development tools based on BBx BASIC language. QB2C -- a QuickBASIC to C translator with X11 graphics support. QueriX 4GL -- 4GL compilers which

A Framework For Parallel Code Execution Using Java

3795 words - 15 pages Framework 1000 15 15 172 32 10000 312 172 235 109 100000 29578 9578 7532 7590 TABLE II. CODE SPEED-UP GAIN RESULTS (HIGHER IS BETTER) No. of Elements Speed-up Gain (%) Java Threads MPJ Express Proposed Framework 1000 1.000 0.087 0.469 10000 1.814 1.328 2.862 100000 3.088 3.927 3.897 Figure 4. Execution Time (in milliseconds) for 1000 Elements. Figure 5. Execution Time (in milliseconds) for 10000 Elements. Figure 6. Execution