Jennifer Tinkler c452ddba25 quiz corrected. 6 yıl önce
FirstLab-Shapes quiz corrected. 6 yıl önce
.DS_Store quiz corrected. 6 yıl önce
.gitignore init 6 yıl önce
LoopFun.java quiz corrected. 6 yıl önce
LoopFunTest.java changed bonus to loop 6 yıl önce
MathUtilities.java quiz corrected. 6 yıl önce
MathUtilitiesTest.java Added readme and comments on assignment 6 yıl önce
README.MD changed bonus to loop 6 yıl önce
StringUtilities.java quiz corrected. 6 yıl önce
StringUtilitiesTest.java Update 'StringUtilitiesTest.java' 6 yıl önce
package.bluej quiz corrected. 6 yıl önce

README.MD

Quiz 1

You have two hours to complete this quiz. Make sure your code compile when you submit the PR!

Instructions:

  1. Fork this Repository
    • fork this repository to your personal github account
    • clone 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

Section 1 - MathUtilities

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)

Section 2 - StringUtilities

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)

Section 3 - LoopFun

Make all the tests in the LoopFunTest class pass. All the methods have been stubbed out for you in the LoopFun 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 factorial(int number)
  • String acronym(String phrase)
  • String encrypt(String word)