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

Your task is to implement a Hangman game in C++ The words for the game must be s

ID: 3625997 • Letter: Y

Question

Your task is to implement a Hangman game in C++

The words for the game must be stored in a file. You must have at least 10 words in the file.

The "gallows" and figure should be drawn to the screen using ASCII characters

This game should open the file, read in a word and display underscores for the characters

The player should then be allowed to guess letters. Do not allow the player to guess a letter that has already been guessed . . . do not penalize the player for guessing duplicate letters.

This game should proceed as a normal game of hangman, with the player guessing letters until they get the word correct or get hung. Your game should announce if there is a win or a defeat.

Once a word has been gotten or a player has been hung, the player should be asked if they would like to play again.

You must use array syntax for the words

You must modularize this application into functions

Explanation / Answer

This should give you a very good start. If you need more help let me know. #include #include #include using namespace std; void drawing(int position); void guessword(string word); int main() { int number; int count = 0; int position; string word; char letter; ifstream infile; infile.open("words.txt"); srand(time(NULL)); //initializes the random number generator while (count < 1) { number = rand()%10 +1; // rand returns a random integer from 0 to maxInt count++; } for (count=0;count word.length()) cout