Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 Create a hangman game. Use C++ string variable and object oriented principles. At least 2 classes must be used. Improve your game by
Question 1
Create a hangman game. Use C++ string variable and object oriented principles. At least 2 classes must be used. Improve your game by giving a short hint related to the correct word.
Output:
10 incorrect guesses left. Guess: Correct! ----wa- 10 incorrect guesses left. Guess: e Incorrect! -----a----- 9 incorrect guesses left. Guess: i Correct! -----a--i-- 9 incorrect guesses left. Guess: 0 Correct! --o--a--i-- 9 incorrect guesses left. Guess: u Incorrect! --o--a--i-- 8 incorrect guesses left. Guess: k Incorrect! --o--a--i-- 7 incorrect guesses left. Guess: P Correct! p-o--a--i-- 7 incorrect guesses left. Guess: r Correct! pro-ra--i-- 7 incorrect guesses left. Guess: a Correct! pro-ra--i-- 7 incorrect guesses left. GuessStep 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