Question: Could Someone Help me code this? //(c) A+ Computer Science // www.apluscompsci.com //Name - import java.util.Scanner; import static java.lang.System.*; public class RPSRunner { public static
Could Someone Help me code this?

//(c) A+ Computer Science // www.apluscompsci.com //Name - import java.util.Scanner; import static java.lang.System.*; public class RPSRunner { public static void main(String args[]) { Scanner keyboard = new Scanner(System.in); char response; //add in a do while loop after you get the basics up and running String player = ""; out.print("type in your prompt [R,P,S] :: "); //read in the player value RockPaperScissors game = new RockPaperScissors(); } }
//(c) A+ Computer Science // www.apluscompsci.com //Name - import java.util.Scanner; import static java.lang.System.*; public class RockPaperScissors { private String playChoice; private String compChoice; public RockPaperScissors() { } public RockPaperScissors(String player) { } public void setPlayers(String player) { } public String determineWinner() { String winner=""; return winner; } public String toString() { String output=""; return output; } }A+ Computer Science ROCK, PAPER, Lab Goal: The lab was designed to teach you how to use &&, II, and! Lab Description: Generate a random choice for the computer player. Next, the person player will make a choice. Finally, you take the two choices and see which one of the players is the winner. You ill need to use Math.random() Sample Data: random -see below Files Needed RockPaperscissors.java RPSRunner.iava Sample Output: Rock-Paper-Scissors pick your weapon [R, P, S]:: R player had R computer had P Computer wins >! setPlayers method assign person player int num-random number 0, 1, or 2 switch case Do you want to play again? y 0computer "rock" 1 -computer = "paper" 2 computer "scissors" Rock-Paper-Scissors pick your weapon [R, P, S]:: R player had R computer had P !Computer wins >! Do you want to play again? y Rock-Paper-Scissors pick your weapon [R, P, S]:: R player had R computer had S Iplayer wins >! Do you want to play again? y Rock-Paper-Scissors pick your weapon [R, P, S]:: R player had R computer had R IDraw Game! Do you want to play again? y Rock-Paper-Scissors pick your weapon [R, P, S]:: R player had R computer had S !Player wins >! Do you want to play again? y Rock-Paper-Scissors pick your weapon [R, P,S]:: P player had P computer had S Computer wins >! Do you want to play again? n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
