#include <iostream>
#include <conio.h>
#include <string.h>
#include <iomanip.h>
#include <time.h>
#define Plain Egg 15.45;
using namespace std;
void do_again(),direction(int ans);
void option_1(),option_2(),option_3(),option_4(),option_5(),option_6();
int main()
{
do_again();
return 0;
}
void do_again()
{
int ans;
do
{
cout << "Welcome\n";
cout << "1: Combo Meal\n";
cout << "2: Single Meal\n";
cout << "3: \n";
cout << "4: \n";
cout << "5: \n";
cout << "6: Option 6 - Exit\n";
cin >> ans;
cin.ignore(80,'\n');
direction(ans);
}while(ans!=6);
}
void direction(int ans)
{
switch (ans)
{
case 1:
option_1();
break;
case 2:
option_2();
break;
case 3:
option_3();
break;
case 4:
option_4();
break;
case 5:
option_5();
break;
case 6:
option_6();
break;
default:
cout << "";/
break;
}
}
void option_1()
{
}
void option_2()
{
int ch2;
cout <<" !! Enjoy your Food !!!\n";
cout <<"Please Select Your Order\n";
cout <<"\n";
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| MENU LIST |\n";
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 1 - Plain Egg" << setw(18) << "P15.45" <<" |" <<setw(26) <<"11 - Jolly Hotdog" <<setw (17) <<"P45.75 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 2 - Bacon and Egg" << setw(14) << "P34.75" << setw(30) <<"12 - BeefChicken" <<setw(15) <<"P61.00 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 3 - ChickenJoy" << setw(17) << "P89.75" << setw(25) <<"13 - Spaghetti" <<setw(20) <<"P49.00 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 4 - French Fries" << setw(15) << "P25.50" << setw(25) <<"14 - Mango Pie" <<setw(20) <<"P24.50 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 5 - Coke Float" << setw(17) << "P35.50" << setw(25) <<"15 - Beef Stew" <<setw(20) <<"P72.00 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 6 - Coke (Large)" << setw(15) << "P25.15" << setw(29) <<"16 - Fish Fillet" <<setw(16) <<"P72.00 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 7 - Swirly Bitz" << setw(16) << "P28.50" << setw(31) <<"17 - Breakfast Steak" <<setw (14) <<"P52.50 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 8 - Burger" << setw(21) << "P35.75" << setw(27) <<"18 - Corned Beef" <<setw(18) <<"P65.00 |" << endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 9 - Rice" << setw(23) <<"P15.50" << setw(26) <<"19 - Longganisa" <<setw(19) <<"P55.50 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cout <<"| 10 - Coffee" << setw(20) <<"P15.00" << setw(31) <<"20 - Chicken Sausage" <<setw(14) <<"P50.50 |" <<endl;
cout <<"|----------------------------------------------------------------------------|\n";
cin >> ch2;
switch(ch2) {
case 1:
break;
case 2:
break;
case 3: {
break;
}
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
case 8:
return;
case 9:
return;
case 10:
return;
case 11:
return;
case 12:
return;
case 13:
return;
case 14:
return;
case 15:
return;
case 16:
return;
case 17:
return;
case 18:
return;
case 19:
return;
case 20:
return;
default:
cout << "\a";
}
}
void option_3()
{
}
void option_4()
{
}
void option_5()
{
}
void option_6()
{
}
This post has been edited by CellulaS: 06 October 2012 - 05:52 AM

New Topic/Question
Reply



MultiQuote





|