Question: [C++] Write a program to score the rock-paper-scissor game. Each of two users types in either R,P, or S. The program then announces the winner
[C++] Write a program to score the rock-paper-scissor game. Each of two users types in either R,P, 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 Nobody wins. Be sure to allow the user to use lowercase as well as uppercase letters. Your program should include a loop that lets the user play again until the user says she or he is done.
---------------------------------------------------------------------------------------
Input player inputs using cout/cin (for C++) or printf/scanf (for C) Use nested if/else if/else statements to determine the outcome of the game
Use a while loop to repeat the game
Identify illegal inputs from the user and display an error message.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
