Menu

[Solved]Java Overview Create Method Public Static Void Spongebobify String Inputpath String Output Q37263833

JAVA

Overview

Create a method public static void spongeBobify(StringinputPath, String outputPath, Mode mode) that will convert a fileto Mocking Sponge Bob text in 3 different modes.

  • EveryOther
    • capitalize the first letter of the string
    • capitalize every other letter (ignoring non-letter characterlike punctuation and spaces).
    • non-letter characters don’t count toward the every othercount
    • Example: mocking sponge bob! → MoCkInG sPoNgE bOb!
  • Vowels
    • capitalize every vowel (not including y)
  • Random
    • capitalize each letter with a probability of 35%.

Input File Format

The input file will be a text on multiple lines that may containletters, numbers, and punctuation.

Output File Format

The output file will contain the same number of lines but eachline will be SpongeBob-ified.

Expert Answer


Answer to JAVA Overview Create a method public static void spongeBobify(String inputPath, String outputPath, Mode mode) that will … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *