initial import of /cs621/proj3 code

git-svn-id: svn://anubis/gvsu@69 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-03-20 04:21:08 +00:00
parent 17e948e54d
commit 2d591362ab
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,7 @@
public class AmortizedLoan extends Loan
{
public void calcMonthlyPayment()
{
}
}

28
cs621/proj3/Loan.java Normal file
View File

@ -0,0 +1,28 @@
public abstract class Loan
{
protected String m_name;
protected double m_interestRate;
protected int m_length;
protected double m_principal;
protected double m_monthlyPayment;
public Loan(String name, double rate, int years, double amount)
{
m_name = name;
m_interestRate = rate;
m_length = years;
m_principal = amount;
}
public String process()
{
calcMonthlyPayment();
return makeSummary();
}
public String makeSummary()
{
return "Summary!";
}
}

12
cs621/proj3/Makefile Normal file
View File

@ -0,0 +1,12 @@
all:
javac *.java
.PHONY: javadoc
javadoc:
-mkdir doc
javadoc -d doc *.java
clean:
-rm -f *.class
-rm -rf doc

View File

@ -0,0 +1,7 @@
public class SimpleLoan extends Loan
{
public void calcMonthlyPayment()
{
}
}