Question: Help modify the code below according to instruction below. import java.util.Scanner; public class RockPaperScissorsLab { public static void main(String [] args ) { Scanner kbd=new

Help modify the code below according to instruction below.

Help modify the code below according to instruction below. import java.util.Scanner; public

import java.util.Scanner; public class RockPaperScissorsLab { public static void main(String [] args ) { Scanner kbd=new Scanner(System.in); String userName; int random; int user; int count = 0; int userCount = 0; int compCount = 0; int i; boolean userWin = true; boolean compWin = true; System.out.println("Enter your Name"); userName = kbd.next(); for (i = 0; i 2 || user 3) System.out.println("game is no contest"); else if (userCount == compCount) System.out.println("You tied a computer, so let be honest, you lost bro..." + "user score" + userCount + " to comp score " + compCount + " out of " + i + " games!"); else if (userCount > compCount) { System.out.println(userName + " beat the computer! " + userName + " won " + userCount + " to " + compCount + " out of " + i + " games!"); } else { System.out.println(userName + " lost to the computer! The computer beat " + userName + " " + compCount + " to " + userCount + " out of " + i + " games!"); } } } /*else if (random == 0 && user == 2) compWin = true; else

CS.docx Create a flowchart to solve: Open with Google Docs Let's Play A Game, Again and Again! Revisit: Rock, Paper, Scissors Then, write the code and run it before class this week! Same game, new rules/specs for the program. User input should be validated as an appropriate value (i.e. 0, 1, 2), and if I the value is not correct continue to prompt user until they enter an appropriate value The game should be set up to be played as a series Best of 3, i.e. play until the winner has 2. Q: What if either player (computer or user) wins 2 times in a row? A: They win - no need to play last throw. Q: If there are "ties, will more than 3 rounds need to be played? A: Yes, one of the players must achieve 2 wins in order for the game to be over. This game can provide hours of endless fun! Set it up so that it can be played over and over again, until the user decides to quit. My Suggestion: Flowchart core game with input validation, then re-flowchart best of 3, and finally re-flowchart for the ability to play over and over. Play Again and Again DD From Didi Delgado to Everyone good

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!