Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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.

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

=+Could you use an ambient ad?

Answered: 1 week ago