Slot machine simulation java programming

broken image
broken image

The program will ask whether the user wants to play again. If three of the words match, the program will inform the user that he or she has won three times the amount entered. The program should randomly select a word from this list three times and display all three of the words. If the number is 0, the selected word is Cherries if the number is 1, the selected word is Oranges and so forth. To select a word, the program can generate a random number in the range of 0 through 5. When the program runs, it should do the following:

broken image

Create a program that simulates a slot machine. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user. The slot machine then displays a set of random images.

broken image

Starting out with Java: From control structures through objectsĪ slot machine is a gambling device that the user inserts money into and then pulls a lever (or presses a button).

broken image