https://github.com/zipcodecore/quiz1-maven
https://github.com/zipcodecore/quiz1-maven
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zipcodecore/quiz1-maven
- Owner: ZipCodeCore
- Created: 2021-03-01T13:50:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-29T13:15:53.000Z (over 3 years ago)
- Last Synced: 2025-01-08T12:41:24.993Z (12 months ago)
- Language: Java
- Size: 194 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quiz 1

## **Git Instructions**
1. Fork this Repository
* [clone](https://help.github.com/articles/cloning-a-repository/) **your** `forked` repository 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 commit
* `git commit -m "commit message"` to commit your changes
* `git push` your staged files to your remote repository
* submit a `pull request` which compares Zipcoder `master` to your `master`
## **Project Instructions**
* In this project there are 3 Classes to be completed
* `MathUtilities`
* `StringUtilities`
* `LoopFun`
* Within each class are several methods which must be defined to pass test cases.
* Each method has a respective Test class.
* For example:
* `MathUtilities.add` can be tested by running the `MathUtilitiesAddTest` class.
* `MathUtilities.half` can be tested by running the `MathUtilitiesHalfTest` class.
* `StringUtilities.reverse` can be tested by running the `StringUtilsReverseTest` class.
### Section 1 - MathUtilities
* Ensure all test cases in the classes prefixed with `MathUtilities` pass.
* e.g. - `MathUtilitiesAddTest`, `MathUtilitiesHalfTest`
* All the methods have been [stubbed](https://en.wikipedia.org/wiki/Method_stub) out for you in the `MathUtilities` class.
* 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)`
### Section 2 - StringUtilities
* Ensure all test cases in the classes prefixed with `StringUtils` pass.
* All the methods have been stubbed out for you in the `StringUtilities` class.
* 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)`
### Section 3 - LoopFun
* Ensure all test cases in the classes prefixed with `LoopFun` pass.
* All the methods have been stubbed out for you in the `LoopFun` class.
* 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)`