Skip to content

Commit

Permalink
did a little work on FS
Browse files Browse the repository at this point in the history
  • Loading branch information
afortuna2016 committed Mar 14, 2017
1 parent f5324ee commit abf558c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/controller/
/model/
/view/
/controller/
Binary file modified bin/controller/Cashflow.class
Binary file not shown.
Binary file modified bin/model/Profession.class
Binary file not shown.
Binary file modified bin/view/Window.class
Binary file not shown.
44 changes: 44 additions & 0 deletions src/model/FinacialStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,49 @@

public class FinacialStatement
{
private double salary;
private double interest;
private double[] realEstate;
private String career;
private double expenses;
private double assets;
private double liabilities;
private double income;

Profession p = new Profession("Teacher", 3300, 500, 500, 100, 100, 200, 700, 0, 0,
200, 400, 50000, 12000, 5000, 4000);

public double expenses()
{
expenses = p.getTaxes() + p.getMortgagePay() + p.getSchoolLoanPay() + p.getCarLoanPay()
+ p.getCreditCardPay() + p.getOtherExp() + p.getBankLoanPay() + p.getChildExp();
return expenses;
}

public double assets()
{
assets = p.getSavings();

return assets;
}

public double liabilities()
{
liabilities = p.getMortgage() + p.getSchoolLoans() + p.getCarLoans() + p.getCreditCardDebt();
return liabilities;
}

public double income()
{
income = p.getSalary();
return income;
}
public void FinancialStatement()
{

}
public void display()
{

}
}
5 changes: 1 addition & 4 deletions src/model/Professions.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ public Profession getProfession()
return profs[n];
}

public static void main String(args[])
{

}


}

0 comments on commit abf558c

Please sign in to comment.