Nhu Nguyen 9ec1f8fee7 updated readme | 6 anni fa | |
---|---|---|
.gitignore | 6 anni fa | |
Bonus.java | 6 anni fa | |
BonusTest.java | 6 anni fa | |
MathUtilities.java | 6 anni fa | |
MathUtilitiesTest.java | 6 anni fa | |
README.MD | 6 anni fa | |
StringUtilities.java | 6 anni fa | |
StringUtilitiesTest.java | 6 anni fa | |
package.bluej | 6 anni fa |
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.
forked
repository to your local machinegit add .
to add files you want to commitgit commit -m "commit message"
to commit your changesgit push
your staged files to your remote repositorypull request
which compares Zipcoder master
to your master
Make all the tests in the MathUtilitiesTest
class pass. All the methods have been stubbed out for you in the MathUtilities
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.
int add(int num1, int num2)
double add(double num1, double num2)
double half(int number)
boolean isOdd(int number)
int square(int number)
Make all the tests in the StringUtilitiesTest
class pass. All the methods have been stubbed out for you in the StringUtilities
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.
Character getMiddleCharacter(String word)
String removeCharacter(String value, char charToRemove)
String getLastWord(String value)
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.