Write a C++ code that gives the user NUM chances to guess the letters of a name. If the user prints a correct letter, the program will show the following message: "You made a right guess. The name has HOW many of this letter, and it will show the position of this letter in the name." If the user prints a wrong letter, the program will show the following message: "You made a wrong guess. Try again." The output should be similar to the following example: In this example, I used my name, Mohammad.
Hi! You can try ten times to guess the letters of my name.
Make your guess:
You made a wrong guess. Try again.
Make your guess:
You made a right guess. My name has one 'o'.
Make your guess:
You made a right guess. My name has two 'm's.
Make your guess:
You made a right guess. My name has one 'a'.
Make your guess:
You made a wrong guess. Try again.