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 D array that contains strings for each of the possible choices Rock Paper, & Scissors
Create a D 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 where Rock, Paper, and Scissors
Select a random number 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 ifswitch in your code!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
