Question: I am writing this in C++. I have been using if statements, which has been working fine however, I am stuck on the Upper case

 I am writing this in C++. I have been using if

I am writing this in C++. I have been using if statements, which has been working fine however, I am stuck on the Upper case and Lower case letters part. Attached is my the program outline as well as my code.

statements, which has been working fine however, I am stuck on theUpper case and Lower case letters part. Attached is my the program

Write a program to score the Rock-Paper-Scissors game. Each of two users type in a character either R, P, or S (or the lowercaser,p, 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 a tie game. Be sure to allow users to use lowercase as well as uppercase letters. #include #include using namespace std; int main() { string player1, player2, rock, Rock, paper, Paper, Scissors, scissors; string p1RPS ,P2RPS; cout > player1; cout > player2; cout > p1RPS; cout > P2RPS; if (p1RPS == "Rock" || "rock" and p2RPS == "Rock" || P2RPS == "rock"), cout

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!