Giter Club home page Giter Club logo

maven.quiz9-3's Introduction

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.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.