Slot machine simulation program using Random numbers
Posted 21 April 2007 - 11:53 AM
Could anyone help me with my slot machine simulation program. I have done most of the work; all except that I can't figure out how and where to make it calculate the jackpot and that when the user enters invalid coins coins it should keep on generating the error message and stop at any point when the sentinel value is entered and continue.
The question has been commented in the program code in the attached file.
Re: Slot machine simulation program using Random numbers
Posted 22 April 2007 - 02:56 PM
First some things. You better make a separate class and demo program, this will help you organizing your programs more! Second of all, I've made a similar thing, but mine converts three numbers into characters, outputs them.
See attachment, I hope you can learn something from this! I'll try to look at your own program asap, but I just wanted to show you how you can make a good working slot-machine, if you ignore your assignment.