Question: USING JAVA!!!! Pls note that there are only two rounds meaning that ties can be done. Example: IF A WINS ROUND 1 AND TIES IN

USING JAVA!!!!

USING JAVA!!!! Pls note that there are only two rounds meaning thatties can be done. Example: IF A WINS ROUND 1 AND TIESIN ROUND2. A WINS IF A TIES ROUND 1 WITH B AND

Pls note that there are only two rounds meaning that ties can be done.

Example:

IF A WINS ROUND 1 AND TIES IN ROUND2. A WINS

IF A TIES ROUND 1 WITH B AND WINS ROUND2. A IS STILL THE WINNER

BUT IF A TIES IN ROUND 1 AND ROUND 2. THEN IT IS A TIE!

TIES AND WINS ARE THE ONLY things THAT ARE DISPLAYED.

code should be in java thank you.

2.2.1 Method to Implement: getRPSGameReport Problem. You are asked to consider the rock-paper-scissors (RPS) game (for which it is assumed that you know how to play it). Rock is denoted by character 'R', paper by 'P', and scissors by 'S'. As a reminder: rock wins scissors, paper wins rock, and scissors wins paper. Let's consider two example runs (where the same two players swap the order from one game to another): Enter the name of player 1: Doraemon Enter the name of player 2: Edward Scissorhands What does Doraemon play at round 1 (R, P, S)? R What does Edward Scissorhands play at round 1 (R, P, S)? S What does Doraemon play at round 2 (R, P, S)? R What does Edward Scissorhands play at round 2 (R, P, S)? S Game over: Doraemon wins! [Round 1: Doraemon wins (R vs. S) ; Round 2: Doraemon wins (R vs. S)] Enter the name of player 1: Edward Scissorhands Enter the name of player 2: Doraemon What does Edward Scissorhands play at round 1 (R, P, S)? S What does Doraemon play at round 1 (R, P, S)? R What does Edward Scissorhands play at round 2 (R, P, S)? s What does Doraemon play at round 2 (R, P, S)? R Game over: Doraemon wins! [Round 1: Doraemon wins (R vs. S) ; Round 2: Doraemon wins (R vs. S)] In this 2nd example run: - The Round 1 result shows: Round 1: Doraemon wins (R vs. s). - More precisely, R vs. S shows that rock wins scissors, despite the order of the players. - That is, the left-hand side of vs. always shows the play that wins, not what player 1 (in this case Edward Scissorhands) plays. A similar argument also applies to the Round 2 result

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!