Question: java [Game: scissor, rock, paper) Write a program that plays the popular scissor-rock-paper game. (A scissor can cut a paper, a rock can knock a
java



[Game: scissor, rock, paper) Write a program that plays the popular scissor-rock-paper game. (A scissor can cut a paper, a rock can knock a scissor, and a paper can wrap a rock.) The program randomly generates a number 0, 1, or 2 representing scissor,rock, and paper as the computer's choice. The program prompts the user to enter a number 0,1 or 2 and displays messages indicating whether the user or the computer wins, loses, or draws with their choices. The program will let the user continuously play until either the user or the computer wins total three times ICULITISTULUIU U maut VICHTL-uay> CICCI gaumg cu avuru VU TURILE Perrary. Sample output: 3 3 Assignment 1 (2) (Java Application) /Library/Java/JavaVirtual Machines/jdk1.8.0. Please enter your choice - scissor (0), rock (1), paper (2): 2 Computer's choice is paper (2). Your choice is paper (2). It is a draw Please enter your choice - scissor (0), rock (1), paper (2): Computer's choice is scissor (). Your choice is rock (1). You won Please enter your choice - scissor (0), rock (1), paper (2): @ Computer's choice is scissor (). Your choice is scissor (0) It is a draw Please enter your choice - scissor (0), rock (1), paper (2): 0 Computer's choice is scissor (O). Your choice is scissor (0). It is a draw Please enter your choice - scissor (O), rock (1), paper (2): Computer's choice is scissor (6) Your choice is scissor (0) It is a draw Please enter your choice - scissor (O), rock (1), paper (2): Computer's choice is paper (2). Your choice is scissor (0) You won Please enter your choice - scissor (0), rock (1), paper (2): 1 Computer's choice is rock (1). Your choice is rock (1). It is a draw Please enter your choice - scissor (6), rock (1), paper (2): 1 o e ER NOG 3 3 . SU .com/courses/50050/assignments/674376?module_item id = 1340458 LCUDC CITL you LILLE Computer's choice is scissor (O). Your choice is scissor (0). It is a draw Please enter your choice - scissor (0), rock (1), paper (2): 0 Computer's choice is scissor (0). Your choice is scissor (0) It is a draw Please enter your choice - scissor (1), paper (2): 0 Computer's choice is paper (2). Your choice is scissor (0). You won Please enter your choice - scissor (1), paper (2): 1 Computer's choice is rock (1). Your choice is rock (1). It is a draw Please enter your choice - scissor (), rock (1), paper (2): 1 Computer's choice is paper (2) Your choice is rock (1). You lost Please enter your choice - scissor (), rock (1), paper (2): 1 Computer's choice is paper (2). Your choice is rock (1). You lost Please enter your choice - scissor (0), rock (1), paper (2): 1 Computer's choice is scissor (6). Your choice is rock (1). You won Congratulations! You got the first three wins. - Coding Assignment (1) (1)