Question: Write a C++ program to score the paper-rock-scissor game. Each of two users types in either P, R, or S. The program then announces the
Write a C++ program to score the paper-rock-scissor game. Each of two users types in either P, R, or S. The program then announces the winner as well as the basis for determining the winner: Paper covers rock, Rock breaks scissors, Scissors cut paper, or Noboby wins. ***Use nested switch statement. ***Do NOT use if, if else, else if statements in your program. (-70 points) ***Be sure to allow the users to use lowercase as well as uppercase letters. ***You assume that the user types only characters. ***Do not use any pre-defined functions that were not covered in the class. ***Use only topics that were covered in the class. ***Use main() function only; no user-defined functions. ***No object-oriented programming. ***Match the output below. Enter [R]ock, [P]aper, or [S]cissor Player 1: R Enter [R]ock, [P]aper, or [S]cissor Player 2: S Rock smashes scissors. Player 1 WINS!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
