Question: C++ only please Prog 2: Mastermind Write a program similar to Mastermind, except you will use 3 digits instead of colors. Running the program should



C++ only please
Prog 2: Mastermind Write a program similar to Mastermind, except you will use 3 digits instead of colors. Running the program should look like the following Program: 2 MasterMind The program selects 3 distinct random digits e..9. On each turn you guess 3 digits. The program indicates how many are correct. You have 10 moves to guess the number. Good luck! Press "s' to set the three digits, or r'to randomize them: Input of e00 displays the hidden digits. Input of 999 exits the program. In place out of place 1. Your guess: 012 2. Your guess: 345 3. Your guess: 637 4. Your guess: 783 5. Your guess: 793 You entered: 012 You entered: 345 You entered: 637 You entered: 783 2 Congratulations! Exiting program... matively if you are not able to find the answer within ten moves, a message and the answer is displayed as follows Program: 2 Masterlind The program selects 3 distinct random digits e..9 On each turn you guess 3 digits. The progran indicates how many are correct. You have 10 moves to guess the nusber. Good luck
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
