Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve it using C++ 3. Create a game similar to Hangman in which a player guesses letters to try to replicate a hidden word.

please solve it using C++

image text in transcribed

3. Create a game similar to Hangman in which a player guesses letters to try to replicate a hidden word. Store a two-dimensional array that contains at least five eight-letter words and randomly select one to be the hidden word. Initially, display the hidden word using asterisks to replace each letter. Allow the user to guess letters to replace the asterisks in the hidden word until the user completes the entire word. If the user appropriate message. If the user guesses a letter that appears multiple times in the hidden word, make sure each correct instance is replaced. When the user completes the word, display a count of the guesses a letter not in the hidden word, d isplay an a number of guesses that were required. Allow the user to continue to play as many games as wanted. uess a letters s not in the word uess a letter in t he secret word: WHWWWW ter in the secret word H uess a letter r uess a letter in the secret word tF ess a letter a ale s 5 iet ter' in the s.ecret Mord: woet wrar.o uess a letter in the seeret vord: wHterar uess a letter e e is not in the word nes letter in the secret uordi ?terarm uess a letter in the secret word literar uess a lettery od job eu guessed the werd literary in 9 tries O you want to play again - or n?- a) Draw a flowchart illustrating the program design to solve this problem. (4 Marks) b) Write visual basic program, execute the program with sample inputs and show the outputs. (5 Marks) c) Attach the screen shots of the program, inputs and output. (1 Mark)

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

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago