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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!