gvsu/cs621/proj3/LoanApplication.java
josh 44793226d8 compiling
git-svn-id: svn://anubis/gvsu@72 45c1a28c-8058-47b2-ae61-ca45b979098e
2008-03-20 04:35:48 +00:00

34 lines
947 B
Java

import java.io.*;
public class LoanApplication
{
private Loan m_loan;
private String m_summary;
public void run()
{
try
{
for (;;)
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please enter the applicant's name (enter nothing to quit):");
String name = br.readLine();
if (name.equals(""))
break;
System.out.print("Enter the interest rate: ");
double rate = Double.parseDouble(br.readLine());
System.out.print("Enter the number of years: ");
int years = Integer.parseInt(br.readLine());
System.out.print("Enter the principal balance: ");
double principal = Double.parseDouble(br.readLine());
}
}
catch (Exception e) { }
}
}