Question
Create a full program that will simulate a Rock Paper Scissors GameYou will create the code so that when the program is run the user
Create a full program that will simulate a Rock Paper Scissors GameYou will create the code so that when the program is run the user will see in the console the following:We are going to play a game of rock paper scissors.Please choose 1 for Rock 2 for Paper or 3 for scissors.The program will have yourChoice which is the integer valued typed in by the user and compChoice which will be the randomly generated value of either 1 2 or 3. You will test all the ways the user wins if the user beats the computer using || with if and then you will check all the ways that the computer could win using else if with || and lastly the only other thing that can happen would be a tie if both choices are the same for the default else.Display what was chosen by the user and what was randomly chosen by computer. Display who wins or if there is a tie.
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