Question: Visual Studios C++ this program will be a hangman application the user will try to guess a predefined words up by us if you want

Visual Studios C++ this program will be a hangman application the user will try to guess a predefined words up by us if you want to you see you in to get the word to guess you can do that as well even though the word is pretty find in the code this program should work with any five letter word the user will have five letter dresses and five word guesses. The game only work with a five letter word there will be a series of toss that will make sure the word that the user is trying to guess there's only five letters long. If the word is too long will produce an air. If the word is too short wheel produce another air, any kind of air on user input well and the program with an error message for example, if the user his ass to guess the weather, but they insert more than a water. The program will tell them you are supposed to enter only let her run the program again the only Aaron I do not want you to handle is if the user enters a number for a letter, guess this will break your program most likely and that is OK. There are examples below of how the program should run. I will be testing your program extensively with different words, different letter guesses, incorrect and correct letter glasses etc. so make sure you run through all the different possible scenarios your program might encounter.


Program 01 Hangman (65 Points) This program will be a hangman application.

The user will try to guess a predefined word set by us.

If you want to use cin to get the word to guess,

you can do that as well (essentially making a two player version 

Program 01 Hangman (65 Points) This program will be a hangman application. The user will try to guess a predefined word set by us. If you want to use cin to get the word to guess, you can do that as well (essentially making a two player version where player one will enter the word for player two to guess.). Even though the word is predefined in the code this program should work with any 5-letter word. The user will have 5 letter guesses and 5 word guesses. The game will only work with a 5 letter word. There will be a series of tests that will make sure the word that the user is trying to guess is only 5 letters long. If the word is too long, we will produce an error. If the word is too short, we will produce another error. Any kind of error on user input will end the program with an error message. For example if the user is asked to guess a letter but they insert more than a letter the program will tell them "You are supposed to enter only a letter. Run the program again." The only error that I do not want you to handle is if the user enters a number for a letter guess, this will break your program; most likely, and that is okay. There are examples below of how the program should run. I will be testing your program extensively with different words, different letter guesses, incorrect and correct letter guesses, etc. So, make sure you run through all the different possible scenarios your program might encounter.

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 Programming Questions!