Question: C++ program of user guessing the correct word. 1. Randomly select a word from a list you have in the code. User has six tries

Guess#1 Enter a 5 letter word: a teeth (e) e (h) (t) Guess#2 Enter a 5 letter word: sheep ** S h_ _ _ _ _ Guess#3 Enter a 5 letter word: sheet You guessed it! Guess#1 Enter a 5 letter word: cat Error: You must enter a 5 letter word. Try again:width Guess#2 Enter a 5 letter word: 5 pound Guess#3 Enter a 5 letter word: 3 bound Guess#4 Enter a 5 letter word: sound #a : S Guess#5 Enter a 5 letter word: sheet a : S Guess#6 Enter a 5 letter word: polar 1 a r_ Dut of guesses. The word was: solar
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
