Produce a complete C++ game that resembles the “Hang Man Game”, where the player is required to guess a given number/character/word. The player will be given a limited number of guesses. Each time the wrong answer is given, display an appropriate figure that changes accordingly. You may refer to the following diagrams as an example:
1st guess 2nd guess 3rd guess 4th guess Last/End
Allow tips/hints to be given each time the guess is wrong. For example, tell the player that the mystery number is higher or lower than the wrong number given by the player or display the correct characters from the guessed words so that the player will be able to narrow down the possibilities of guessing the right word.
You may use any appropriate functions from the C++ libraries for this project. Among the suggested functions are srand(), and rand() to generate random numbers, characters, or words. Use the clear the screen function to display the new figures each time the player enters a wrong guess.
You may refer to examples of such games from any other sources such as the internet. Find out the use of C++ functions from external sources beside the main reference text. Remember to quote any references or codes taken from other sources.
I PREFER TO USE NUMBER AS THE GUESTING WORDS