Then, repeat the whole process by requesting another bet amount. If the user did not win, tell him/her 'Sorry, you lose.' If he won, pay him by displaying his winnings (his original bet times the winning factor from the above table).
Some examples are: BAR 7 BAR, 7 7 cherries, cherries BAR space, space BAR BAR, or cherries cherries BAR. Your program will print out a line that looks like a slot machine result containing three strings.
Otherwise, accept the amount as their bet and simulate a slot machine pull. If the user types a 0 that means she wants to quit. The program will loop, asking the user for a bet amount from 0 to 50 (assume dollars, you can use ints or longs). A Slot Machine Simulation Understand the Application