Question: Java project introduction And the out put should be like this SProject Guess the characters in a string of words: Tuesday March 20 (Duplicate Character
SProject Guess the characters in a string of words: Tuesday March 20 (Duplicate Character games output on my website) I used 9 methods. I broke the problem into small pieces. I used a method to solve each of the pieces. Some of the methods were very short and some took some work. The algorithm for this problem requires the following 7 steps to be performed: 1) Print an introduction 2) Read an input string 3) Check for legal characters in the input string. I only allowed characters from the alphabet and the blank character 4) Create an answer string of question marks and a string that indicates the characters that have been used 5) Read a legal character. 6) Place a legal character in the answer string. 7) Determine if all the characters have been found. Steps 5 through 7 are in a loop. I used a method to solve each of these steps. I encourage you first to algorithm with sample input to demonstrate to your satisfaction that it does solve the problem. Then solve each step with a method. The one public method will call these methods to solve the problem. Remember the String class has a method contains0 that returns true or false depending on whether the string contains the string passed in as an argument. Example: String str "the string"; str.contains("t"); will return true because string str has a t in it. work through this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
