Mortgage Calculator Service Request 1
Below is one of our free research papers on Mortgage Calculator Service Request 1. If the term paper below is not exactly what you're looking for, you can search our essay database for other topics or order a custom essay.
Mortgage Calculator Service Request 1
/*
Writen by
1/31/2009
Week 3 PRG420
Change Request #1
Requestor: Dwain Hammer - Billings, MT
Write the program in Java (without a graphical user interface)
using a loan amount of $200,000
with an interest rate of 5.75%
and a 30 year term.
Display the mortgage payment amount
and then list the loan balance and interest paid for each payment
over the term of the loan. If the list would scroll off the screen,
use loops to display a partial list, hesitate, and then display more of the list.
*/
import java.io.*; //java input output
import java.math.*; //loan calculator
import java.text.*; //formats numbers
public class LoanCalcWk3_30yr //class begin
{
public static void main(String[] args) throws IOException
{
String userChoice;
int choice;
BufferedReader myIn= new BufferedReader(new InputStreamReader(System.in));
//Format header for program use
System.out.println();
System.out.println( "Mortgage Calculator");
System.out.printf("%60s\n", "------------------------------------");
System.out.println( "------------------------------------");
System.out.println();
System.out.println("Mortgage payment and an Amortization Table");
System.out.println();
System.out.println("Loan Ammount");
System.out.printf("%45s\n", "$200,000 Principal");
System.out.println();
System.out.printf("%60s\n", "30yrs, 5.75%");
System.out.println();
//This is where it will prompt the user to do a command
System.out.println ("Enter 1 for Yes then press ENTER.\n");
userChoice = myIn.readLine();
choice = Integer.parseInt(userChoice);
// Variables
java.text.DecimalFormat two = new java.text.DecimalFormat("###,###.00");
//Will select loan options here.
//int loan[] = {1, 2, 3};
//int[] years = {7,15,30 etc};...
- Submitted by: trm199
- Date Submitted: 02/28/2009 12:37 PM
- Category: Technology
- Words: 241
- Pages: 1
- Views: 935
- Rank: 4457