Question: Java Question This program is not from the book, but it is based on chapter 9 information(Strings and StringBuiulder). I want you to create a
Java Question
This program is not from the book, but it is based on chapter 9 information(Strings and StringBuiulder). I want you to create a hangman game. The program will start with by asking the user for the hidden word or phrase (can be multiple words). And then ask for how many missed guesses are allowed before you will lose. Then the game will begin, (we are assuming a second person will take over at this point) As the game begins you will show a series of dashes that represent each letter in the word or phrase (blank spaces and punctuation should still show). The user will guess a letter. If that letter exists all versions of that letter (upper and lower case) will appear among the dashes. If it doesnt exist you will be told that you have used up one of your misses and only have X number of guesses left. As you continue to guess letters, correct letters should stay shown on screen. You continue to guess letters until you either unveil all the letters, or you run out of missed guesses. Repeating a letter should count as a miss, but if you have problems with this, leave it as no change to status.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
