Welcome to Dream.In.Code
Become a Java Expert!

Join 149,481 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,425 people online right now. Registration is fast and FREE... Join Now!




Slot machine simulation program using Random numbers

 
Reply to this topicStart new topic

Slot machine simulation program using Random numbers

THE_RAM
21 Apr, 2007 - 10:53 AM
Post #1

New D.I.C Head
*

Joined: 29 Mar, 2007
Posts: 19


My Contributions
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.




Attached File(s)
Attached File  slotMachine.txt ( 3.25k ) Number of downloads: 735
User is offlineProfile CardPM
+Quote Post

k0rrup7
RE: Slot Machine Simulation Program Using Random Numbers
22 Apr, 2007 - 01:56 PM
Post #2

New D.I.C Head
*

Joined: 16 Feb, 2007
Posts: 16


My Contributions
Hey man!

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.

Greets.

See Link:

http://k0rrup7.110mb.com/SlotMachine.rar
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 04:23PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month