|
@@ -6,18 +6,21 @@ public class CalcEngine {
|
6
|
6
|
}
|
7
|
7
|
|
8
|
8
|
public double add(double v, double v1) {
|
9
|
|
- return Double.NaN;
|
|
9
|
+ double add = v + v1;
|
|
10
|
+ return add;
|
10
|
11
|
}
|
11
|
12
|
|
12
|
13
|
public double subtract(double v, double v1) {
|
13
|
14
|
return Double.NaN;
|
14
|
15
|
}
|
15
|
16
|
|
16
|
|
- public double multiply(double v, double v1) {
|
|
17
|
+ public double multiply(double v, double v1)
|
|
18
|
+ {
|
17
|
19
|
return Double.NaN;
|
18
|
20
|
}
|
19
|
21
|
|
20
|
22
|
public double divide(double v, double v1) {
|
|
23
|
+
|
21
|
24
|
return Double.NaN;
|
22
|
25
|
}
|
23
|
26
|
}
|