|
|
|
|
1
|
# Quiz 1
|
1
|
# Quiz 1
|
2
|
-You have one hour to complete this quiz. You are required to do section 1 & 2. Section 3 is a bonus section, which means do it if you finish the other two sections before the hour is up.
|
|
|
|
|
2
|
+You have one hour to complete this quiz. You are required to do section 1 & 2.
|
|
|
3
|
+Section 3 is a bonus section, which means do it if you finish the other two sections before the hour is up.
|
3
|
|
4
|
|
4
|
### **Instructions:**
|
5
|
### **Instructions:**
|
5
|
|
6
|
|
|
|
|
|
8
|
* [clone](https://help.github.com/articles/cloning-a-repository/) **your** `forked` repository to your local machine
|
9
|
* [clone](https://help.github.com/articles/cloning-a-repository/) **your** `forked` repository to your local machine
|
9
|
* Write the code to make all the tests pass. See below for instructions.
|
10
|
* Write the code to make all the tests pass. See below for instructions.
|
10
|
* MAKE SURE YOUR CODE COMPILES
|
11
|
* MAKE SURE YOUR CODE COMPILES
|
11
|
- * Run the test to verify your code
|
|
|
|
|
12
|
+ * Run the tests to verify your code
|
12
|
* `git add .` to add files you want to commit
|
13
|
* `git add .` to add files you want to commit
|
13
|
* `git commit -m "commit message"` to commit your changes
|
14
|
* `git commit -m "commit message"` to commit your changes
|
14
|
* `git push` your staged files to your remote repository
|
15
|
* `git push` your staged files to your remote repository
|
|
|
|
|
30
|
- `String getLastWord(String value)`
|
31
|
- `String getLastWord(String value)`
|
31
|
|
32
|
|
32
|
## Section 3 - Bonus
|
33
|
## Section 3 - Bonus
|
33
|
-This section is optional, but highly encourage you to complete. Make all the tests in the `BonusTest` class pass. All the methods have been stubbed out for you in the `Bonus` class. Each of the method has a comment above it to describe the expected behavior. Look at the test case to see example of input and expected output.
|
|
|
|
|
34
|
+This section is optional, but highly encourage you to complete.
|
|
|
35
|
+Make all the tests in the `BonusTest` class pass. All the methods have been stubbed
|
|
|
36
|
+out for you in the `Bonus` class.
|
|
|
37
|
+Each of the method has a comment above it to describe the expected behavior.
|
|
|
38
|
+Look at the test case to see example of input and expected output.
|
34
|
|
39
|
|
35
|
- `int factorial(int number)`
|
40
|
- `int factorial(int number)`
|
36
|
- `String acronym(String phrase)`
|
41
|
- `String acronym(String phrase)`
|