473,320 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Slot Machine Program

2
I am trying to figure out how to make a simple slot machine program in VBScript that starts by prompting and collecting the desired number of slot machine spins to simulate
simulates the spins:
each spin requires a randomly generated three picture enum values
each of those values is printed to the screen as Lion, Cherry, Bar, Lemon or Lime
The result of the spin is then printed, jackpot, winner, or loser
Jackpot = all values are the same
Winner = the first to values are the same
Loser = all other combinations
Then store results in an array and provide a summary of the results
Something like "You spun 10 times and won 3 out of 10 earning $30"
for each win give $10 per win and $25 per jackpot

I am completely stumped on where to start for this program, and my teacher is just blowing off all of my questions.
Mar 15 '07 #1
1 3144
willakawill
1,646 1GB
Hi. TSDN is, in fact, teacher friendly. You need to read the posting guidelines especially regarding assignments
Mar 15 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MingChih Tsai | last post by:
Hi there, Are there any slot machine c# sample codes for reference ? Thanks !! Best regards, Paul
1
by: shane.tietjen | last post by:
If you are dealing with one PCI card, is there a way (from within a dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6, etc.)? It doesn't matter if the solution is MFC, or...
10
by: stwebmail | last post by:
If you are dealing with one PCI card, is there a way (from within a dll) to find out which PCI slot that card is inhabiting (1 or 2 or 6, etc.)? It doesn't matter if the solution is MFC, or...
1
by: Fred B | last post by:
I am launching a new thread from my application's main process (using VB.net 2003), and I can't get the child to receive the parameter I'm attempting to send it in a named data slot. The code...
1
by: peterggmss | last post by:
This is a slot machine game, 2 forms. One is the actual game (frmMachine) and the other is in the background and randomizes the images shown on frmMachine. I need to make frmMachine wait for...
4
by: Tracid83 | last post by:
hi, I use wmi to get slot information from remote computer.I want to know the name of the device connected on the specific slot. Thanks for your help Tracid
2
by: Carnell, James E | last post by:
I am thinking about purchasing a book, but wanted to make sure I could get through the code that implements what the book is about (Artificial Intelligence a Modern Approach). Anyway, I'm not a...
7
by: dirtysouth6975 | last post by:
I need some help. I am getting an error of: local function definitions are illegal. What does this mean? Can anybody help me out a little? Thank you. //Specification: This program simulates a three...
2
by: Davy | last post by:
Hi all, When reading Python source code of Peter Norvig's AI book, I found it hard for me to understand the idea of slot (function nested in function). Please see "program()" nested in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.