- Fork this Repository
- fork this repository to your personal github account
- clone your
forkedrepository to your local machine - Write the code to make all the tests pass. See below for instructions.
- MAKE SURE YOUR CODE COMPILES
- Run the tests to verify your code
git add .to add files you want to commitgit commit -m "commit message"to commit your changesgit pushyour staged files to your remote repository- submit a
pull requestwhich compares mymasterto yourmaster
- In this project there are 3 Classes to be completed
MathUtilitiesStringUtilitiesLoopFun
- Within each class are several methods which must be defined to pass test cases.
- Each method has a respective Test class.
- For example:
MathUtilities.addcan be tested by running theMathUtilitiesAddTestclass.MathUtilities.halfcan be tested by running theMathUtilitiesHalfTestclass.StringUtilities.reversecan be tested by running theStringUtilsReverseTestclass.
- Ensure all test cases in the classes prefixed with
MathUtilitiespass.- e.g. -
MathUtilitiesAddTest,MathUtilitiesHalfTest
- e.g. -
- All the methods have been stubbed out for you in the
MathUtilitiesclass. - Each of the methods have a comment above it to describe the expected behavior.
- View the test cases to see examples of input and expected outputs.
int add(int num1, int num2)double add(double num1, double num2)double half(int number)boolean isOdd(int number)int square(int number)
- Ensure all test cases in the classes prefixed with
StringUtilspass. - All the methods have been stubbed out for you in the
StringUtilitiesclass. - Each of the methods have a comment above it to describe the expected behavior.
- View the test cases to see examples of input and expected outputs.
Character getMiddleCharacter(String word)String removeCharacter(String value, char charToRemove)String getLastWord(String value)String concatenate(String baseValue, String valueToBeAdded)String reverse(String valueToBeReversed)
- Ensure all test cases in the classes prefixed with
LoopFunpass. - All the methods have been stubbed out for you in the
LoopFunclass. - Each of the methods have a comment above it to describe the expected behavior.
- View the test cases to see examples of input and expected outputs.
int factorial(int number)String acronym(String phrase)String encrypt(String word)