initial import of /cs621/proj3 code
git-svn-id: svn://anubis/gvsu@69 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
17e948e54d
commit
2d591362ab
7
cs621/proj3/AmortizedLoan.java
Normal file
7
cs621/proj3/AmortizedLoan.java
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
public class AmortizedLoan extends Loan
|
||||
{
|
||||
public void calcMonthlyPayment()
|
||||
{
|
||||
}
|
||||
}
|
28
cs621/proj3/Loan.java
Normal file
28
cs621/proj3/Loan.java
Normal 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
12
cs621/proj3/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
all:
|
||||
javac *.java
|
||||
|
||||
.PHONY: javadoc
|
||||
javadoc:
|
||||
-mkdir doc
|
||||
javadoc -d doc *.java
|
||||
|
||||
clean:
|
||||
-rm -f *.class
|
||||
-rm -rf doc
|
7
cs621/proj3/SimpleLoan.java
Normal file
7
cs621/proj3/SimpleLoan.java
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
public class SimpleLoan extends Loan
|
||||
{
|
||||
public void calcMonthlyPayment()
|
||||
{
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user