initial import of /cs621/proj3 code
git-svn-id: svn://anubis/gvsu@69 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
17e948e54d
commit
2d591362ab
4 files changed
+54
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
public class AmortizedLoan extends Loan
|
||||||
|
{
|
||||||
|
public void calcMonthlyPayment()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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!";
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
all:
|
||||||
|
javac *.java
|
||||||
|
|
||||||
|
.PHONY: javadoc
|
||||||
|
javadoc:
|
||||||
|
-mkdir doc
|
||||||
|
javadoc -d doc *.java
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f *.class
|
||||||
|
-rm -rf doc
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
public class SimpleLoan extends Loan
|
||||||
|
{
|
||||||
|
public void calcMonthlyPayment()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user