https://github.com/zipcodecore/maven.quiz9-3
https://github.com/zipcodecore/maven.quiz9-3
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zipcodecore/maven.quiz9-3
- Owner: ZipCodeCore
- Created: 2022-04-20T16:01:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T22:13:31.000Z (over 3 years ago)
- Last Synced: 2025-01-08T12:41:24.934Z (12 months ago)
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quiz 9-3
## Overview
* This quiz has 2 sections.
1. fundamentals
* `Calculator`
* `StringUtils`
2. arrays
* `ArrayUtils`
## Section 1 - Fundamentals
### Calculator
* **Description**
* The purpose of this class is to create a simple calculator.
* **Methods to Complete**
* `Double add(Double val1, Double val2)`
* return the _sum_ of `val1` and `val2`
* `Double subtract(Double val1, Double val2)`
* return the _difference_ of `val1` and `val2`
* `Double divide(Double val1, Double val2)`
* return the _quotient_ of `val1` and `val2`
* `Double squareRoute(Double value)`
* return the _square root_ of `value`
* `Double square(Double value)`
* return the _square_ of `value`
* `Double[] squareRoutes(Double[] values)`
* return an array of `Double`, containing the square root of each of the elements in `values`.
* `Double[] squares(Double[] values)`
* return an array of `Double`, containing the square of each of the elements in `values`.
### StringUtils
* **Description**
* The purpose of this class is to create utility `String` methods
* **Methods to Complete**
* `String getMiddleCharacter(String string)`
* return character at index `string.length()/2` as `String`.
* `String capitalizeMiddleCharacter(String string)`
* return near-identical `String` with character at index `string.length()/2` capitalized.
* `String lowercaseMiddleCharacter(String string)`
* return near-identical `String` with character at index `string.length()/2` lowercased.
* `String invertCasing(String string)`
* return near-identical `String` with each character's casing inverted: Capital letters become lowercase, lowercase letters become lowercase.
* `Boolean hasDuplicateConsecutiveCharacters(String string)`
* return `true` if `string` contains two identical characters in adjacent indices.
* `Boolean removeDuplicateConsecutiveCharacters(String string)`
* return near-identical `String` with each occurrence of duplicate-adjacent characters removed.
* `Boolean isIsogram(String string)`
* return `true` if each `Character` in `string` occurs exactly 1 time.
## Section 2 - Arrays
### ArrayUtils
* **Description**
* The purpose of this class is to create a utility for manipulating arrays.
* **Methods to Complete**
* `String getMiddleElement(String[] values)`
* return the element at index `values.length/2`
* `String[] removeMiddleElement(String[] values)`
* return near-identical array with element at index `values.length/2` removed.
* `String getLastElement(String[] values)`
* return element at index `values.length-1`
* `String[] removeLastElement(String[] values)`
* return near-identical array with element at index `values.length-1` removed.