Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

=+ Why have these changes occurred?

Answered: 1 week ago

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago