Question: I need help with Java assignment. Need to use switch statements in the program Rock-Paper-Scissors Game. Write a program that: 1) Prompt the user to
I need help with Java assignment. Need to use switch statements in the program

Rock-Paper-Scissors Game. Write a program that: 1) Prompt the user to play: 'R' for rock, 'P' for paper, and 'S' for scissors. 2) Generate computer's play. Computer's play could be either rock, paper, or scissors with equal probability. 3) Output game result For example, if user input is 'R', computer generates 'S', the output should be: Welcome to Rock-Paper-Scissors Game! Enter your play (R-rock, P paper, S-scissors): R Computer play is: Scissors Rock crushes scissors. You win
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
