Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hangman, must be done in Flowgorithm as a flowchart. Draw the flowchart and write the Pseudo code for the game of Hangman, in which the

Hangman, must be done in Flowgorithm as a flowchart. Draw the flowchart and write the Pseudo code for the game of Hangman, in which the user guesses letters in a hidden word until the whole word is exposed. Enter 10 words into an array. One of those ten words will be selected at random to be used as the word for the game. Store the letters of the selected word in an array of characters. Display a dash (-) for each position of a missing letter. Allow the user to continuously guess a letter until all the letters have been guessed correctly. As the user enters each guess, display the word again filling in the guessed letter if it was correct. For example, if the hidden word is COMPUTER, first display a series of 8 dashes: - - - - - - - - . After the user guesses P, the display becomes - - - P - - - -. Make sure that all the matching letters are filled in. After the game is over, print out a message with the number of guesses it took the user to guess the word correctly.

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

Students also viewed these Databases questions