Question
Continuing from started code below create C++ string named constants for 7 boards of hangman and have the boards print out using the named constants.
Continuing from started code below create C++ string named constants for 7 boards of hangman and have the boards print out using the named constants. Prompt the user for the word to guess as a string in all uppercase then prompt for a latter guess as a char as an uppercase letter. Program will indicate whether the letter is Found or Not Found.
Continue from below code:
#include
using namespace std;
using namespace std;
int main() { // Creating a string which will store the symbols in exact order to form the hangman string BOARD7=" -------| | | O | -|- | / \\ | | ------ ";
// printing the hangman cout
return 0; }
Program output should look like:
. I hangman 2 picture 0 I 0 -1- Enter word to guess: COMPUTERS Enter letter to guess: J Jis NOT FOUND in the word COMPUTERS . I hangman 2 picture 0 I 0 -1- Enter word to guess: COMPUTERS Enter letter to guess: J Jis NOT FOUND in the word COMPUTERSStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started