Program 26

Slot Machine Application

Create a slot machine game application that acts as a simple slot machine. The user starts with 100 tokens. With each "pull" of the handle, the user loses 1 token and the computer "spins" three wheels, each consisting of the numbers 1, 2, and 3.

If all three numbers are 1, the user gets 4 tokens;

If all are two, the user gets 8 tokens;

If all are 3, the user gets 12 tokens.

The number of tokens that the user has should be displayed on the form and the result of each spin should be displayed in a message box.

Turn in code, form image, and flow chart.