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

I need help with Java assignment. Need to use switch statements in

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

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!