Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
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