Arin Turpin преди 6 години
родител
ревизия
0dc26f268b
променени са 6 файла, в които са добавени 28 реда и са изтрити 20 реда
  1. BIN
      Factorial.class
  2. 5
    1
      Factorial.java
  3. BIN
      LargestInteger.class
  4. 4
    1
      LargestInteger.java
  5. 1
    1
      NormalizeAngle.java
  6. 18
    17
      package.bluej

BIN
Factorial.class Целия файл


+ 5
- 1
Factorial.java Целия файл

@@ -4,8 +4,12 @@
4 4
 import java.math.BigInteger;
5 5
 
6 6
 public class Factorial {
7
-
7
+    private BigInteger n;
8 8
     public BigInteger factorialOf(Integer value){
9
+        BigInteger n;
10
+        for (int i = 2; i <= value; i++){
11
+        //n = n * value;
12
+        }
9 13
         return null;
10 14
     }
11 15
 

BIN
LargestInteger.class Целия файл


+ 4
- 1
LargestInteger.java Целия файл

@@ -6,8 +6,11 @@ public class LargestInteger {
6 6
     public Integer findLargestNumberUsingConditional(Integer[] integers){
7 7
         return null;
8 8
     }
9
-
9
+        private int i;
10 10
     public Integer findLargestNumberUsingMathMax(Integer[] integers){
11
+        for (i = 0; i > integers.length; i++){
12
+        //return Math.max(i, integers);
13
+        }
11 14
         return null;
12 15
     }
13 16
 }

+ 1
- 1
NormalizeAngle.java Целия файл

@@ -9,7 +9,7 @@ public class NormalizeAngle {
9 9
     }
10 10
 
11 11
     public Integer normalizeValueUsingFloorMod(Integer integer){
12
-        Integer normalizedAngle = Math.floor(integer)%360;
12
+        //Integer normalizedAngle = Math.floor(integer)%360;
13 13
         return 0;
14 14
     }
15 15
 

+ 18
- 17
package.bluej Целия файл

@@ -2,29 +2,29 @@
2 2
 dependency1.from=LargestIntegerTest
3 3
 dependency1.to=LargestInteger
4 4
 dependency1.type=UsesDependency
5
-dependency2.from=NormalizeAngleTest
6
-dependency2.to=NormalizeAngle
5
+dependency2.from=FactorialTest
6
+dependency2.to=Factorial
7 7
 dependency2.type=UsesDependency
8
-dependency3.from=FactorialTest
9
-dependency3.to=Factorial
8
+dependency3.from=IntegerPrinterTest
9
+dependency3.to=IntegerPrinter
10 10
 dependency3.type=UsesDependency
11
-dependency4.from=IntegerPrinterTest
12
-dependency4.to=IntegerPrinter
11
+dependency4.from=NormalizeAngleTest
12
+dependency4.to=NormalizeAngle
13 13
 dependency4.type=UsesDependency
14 14
 editor.fx.0.height=0
15 15
 editor.fx.0.width=0
16 16
 editor.fx.0.x=0
17 17
 editor.fx.0.y=0
18
-objectbench.height=99
19
-objectbench.width=1070
18
+objectbench.height=97
19
+objectbench.width=724
20 20
 package.divider.horizontal=0.6
21
-package.divider.vertical=0.8374233128834356
22
-package.editor.height=539
23
-package.editor.width=968
24
-package.editor.x=59
21
+package.divider.vertical=0.8367346938775511
22
+package.editor.height=526
23
+package.editor.width=622
24
+package.editor.x=0
25 25
 package.editor.y=22
26
-package.frame.height=710
27
-package.frame.width=1094
26
+package.frame.height=695
27
+package.frame.width=748
28 28
 package.numDependencies=4
29 29
 package.numTargets=10
30 30
 package.showExtends=true
@@ -46,9 +46,9 @@ target10.height=50
46 46
 target10.name=IntegerPrinterTest
47 47
 target10.showInterface=false
48 48
 target10.type=UnitTestTargetJunit4
49
-target10.width=140
50
-target10.x=10
51
-target10.y=370
49
+target10.width=110
50
+target10.x=40
51
+target10.y=100
52 52
 target2.height=50
53 53
 target2.name=NormalizeAngle
54 54
 target2.showInterface=false
@@ -56,6 +56,7 @@ target2.type=ClassTarget
56 56
 target2.width=120
57 57
 target2.x=70
58 58
 target2.y=70
59
+target3.association=IntegerPrinterTest
59 60
 target3.height=50
60 61
 target3.name=IntegerPrinter
61 62
 target3.showInterface=false