Hi. Can you please help me with this problem? If you can do it as soon as possible. Thanks. :)
Use IF, loops, switch, and string statements to create a basic hangman program.
You will have to:
1. Create a string variable for the secret word
2. Create a string variable for the answer
3. Create a char variable for the letter the user will guess
4. Ask the user to enter a letter
5. Place this in a loop so the user can enter another letter
6. Use Replace command to replace correct letter guessed with letters of secret word.
7. Stop the program and “hang” the user after 7 incorrect guesses or win when the user guesses the correct word
Please also output a simple graphic, using dashes and slashes while the user is being “hung”.