53 lines
981 B
Java
53 lines
981 B
Java
|
|
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()
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
private double calculateSocialSecurity()
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
private double calculateSavingsFactor()
|
|
{
|
|
return 0.0;
|
|
}
|
|
}
|