Answered step by step
Verified Expert Solution
Link Copied!

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.
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago