-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
26 lines (16 loc) · 785 Bytes
/
Copy pathApp.java
File metadata and controls
26 lines (16 loc) · 785 Bytes
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
package task4;
public class App {
@SuppressWarnings("unused")
public static void main(String[] args) {
double simpleInterestResult=0.0,compoundInterestResult=0.0,houseConstructionEstimate=0.0;
SimpleInterest simpleInterest = new SimpleInterest();
CompoundInterest compoundInterest = new CompoundInterest();
HouseConstruction houseConstruction = new HouseConstruction();
simpleInterest.getInput();
simpleInterestResult=simpleInterest.getResult();
compoundInterest.getInput();
compoundInterestResult=compoundInterest.getResult();
houseConstructionEstimate=houseConstruction.priceCalculation("High Standard", 500.0, true);
houseConstructionEstimate=houseConstruction.priceCalculation("Standard", 780.0, false);
}
}