|
@@ -1,12 +1,12 @@
|
1
|
1
|
# ZCW-MicroLabs-Loops
|
2
|
2
|
|
3
|
|
-## 1) 0 to 9
|
4
|
|
-In the class **Numbers**, complete the method called **oneToNine()** so that it returns a string of the numbers 0 to 9. The Unit Test is provided for you.
|
|
3
|
+## 1) 1 to 10
|
|
4
|
+In the class **Numbers**, complete the method called **oneToNine()** so that it returns a string of the numbers 1 to 10. The Unit Test is provided for you.
|
5
|
5
|
|
6
|
6
|
### Example<br>
|
7
|
|
-1: oneToNine()<br>
|
|
7
|
+1: oneToTen()<br>
|
8
|
8
|
2: *** Output ***<br>
|
9
|
|
-3: 1<br>
|
|
9
|
+3: 0<br>
|
10
|
10
|
4: 2<br>
|
11
|
11
|
5: 3<br>
|
12
|
12
|
6: 4<br>
|
|
@@ -15,7 +15,7 @@ In the class **Numbers**, complete the method called **oneToNine()** so that it
|
15
|
15
|
9: 7<br>
|
16
|
16
|
10: 8<br>
|
17
|
17
|
11: 9<br>
|
18
|
|
-12: 10<br>
|
|
18
|
+12: 10
|
19
|
19
|
|
20
|
20
|
## 2) Odd Numbers
|
21
|
21
|
In the class **Numbers**, complete the method called **oddNumbers()** so that it returns a string of the positive odd numbers less than 20. The Unit Test is not provided for you, you must complete it.
|
|
@@ -52,7 +52,7 @@ In the class **Numbers**, complete the method called **oneToNine()** so that it
|
52
|
52
|
12: 100<br>
|
53
|
53
|
|
54
|
54
|
## 4) Random Numbers
|
55
|
|
- In the class **Numbers**, complete the method called **random4()** so that it returns a string of out four random integers between 1 and 10. The Unit Test is not provided for you, you must complete it.
|
|
55
|
+ In the class **Numbers**, complete the method called **random4()** so that it returns a string of out four random integers between 0 and 9. The Unit Test is not provided for you, you must complete it.
|
56
|
56
|
|
57
|
57
|
### Example<br>
|
58
|
58
|
1: random4()<br>
|