Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java only Ims.thesottwareguild.com Inbox (2,13 strings orders java scanner cass java Program It Yourself in J Mpls-Java Chegg Study The rules of the game

in java onlyimage text in transcribedimage text in transcribed

Ims.thesottwareguild.com Inbox (2,13 strings orders java scanner cass java Program It Yourself in J Mpls-Java Chegg Study The rules of the game are as follows: 1. Each player chooses Rock, Paper, or Scissors 2. If both players choose the same thing, the round is a tie 3. Otherwise Account a. Paper wraps Rock to win b. Scissors cut Paper to win c. Rock breaks Scissors to win Dashboard Requirements This program will be a Java Console Application called RockPaperScissors .The program first asks the user how many rounds he/she wants to play Courses Calendar o Maximum number of rounds 10, minimum number of rounds 1. If the user asks for Inbox something outside this range, the program prints an error message and quits o If the number of rounds is in range, the program plays that number of rounds. Each round is played according to the requirements below Help .For each round of Rock, Paper, Scissors, the program does the following o The computer asks the user for his/her choice (Rock, Paper, or Scissors) o Hint: 1 Rock, 2 Paper, 3 Scissors o After the computer asks for the user's input, the computer randomly chooses Rock, Paper, or Scissors and displays the result of the round (tie, user win, or computer win) o Hint: use the Random class . The program must keep track of how many rounds are ties, user wins, or computer wins o Hint: Create three variables to keep track of these items and update them correctly after each round The program must print out the number of ties, user wins, and computer wins and declare the overall winner based on who won more rounds After all rounds have been played and the winner declared, the program must ask the user if he/she wants to play again o If the user says No, the program prints out a message saying, "Thanks for playing!" and then exits o If the user says Yes, the program starts over, asking the user how many rounds he/she Ims.thesoftwareguild.com scanner class java Program It Yourself in Java 9- Arrays- YouTube Chegg l Guided Solutions and y Help l a. Paper wraps Rock to wir b. Scissors cut Paper to win c. Rock breaks Scissors to win Requirements This program will be a Java Console Application called RockPaperScissors. . The program first asks the user how many rounds he/she wants to play Account Dashboard o Maximum number of rounds 10, minimum number of rounds = 1. If the user asks for Courses something outside this range, the program prints an error message and quits o If the number of rounds is in range, the program plays that number of rounds. Each round is played according to the requirements below Calendar .For each round of Rock, Paper, Scissors, the program does the following o The computer asks the user for his/her choice (Rock, Paper, or Scissors) o Hint: 1-Rock, 2 Paper, 3-Scissors o After the computer asks for the user's input, the computer randomly chooses Rock, Paper, Inbox or Scissors and displays the result of the round (tie, user win, or computer win) Help o Hint: use the Random class .The program must keep track of how many rounds are ties, user wins, or computer wins o Hint: Create three variables to keep track of these items and update them correctly after each round . The program must print out the number of ties, user wins, and computer wins and declare the overall winner based on who won more rounds After all rounds have been played and the winner declared, the program must ask the user if he/she wants to play again o If the user says No, the program prints out a message saying, "Thanks for playing!" and then exits If the user says Yes, the program starts over, asking the user how many rounds he/she would like to play Dog Genetics Ever heard of those places that you can mail in some of your dogs hair, and they'll send back a

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions