Question: In java write this code. Also the word bank is coming from a file with a .txt extention from desktop. In this assignment, you will

In java write this code.In java write this code. Also the word bank is coming from

Also the word bank is coming from a file with a .txt extention from desktop.

In this assignment, you will write a jumble game. You will repeatedly pick a random word, randomly jumble it, and let the user guess what it is. The user will also be able to get hints in case they have trouble figuring out the word. Here is an example run of the program (user input is in red). Note that your program should handle upperor lower-case menu options, and that it should print an error for any invalid menu option. Current puzzle: ayncra Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: h The letter at spot 3 is n Current puzzle: ayncra Current points for word: 5 Enter (9)uess, new word, (h)int, or (4)uit: g Enter your guess : canary You guessed it! Score for word: 5 Total score: 5 Current puzzle: ufrryl Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: g Enter your guess: furyrl Nope , sorry Current puzzle: ufrryl Current points for word: 9 Enter (9)uess, (n)ew word, (h)int, or quit: g Enter your guess: flurry You guessed it! Score for word: 9 Total score: 14 Current puzzle: crsock Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: X Invalid option. Current puzzle: crsock Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: N Current puzzle: adrtre Current points for word: 10 Enter (9)uess, (n)ew word, (h)int, or cauit: Q OOD Final score: 14 In this assignment, you will write a jumble game. You will repeatedly pick a random word, randomly jumble it, and let the user guess what it is. The user will also be able to get hints in case they have trouble figuring out the word. Here is an example run of the program (user input is in red). Note that your program should handle upperor lower-case menu options, and that it should print an error for any invalid menu option. Current puzzle: ayncra Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: h The letter at spot 3 is n Current puzzle: ayncra Current points for word: 5 Enter (9)uess, new word, (h)int, or (4)uit: g Enter your guess : canary You guessed it! Score for word: 5 Total score: 5 Current puzzle: ufrryl Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: g Enter your guess: furyrl Nope , sorry Current puzzle: ufrryl Current points for word: 9 Enter (9)uess, (n)ew word, (h)int, or quit: g Enter your guess: flurry You guessed it! Score for word: 9 Total score: 14 Current puzzle: crsock Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: X Invalid option. Current puzzle: crsock Current points for word: 10 Enter (9)uess, new word, (h)int, or (4)uit: N Current puzzle: adrtre Current points for word: 10 Enter (9)uess, (n)ew word, (h)int, or cauit: Q OOD Final score: 14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!