Question: I have to write a code based on the question, but I have no idea how to write it. I have to write codes for

I have to write a code based on the question, but I have no idea how to write it.
I have to write codes for the problem and test it out on the scratch pad. Do I have to use randomizer? Static variable? Can you write the code and also the code to inpit in the scratch pad? Thank you.  I have to write a code based on the question, but
I have no idea how to write it. I have to write
codes for the problem and test it out on the scratch pad.

EXERCISE In this problem, you will write a method that takes in two Strings representing a round of "rock, paper, scissors." The Strings entered for the user and the computer will be "rock""paper", or "scissors". The method should return a String representing who the winner is provided by the three String variables USER PLAYER, COMPUTER PLAYER, and TIE. For example, if the user plays "rock" and the computer plays "scissors". the user wins

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!