Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started