Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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, aper, cissors: Player-2, please enter your choice 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
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