Repository navigation
Expand file tree
/
Copy pathMain.java
More file actions
45 lines (37 loc) · 1.42 KB
/
Copy pathMain.java
File metadata and controls
45 lines (37 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class Main extends Constants {
public static void main(String[] agrs) {
// Income
Souts Income = new Souts();
Income.setNetIncome(kINCOME);
// Food
Souts Food = new Souts();
Food.setPriority(kFOOD, kFOODVALUE, kFOODCOST);
// Housing
Souts House = new Souts();
House.setPriority(kHOUSE, kHOUSEVALUE, kHOUSECOST);
// Utilities
Souts Utilities = new Souts();
Utilities.setPriority(kUTILITIES, kUTILITIESVALUE, kUTILITIESCOST);
// Programming gear
Souts Programming = new Souts();
Programming.setPriority(kPROGRAM, kPROGRAMVALUE, kPROGRAMCOST);
// Running shoes
Souts Shoes = new Souts();
Shoes.setPriority(kSHOES, kSHOESVALUE, kSHOESCOST);
// Outputs Income Info
Income.getTotalIncomeInfo(kINCOME, Income.getIncome());
// Budget Spendings compiled
Income.getCompiled(
Food.getPriority()
+House.getPriority()
+Utilities.getPriority()
+Programming.getPriority()
+Shoes.getPriority()
);
// Amount leftover (Savings & Impulsive Spending)
Income.getTotal(
(Income.getLeftover(true)), (Income.getLeftover(false)),
(Income.getIncome()), (Income.getSavings()), (Income.getImpulsive()), (Income.getValuePercent())
);
}
}