Question: write a program to score the rock-paper-scissors game. Each of two players enters R, P, or S. The program than announces the winner as well
write a program to score the rock-paper-scissors game. Each of two players enters R, P, or S. The program than announces the winner as well as the basis for determining the winner: "Paper covers rock", "Rock breaks scissors", "Scissors cut paper", or "Draw, nobody wins". Use nested if statements (or if-else-if) to do the homework.
write two functions, getThrow and checkWinner. Your getThrow function will be given a player to prompt and will ask that player to enter one of rock, paper, or scissors, repeating until they enter a valid input. Your checkWinner function will be given the throws of the two players and will print the results of the contest. Your main function will combine call both functions to form a complete program. Your program will be tested for all possible combinations of two inputs. Your program output should look something like the foll

> run Player-1, please enter your choice
aper, aper, cissors: Player-2, please enter your choice cissors: r Player-1 wins! Paper covers rock
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
