TURING HELP
Posted: Thu Dec 11, 2003 1:41 pm
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
----------------------------------------
%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