De'Jon Johnson 6 years ago
parent
commit
462e82c83c
1 changed files with 8 additions and 3 deletions
  1. 8
    3
      src/main/java/rocks/zipcode/calcskin/CalcEngine.java

+ 8
- 3
src/main/java/rocks/zipcode/calcskin/CalcEngine.java View File

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