Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

// Word Jumble // The classic word jumble game where the player can ask for a hi

ID: 3660568 • Letter: #

Question

// Word Jumble // The classic word jumble game where the player can ask for a hint #include #include #include #include using namespace std; int main() { enum fields {WORD, HINT, NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS][NUM_FIELDS] = { {"wall", "Do you feel you're banging your head against something?"}, {"glasses", "These might help you see the answer."}, {"labored", "Going slowly, is it?"}, {"persistent", "Keep at it."}, {"jumble", "It's what the game is all about."} }; srand(time(0)); int choice = (rand() % NUM_WORDS); string theWord = WORDS[choice][WORD]; // word to guess string theHint = WORDS[choice][HINT]; // hint for word string jumble = theWord; // jumbled version of word int length = jumble.size(); for (int i=0; i<< " Welcome to Word Jumble! "; cout << "Unscramble the letters to make a word. "; cout << "Enter 'hint' for a hint. "; cout << "Enter 'quit' to quit the game. "; cout << "The jumble is: " << jumble; string guess; cout << " Your guess: "; cin >> guess; while ((guess != theWord) && (guess != "quit")) { if (guess == "hint") cout << theHint; else cout << "Sorry, that's not it."; cout <<" Your guess: "; cin >> guess; } if (guess == theWord) cout << " That's it! You guessed it! "; cout << " Thanks for playing. "; int pause; cin>> pause; return 0; } okay so this is what needs done with it--- Allow the player to continue playing after they guess a word. (loop) 2. Initially accept the words and hint and store them into the array. (cin/getline) 3. Make some type of scoring system. (less points if you need a hint, deduct for wrong guesses...) 4. Save out any word/hints that were added. Read them back in (ask for additions if array not full). please just do it do not tell me what to do or how to do it I just want it done lol thanks =)

Explanation / Answer

//Word Jumble //The classic word jumble game where the player can ask for a hint. Also can //select difficulties: Easy, Normal, or Hard. #include #include #include #include using namespace std; int main() { enum fields {WORDS, HINT, NUM_FIELDS}; enum difficulty {EASY, NORMAL, HARD}; const int NUM_WORDS = 5; cout