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