TURING HELP

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

TURING HELP

Post by Anonymous »

I have a problem... I am making a program that simulates an automated resturant menu. What it needs to do is the user is able to select a menu item then it loops to the start then at anytime they can view there bill. I am having problems saving the item selections to the menu... what must i do to do this... ill post the coding i have now.
----------------------------------------

%Varibles
var choice1, choice2 : int

%Screen Settings
setscreen ("graphics:vga")

%Program

put "Welcome to Mario's and Stephan's Resturant"

for a : 1 .. 5
put ""
end for

put "To order your food all you have to is make a"
put "selection then your food will arrive at your"
put "table shortly after."
delay (4000)
cls

loop
put "From what category do you wish to order from?"
put ""
put "To select press the corresponding number followed by enter"
put ""
put ""
put ""
put "1. Entrees"
put "2. Appetizers"
put "3. Soups & Salads"
put "4. Drinks"
put "5. Desserts"
put "6. View Bill"
get choice1
delay (1000)
cls
if choice1 = 1 then
put "Entrees"
put "1. Portobello Mushroom and Red Pepper Sandwich"
put "2. Pizza"
put "3. Sloppy Joe"
put "4. Vegetable Pie"
put "5. Chicken Patty"
put "6. BBQ Tofu"
put "7. Tofu Salad"
get choice2
delay (1000)
cls
elsif choice1 = 2 then
put "Appetizers"
put "1. Chips & Homemade Salsa"
put "2. Three-Cheese Shrimp Dip"
put "3. Best of Mario's Combo Appetizer"
put "4. Extra Spicy Chicken Wings"
put "5. O'Thentic Spinach & Artichoke Dip"
put "6. Over-Loaded Potato Skins"
put "7. Pepper Jack Cheese Wedges"
get choice2
delay (1000)
cls
elsif choice1 = 3 then
put "Soups & Salads"
put "1. Black & Bleu Caesar Salad"
put "2. Fresh Vegetable Steamer"
put "3. Island Chicken Salad"
put "4. Over-Loaded Potato Soup"
put "5. Soup of the Day"
put "6. Chicken Noodle Soup"
put "7. Vegetable Soup"
get choice2
delay (1000)
cls
elsif choice1 = 4 then
put "Drinks"
put "1. Coca-Cola"
put "2. Sprite"
put "3. Mountain Dew"
put "4. Water"
put "5. Beer"
put "6. Vodka Cooler"
put "7. Wine Cooler"
get choice2
delay (1000)
cls
elsif choice1 = 5 then
put "Desserts"
put "1. Caramel Ice Cream Dream"
put "2. Caramel Pie Ice Cream Scoop"
put "3. Key Lime Pie"
put "4. Ooey Gooey Caramel Pie"
put "5. Quadruple Chocolate Chocolate Cake"
put "6. Tofu Ice Cream Bar"
put "7. Ice Cream Sandwich"
get choice2
delay (1000)
cls
elsif choice1 = 6 then
put choice2
end if

Archived topic from Iceteks, old topic ID:1767, old post ID:14836
Chris Vogel
Posts: 5140
Joined: Fri Jan 10, 2003 1:14 am

TURING HELP

Post by Chris Vogel »

I deleted the duplicate thread like you requested. You can delete your own topics though. At the bottom-left corner you should see a drop-down menu with red text. Select "Delete This Topic" in the drop-down menu.

Archived topic from Iceteks, old topic ID:1767, old post ID:14838
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

TURING HELP

Post by Red Squirrel »

I don't know turing, but I think josh (the other mod) worked with it... or was that basic? Can't remember.

Archived topic from Iceteks, old topic ID:1767, old post ID:14845
Honk if you love Jesus, text if you want to meet Him!
syb
Posts: 222
Joined: Wed Jun 18, 2003 10:12 pm

TURING HELP

Post by syb »

I work with turing. very easy to use. I am quit sure what your asking. can you repeat it?

Archived topic from Iceteks, old topic ID:1767, old post ID:14864
The wisdom of sight comes from the father of lights
syb
Posts: 222
Joined: Wed Jun 18, 2003 10:12 pm

TURING HELP

Post by syb »

so you want the program to remember what the person ordered right. Well the you need to make varibles like what you have but more then 2. do you know how to use lables and procedures?

Archived topic from Iceteks, old topic ID:1767, old post ID:14870
The wisdom of sight comes from the father of lights
syb
Posts: 222
Joined: Wed Jun 18, 2003 10:12 pm

TURING HELP

Post by syb »

you can use arrays to
got
http://www.geocities.com/cuteloveangel/Tur...er7.html#Arrays
to find out more about a array.

Archived topic from Iceteks, old topic ID:1767, old post ID:14876
The wisdom of sight comes from the father of lights
Locked