Question: for Write a program to play Jan-Ken-Po with the user. Prompt the user to enter R for rock, P paper or S for scissors. The

for Write a program to play Jan-Ken-Po with the user. Prompt the user to enter R for rock, P paper or S for scissors. The computer's choice can be randomly generated by the following statement: compChoice = (int) (Math.random() * 3); After the statement runs, the variable compChoice will store 0, 1 or 2 representing rock, paper and scissors respectively. Display the choice of the computer and the result of the play of the game
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
