Source Code of Food Ordering System
Source Code of Food Ordering System
#include<iostream>
#include<conio.h>
int main() {
char name[30], pizza1[] = "Chicken Fajita", pizza2[] = "Chicken Bar BQ", pizza3[]
= "Chicken Tiqqa", pizza4[] = "Pepperoni";
char roll1[] = "Chicken Chatni Roll", roll2[] = "Chicken Mayo Roll", roll3[] =
"Veg Roll With Fries";
char bur1[] = "Zinger Burger", bur2[] = "Chicken Burger", bur3[] = "Beef Burger";
beginning:
system("color 70");
system("cls");
cin.getline(name, 20);
cout << "Hello " << name << "\n\nWhat would you like to order?\n\n";
if (choice == 1)
cout << "\nPlease Enter which Flavour would you like to have?:";
cout << "\n1) Small Rs.250\n" << "2) Regular Rs.500\n" << "3) Large
Rs.900\n";
switch (pchoice1)
break;
break;
case 3: choice = 900 * quantity;
break;
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " " << pizza1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " " << pizza2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " " << pizza3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 4:
cout << "" << quantity << " " << pizza4;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
goto beginning;
else if (choice == 2)
cout << "\n1 " << bur1 << " Rs.180" << "\n";
cout << "2 " << bur2 << " Rs.150" << "\n";
cout << "3 " << bur3 << " Rs.160" << "\n";
cout << "\nPlease Enter which Burger you would like to have?: ";
switch (pchoice1)
{
case 1: choice = 180 * quantity;
break;
break;
break;
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " " << bur1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " " << bur2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " " << bur3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
}
goto beginning;
else if (choice == 3)
cout << "\n1 " << sand1 << " Rs.240" << "\n";
cout << "2 " << sand2 << " Rs.160" << "\n";
cout << "3 " << sand3 << " Rs.100" << "\n";
cout << "\nPlease Enter which Sandwich you would like to have?:";
switch (pchoice1)
break;
break;
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " " << sand1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " " << sand2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " " << sand2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
{
goto beginning;
else if (choice == 4)
cout << "\n1 " << roll1 << " Rs.150" << "\n";
cout << "2 " << roll2 << " Rs.100" << "\n";
cout << "3 " << roll3 << " Rs.120" << "\n";
cout << "\nPlease Enter which you would like to have?: ";
switch (pchoice1)
break;
break;
break;
system("cls");
switch (pchoice1)
{
case 1:
cout << "" << quantity << " " << roll1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " " << roll2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " " << roll3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
else if (choice == 5)
cout << "\n1 " << bir1 << " Rs.160" << "\n";
cout << "2 " << bir2 << " Rs.220" << "\n";
cout << "3 " << bir3 << " Rs.140" << "\n";
cout << "\nPlease Enter which Biryani you would like to have?:";
switch (pchoice1)
break;
break;
break;
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " " << bir1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " " << bir2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " " << bir3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
goto beginning;
else if (choice == 6)
cout << "\nPlease Enter which curry would you like to have?:";
cout << "\n1) Small Plate Rs.50\n" << "2) Medium Plate Rs.100\n" <<
"3) Full Plate Rs.150\n";
switch (pchoice1)
break;
break;
break;
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " plate(s) of " << curr1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " plate(s) of " << curr2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "\t\t--------Your Order---------\n";
cout << "" << quantity << " plates(s) of " << curr3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 4:
cout << "" << quantity << " plates(s) of " << curr4;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
goto beginning;
else if (choice == 7)
cout << "\nPlease Enter which soft drink would you like to have?:";
cout << "\n1) 500ml Rs.30\n" << "2) 1litre Rs.60\n" << "3) 1.5litre
Rs.100\n";
switch (pchoice1)
break;
break;
break;
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " bottle(s) of " << bevr1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " bottle(s) of " << bevr2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " bottle(s) of " << bevr3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 4:
cout << "" << quantity << " bottle(s) of " << bevr4;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
goto beginning;
}
}
else if (choice == 8)
cout << "\nPlease Enter which dessert would you like to have?:";
cout << "\n1) Small Plate Rs.200\n" << "2) Medium Plate Rs.500\n" <<
"3) Full Plate Rs.800\n";
switch (pchoice1)
break;
break;
break;
}
system("cls");
switch (pchoice1)
case 1:
cout << "" << quantity << " plate(s) of " << desr1;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 2:
cout << "" << quantity << " plate(s) of " << desr2;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 3:
cout << "" << quantity << " plates(s) of " << desr3;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
case 4:
cout << "" << quantity << " plates(s) of " << desr4;
cout << "\nYour Total Bill is Rs." << choice << "\nYour Order
Will be delivered in 30 Minutes";
cout << "\n\nThank you For Ordering From UnA's Fast Food\n";
break;
}
cout << "Would you like to order anything else? Y / N:";
goto beginning;
else
system("cls");
cout << "Would You like to Start the program again? Y / N: ";
goto beginning;
system("pause");