Question: Starter code: import java.util.*; public class PRS { public static Scanner kbd; public static Random generator; public static void main(String[] args) { generator = args.length

 Starter code: import java.util.*; public class PRS { public static Scanner

kbd; public static Random generator; public static void main(String[] args) { generator

= args.length == 0 ? new Random() : new Random(Integer.parseInt(args[0])); kbd =

new Scanner(System.in); kbd.close(); } /** * Gets a randomly chosen answer for

Starter code:

import java.util.*; public class PRS { public static Scanner kbd; public static Random generator; public static void main(String[] args) { generator = args.length == 0 ? new Random() : new Random(Integer.parseInt(args[0])); kbd = new Scanner(System.in); kbd.close(); } /**  * Gets a randomly chosen answer for the computer  * @return the word "paper", "rock" or "scissors"  */  public static String computerChoose() { String [] answer = new String[3]; answer[0] = "paper"; answer[1] = "rock"; answer[2] = "scissors"; return answer[generator.nextInt(3)]; } } 

It says to use the code from the assignments but I dont have it so please do all of it.

Please show a screenshot of your code for better readability.

project part 1 getting started 1. Click the Open IDE button 2. In the IDE window, look in the leftmost column and find the CSCI 1010 folder and inside it, find the project08 folder 3. Open the Java file PRS.java the project Create the entire paper, rock, scissors game program. Note that this file already contains some starter code, and an existing method which will be explained below, under the technical notes section. DO NOT change any of the existing code or your program will fail the tests Begin by copying your instructions and analyzeRound methods from the assignment and pasting them into the PRS file, so you can use these two methods to help you complete the project. Your program should begin by printing the title of game on the screen, followed by a line break. The Game of Paper, Rock, Scissors Next, you should ask the user if instructions are needed. If the user answers "Y" or "y", then you should display some basic instructions to the screen. Use your instructions method that you wrote for part 1 of the assignment to display the instructions on the screen Do you need instructions (Y or N) ? Y This is the popular game of paper, rock, scissors. Enter your choice by typing the word "paper", the word "rock" or the word "scissors". The computer will also make a choice from the three options. After you have entered your choice, the winner of the game will be determined according to the following rules: Paper wraps rock (paper wins) Rock breaks scissors (rock wins) Scissors cuts paper (scissors wins) If both you and the computer enter the same choice, then the game is tied Next, you should ask the user to type in their choice. You should expect the user to type the word "paper", the word "rock", or the word "scissors". Don't worry about error checking at this time; you may assume that the user will enter one of these three words, however the user may enter any combination of upper and lowercase letters

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!