Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-classroom[bot] authored Jul 8, 2024
0 parents commit 78b7d8b
Show file tree
Hide file tree
Showing 45 changed files with 3,380 additions and 0 deletions.
155 changes: 155 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
*.iml
.idea/**
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

.project
.classpath
.settings


#maven build target
target/
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sudo: false
language: java

deploy:
provider: script
script:
- "mvn test -Dtest=BasicArrayUtilsTest"
- "mvn test -Dtest=BasicStringUtilsTest"
- "mvn test -Dtest=IntegerArrayUtilsTest"
- "mvn test -Dtest=IntegerUtilsTest"
- "mvn test -Dtest=RockPaperSissorsEvaluatorTest"
- "mvn test -Dtest=ArrayUtilsTest"
- "mvn test -Dtest=MultiplesDeleterTest"
- "mvn test -Dtest=StringUtilsTest"
- "mvn test -Dtest=CatTest"
- "mvn test -Dtest=DogTest"
- "mvn test -Dtest=PetOwnerTest"
- "mvn test -Dtest=PetTest"
- "mvn test -Dtest=JumperTest"
- "mvn test -Dtest=PalindromeTest"
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# ZipCodeWilmington Assessment 1


## **Getting Started**
* Complete each of the asks in each of the `README.md` files found in the [instructions directory](./instructions)
* Begin by completing section 1.
* [BasicArrayUtils](./instructions/part1/README-BasicArrayUtils.md)
* [BasicStringUtils](./instructions/part1/README-BasicStringUtils.md)
* [IntegerArrayUtils](./instructions/part1/README-IntegerArrayUtils.md)
* [IntegerUtils](./instructions/part1/README-IntegerUtils.md)
* [RockPaperScissorsEvaluator](./instructions/part1/README-RockPaperSissorsEvaluator.md)

* Continue by completing section 2.
* [ArrayUtils](./instructions/part2/README-ArrayUtils.md)
* [MultiplesDeleter](./instructions/part2/README-MultiplesDeleter.md)
* [StringUtils](./instructions/part2/README-StringUtils.md)

* Advance further by completing section 3.
* [AnimalsPetsOwners](./instructions/part3/README-AnimalsPetsOwners.md)
* Go on to section 4.
* [JumpToTheFlag](./instructions/part4/README-JumpToTheFlag.md)
* Finish by completing section 5.
* [Palindrome](./instructions/part5/README-Palindrome.md)

## **Frequently Asked Questions**
* Can I use content from my old labs?
* Yes.
* Can I use content from the web / google?
* Yes.
* Can I **contact** someone other than an instructor for help?
* No.
* Can I modify the tests?
* **No**-- Absolutely not. You are forbidden from modifying the tests.
* What if the tests are requesting something different than the instructions / comments?
* Code against **the tests**, not the instructions.
* What are the `Sample Script` and `Sample Output` portions of each `README`?
* Each `README` contains sample code which illustrates the _behavior_ of the respective method.
* **Refer to the tests** to have a better understanding of the intended behavior.
169 changes: 169 additions & 0 deletions instructions/part1/README-BasicArrayUtils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
# BasicArrayUtils
* Ensure each of the test cases in the class [BasicArrayUtilsTest]() successfully passes upon completion of each of the method stubs in the class [BasicArrayUtils]().
* `String getFirstElement(String[])`
* `String getSecondElement(String[])`
* `String getLastElement(String[])`
* `String getSecondToLastElement(String[])`







<br><br><br><br>
## `String getFirstElement(String[] stringArray)`
* **Description**
* Given a string array, `stringArray`, return the first element of the array.
### Example
* Sample Script

```
// Given
String[] inputArray = {"The", "quick", "brown"};
// When
String outcome = BasicArrayUtils.getFirstElement(inputArray);
// Then
System.out.println(outcome);
```
* Sample Output
```
The
```
<br><br><br><br>
## `String getSecondElement(String[] stringArray)`
* **Description**
* Given a string array, `stringArray`, return the first element of the array.
### Example
* Sample Script
```
// Given
String[] inputArray = {"The", "quick", "brown"};
// When
String outcome = BasicArrayUtils.getSecondElement(inputArray);
// Then
System.out.println(outcome);
```
* Sample Output
```
quick
```
<br><br><br><br>
## `String getLastElementTest(String[] stringArray)`
* **Description**
* Given a string array, `stringArray`, return the second element of the array.
### Example
* Sample Script
```
// Given
String[] inputArray = {"The", "quick", "brown"};
// When
String outcome = BasicArrayUtils.getLastElement(inputArray);
// Then
System.out.println(outcome);
```
* Sample Output
```
brown
```
<br><br><br><br>
## `String getSecondToLastElement(String[] stringArray)`
* **Description**
* Given a string array, `stringArray`, return the second to last element of the array.
### Example
* Sample Script
```
// Given
String[] inputArray = {"The", "quick", "brown"};
// When
String outcome = BasicArrayUtils.getSecondToLastElement(inputArray);
// Then
System.out.println(outcome);
```
* Sample Output
```
quick
```
Loading

0 comments on commit 78b7d8b

Please sign in to comment.