Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 winStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started