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

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 and after that try the word is released. Give the user input feedback after each word by saying if a letter is correct but in a wrong spot, wrong letter conpletely or correct letter from one try.
Please explain the user input and it checks of the word for the letters. One image with sheet shows how the program should act when checking the word. The second after the six tries and an error input.
C++ program of user guessing the correct word. 1. Randomly select a
word from a list you have in the code. User has six

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

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!