working on RetirementCalculatorModel
git-svn-id: svn://anubis/gvsu@428 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
5e24e67920
commit
591611644b
2 files changed
+113
No files matched your search
@@ -0,0 +1,49 @@
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class RetirementCalculatorModel
|
||||
{
|
||||
/* input fields */
|
||||
private double myIncomeWanted;
|
||||
private double myEmployerPension;
|
||||
private double myPartTimeIncome;
|
||||
private double myOtherIncome;
|
||||
private double myAge;
|
||||
private double myRetirementAge;
|
||||
private double mySavings;
|
||||
|
||||
/* calculated fields */
|
||||
private double mySocialSecurity;
|
||||
private double myRetirementIncome;
|
||||
|
||||
public RetirementCalculatorModel()
|
||||
{
|
||||
reset();
|
||||
}
|
||||
|
||||
public void reset()
|
||||
{
|
||||
myIncomeWanted = 0;
|
||||
myEmployerPension = 0;
|
||||
myPartTimeIncome = 0;
|
||||
myOtherIncome = 0;
|
||||
myAge = 30;
|
||||
myRetirementAge = 65;
|
||||
}
|
||||
|
||||
public void calculate()
|
||||
{
|
||||
}
|
||||
|
||||
private double calculateRetirementFactor()
|
||||
{
|
||||
}
|
||||
|
||||
private double calculateSocialSecurity()
|
||||
{
|
||||
}
|
||||
|
||||
private double calculateSavingsFactor()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user