Question: please help me with easy computer science question (please use java) Question 1. (6 points) Write the Java code inside a main method that simulates
please help me with easy computer science question
(please use java)

Question 1. (6 points) Write the Java code inside a main method that simulates a simple slot machine where three numbers between 0 and 9 (inclusive) are randomly selected and printed side by side. Based on these numbers, your program will display the output as follows Print "Winner!" if all three numbers are the same Print "Almost there!" if anv two numbers are the same Print "Better luck next time!" otherwise The game will repeat unless the user enters "no". Sample output: 8, 6, 2 Better luck next time! Play again? yes 7, 1, 7 Almost there! Play again? no Grading scheme: [1 pt] Generating random numbers [1 pt] All the print statements and proper output [1 pt] Comparison when all 3 numbers are the same [1 pt] Comparison when any 2 numbers are the same [1 pt] Repeating the game [1 pt] Checking user input for ending the game
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
