calculating social security
git-svn-id: svn://anubis/gvsu@433 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
327cc8b91d
commit
d0d259ca43
@ -4,6 +4,7 @@ import java.util.*;
|
|||||||
public class RetirementCalculatorModel
|
public class RetirementCalculatorModel
|
||||||
{
|
{
|
||||||
/* input fields */
|
/* input fields */
|
||||||
|
private double myCurrentIncome;
|
||||||
private double myIncomeWanted;
|
private double myIncomeWanted;
|
||||||
private double myEmployerPension;
|
private double myEmployerPension;
|
||||||
private double myPartTimeIncome;
|
private double myPartTimeIncome;
|
||||||
@ -33,6 +34,12 @@ public class RetirementCalculatorModel
|
|||||||
|
|
||||||
public void calculate()
|
public void calculate()
|
||||||
{
|
{
|
||||||
|
if (myCurrentIncome < 25000.0)
|
||||||
|
mySocialSecurity = 8000.0;
|
||||||
|
else if (myCurrentIncome <= 40000.0)
|
||||||
|
mySocialSecurity = 12000.0;
|
||||||
|
else
|
||||||
|
mySocialSecurity = 14500.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private double calculateRetirementFactor()
|
private double calculateRetirementFactor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user