Question: Your program will allow the user to play the Rock-Paper-Scissors game against the computer. In case you're not familiar with the game: when two people




Your program will allow the user to play the Rock-Paper-Scissors game against the computer. In case you're not familiar with the game: when two people play, they both choose one of three options (Rock, Paper, or Scissors at the same time, with the appropriate hand gesture, and see who wins. Rock beats Scissors (because rock breaks scissors) Paper beats Rock (because paper covers rock) Scissors beats Paper (because scissors cut paper) You can also tie by choosing the same option. Your program will repeatedly prompt the user for his or her choice, then announce who won. Keep prompting for and processing input until the user enters the word "quit" (this is the sentinel value used to conclude the input. After the user quits, you will print how a summary of the results. EDIT: After checking for the sentinel value, verify that the user input is valid. If the user enters anything anything other than "R "P" or "S". simply print "Invalid input nvalid input does not affect the results summary. Here is a sample run of the program. User input is shown in red. Make sure your prompts and the output match this text and format: (R)ock, (P)aper, (S)cissors, or quit R Tie (R)ock, (P)aper, (S)cissors, or quit R Your Point! R beats S (R)ock, (P)aper, (S)cissors, or quit S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
