December 02, 2020, 10:20:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Stuck on building a casino enviorment  (Read 1373 times)
New Member

Posts: 8

« on: May 03, 2004, 09:13:28 AM »

I am really stuck on this, and the project is due weds. That means I gotta make a two day rally for this class. This is the final project so this is extremely important to me. So if anyone can help, it would be extremely appreciated.

When the program is run we are to immedidatly suppose to ask for how much money, players are only allowed to enter if they have between 0 and $10k. Once that is established we are suppose to bring them two a menu. (This is where im at) I have created the menu but it is alil complicated for me to figure out how to lay it out and get it to work. The menu contains:

1. Borrow Money
2. Current Balance
3. Pay off loan
4. Play Games
5. Exit

Now how am I suppose to get the program to remember the current balance? And to remember I have gotten a loan?

Thanks for your help in advance!!!!

hane Martin
Posts: 35

« Reply #1 on: May 03, 2004, 12:20:32 PM »

let me check my labs.. I think i had a similar one..... Ill try and get back but if these guys can probably do better then me. Im still learning also.
Posts: 3655

« Reply #2 on: May 03, 2004, 04:32:33 PM »

You use variables, to put it simply. For example:

DIM CurrentBalance AS LONG
IF IsThereALoan = 1 THEN
  'yeah, there's a loan
  'fill in your code here
  'nope, no loan
  'fill in your code here

I'm not going to give it all away, but that should put you in the right direction.

Next time...don't wait till the last minute to do a final project. Wink

I'd knock on wood, but my desk is particle board.
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!