Question: Consider that you are playing a slot machine; using Eclipse write a code and output for the following: 1. 2. Deposit a positive integer to

Consider that you are playing a slot machine; using Eclipse write a code and output for the following: 1. 2. Deposit a positive integer to start Run the machine and bet S3 each time, show result: .The results are three random integer numbers between 0-9 (Random class, nextInt(10) method) If result is that all 3 numbers are equal, you will win $20 *If result is that at least 2 numbers are equal, you will win $10 If none of the numbers are the same, you will win 0 3. 4. 5. Continue betting? Yes to bet, No to quit If quit, print out "Thanks for playing, your balance is SXXX. See you!" If remaining balance is not enough to continue playing, quit and print out "Sorry you can't continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
