Question: Using Java Language: Design and implement a program that simulates a simple slot machine in which three numbers between 0 and 9 (inclusively) are randomly
Using Java Language: Design and implement a program that simulates a simple slot machine in which three numbers between 0 and 9 (inclusively) are randomly selected and printed side by side. Print an appropriate statement if all three of the numbers are the same, or if any of the two numbers are the same. Continue playing until the user chooses to stop with -1 value. Prompt the user to play on each iteration for a new set of three numbers. Value of 1 means play or generate a new set of three numbers or -1 to quit.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
