Question: Create a Java class called RockPaperScissors Add a comment at the top of your code file with your name, course name & section, and today

Create a Java class called RockPaperScissors
Add a comment at the top of your code file with your name, course name & section, and todays date (the format for this is up to you, but be clear & consistent)
Create a 1D array that contains strings for each of the possible choices (Rock, Paper, & Scissors)
Create a 2D array where the row index represents the users choice and the column index represents the computer's choice. Store a string that represents the result of the row & column entry. For example, in the row that represents the user selecting Paper and the computer selecting Rock, the entry should be a String that says something like Paper covers rock, you win!
Prompt the user for their name, then greet them
Prompt the user to select a number 1-3 where 1=Rock, 2=Paper, and 3=Scissors
Select a random number 1-3 for the computers choice
Using the two arrays you created, display what each player chose and the winner of the game, or if there is a tie
When you are done, delete the project description & sample output and fill in the boxes below
Note that you should use both arrays in your solution, and you should not have any conditional statements (if/switch) in your code!

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 Programming Questions!