Question: Please help me with this I am not very good with this: Body to use: import java.util.*; public class RockScissorPaper { public static void main(String[]

Please help me with this I am not very good with this: Please help me with this I am not very good with this:

Body to use: import java.util.*; public class RockScissorPaper { public static void

main(String[] args) { Scanner kb = new Scanner(System.in); game(kb); } public staticBody to use:

 import java.util.*; public class RockScissorPaper { public static void main(String[] args) { Scanner kb = new Scanner(System.in); game(kb); } public static void game(Scanner kb) { } /*Must use switch statment for this method to generate a random number, create a random object using the Random calss: Random rand = new Randon(), to generate a random number between 0-2, int num = rand.nextInt(3)*/ public static String computerChoice() { return ""; } public static void desc() { } public static String userChoice(Scanner kb) { return ""; } public static String winner(String computer, String user) { return""; } } 

Problem: Write a program that lets the user to play the game of Rock, paper, Scissors against the computer many times. Creating the Scanner object must be in the main method only. The program should work as follows: main method must only have two lines of code: Scanner kb = new Scanner(System.in) playGame(kb); lavGame method a. Ask the user how many times he/she wants to play the game. b. Call ComputerChoice method c. Call userChoice d. Call winner method e. Display the result computerChoice method Generate a random number in the range of one and three is generated. You must write a method that returns the computer choice as a string If the number is one, then the computer has chosen rock If the number is 2, the computer has chosen paper. If the number is 3, then the computer has chosen scissors. userChoice method The user enters her/his choice of "rock", "paper", "scissors" at the keyboard. You must use a menu so the user can select one of the options. Must write a method that displays the menu and then returns the user choice Winner method A winner is selected according to the following criteria. If two players make the same choice, the game must be played again. Must write a method that accepts the user's choice and the computer's choice and return the winner. Player 1 rock scissors paper Player 2 scissors paper rock winner Rock smashes the scissors Scissors cuts paper Paper wraps rock

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!