Question
Question 3: Write and run a C++ program that plays the game of Rock, paper, scissors. In this game, two players simultaneously say (or display
Question 3: Write and run a C++ program that plays the game of Rock, paper, scissors. In this game, two players simultaneously say (or display a hand symbol representing) either rock, paper, or scissors. The winner is the one whose choice dominates the other. The rules are: paper dominates (wraps) rock, rock dominates (breaks) scissors, and scissors dominate (cut) paper. You can use rock=1, paper=2, scissors= 3; Sample Input: 1 1 rock, rock Sample Output: Draw Sample Input: 1 2 rock, paper Sample Output: 2 nd player wins
PLEASE DON0T GIVE ANY CODE EXCEPT C++ AS I WILL NOT BE CREDITED AND DONT USE ANY LOOP IN THE CODE EXCEPT
IF ELSE(SELECTION STRUCTURE)
Step 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