Question: Im a beginner java student. Rock-Paper-Scissors: * You are to implement a program, c alled RPS Game, that will allow the user to play three

Im a beginner java student.
 Im a beginner java student. Rock-Paper-Scissors: * You are to implement
a program, c alled RPS Game, that will allow the user to

Rock-Paper-Scissors: * You are to implement a program, c alled RPS Game, that will allow the user to play three games of Rock-Paper- Scissors with the computer. You will need to incorporate three methods (in addition to the main method) with the following functionality a. greeting0 a void, no argument method that explains the purpose of the program. b. generateComputersChoice0 a no argument method that returns the computer's choice. You should use a random number generator in this method. You may use whatever data type you choose for the method return. Make sure the prompt reflects your choice and that it is the same data type as the method described below c. enterPlayersChoice(int gameNumber) a method that takes the game number as an argument and returns the player's choice. You may use whatever data type you choose for the return type. Make sure the prompt reflects your choice and that it is the same data type as was generated by the generateComputersChoice method. The text for the input for the user should have the game number, as shown below d. Rock P for paper, or s for T e Remember, each of the above methods are public and static methods. For each game (loop). you should display the results of that game along with the game number as shown below. This should include: a. Game number b. Who played what: You and computer c. The scenario i. Rock crushes scissors ii. Paper wraps rock iii. Scissors cuts paper d. Who wins: you or computer Tor gane You played "paper. nd Computer played 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!