Question: C program Description This assignment is to write a program to score the rock-paper-scissors game. Each of two players enters R, P, or S. The

 C program Description This assignment is to write a program to
C program

Description This assignment is to 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. In this assignment, you don't have to validate the inputs, just assume that p, r, s, or P, R, S will be entered to test your program. Your program will be tested for all possible combinations of the two inputs. Your program output should look something like the following: > run Player-1, please enter your choice

aper, ock, or cissors: Player-2, please enter your choice

aper, ock, or cissors: Player-1 wins! Paper covers rock! Please include the following academic integrity statement for each programming assignment. Otherwise, your code will be given 0 points

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!