1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
#include<iostream>
using namespace std;
int main()
{
int select,
ewan,lag,ehe,wew,diff,oppa,enter,product1,wiw,log,a,b,c,d,e,totalall,totaldrink,totalmeal,sum,price,product,total,ehh,drink;
;
cout<<" Welcome to Tapsihan Ni Abraham!";
cout<<"\n SM MEGAMALL BLDG. EDSA COR WACKWACK.";
cout<<"\n Building A Robinson GroundFloor.";
cout<<"\n TELEPHONE # (02) 633 5013 to 19.";
cout<<"\n [1]PROCEED";
cout<<"\n [2]EXIT\n";
cin>>enter;
if(enter==1){
cout<<"\n Meal";
cout<<"\n[1]Tapsilog = 10 ";
cout<<"\n[2]Chicksilog = 20 ";
cout<<"\n[3]Hotsilog = 30 ";
cout<<"\n[4]Tosilog = 40 ";
cout<<"\n[5]Hamsilog = 50 ";
cout<<"\nType Here Your Order:";
cin>>log;
}
if(log==1){
cout<<"\nYou choose Tapsilog";
cout<<"\nHow Many Order you will take?:";
cin>>wew;
product1=10*wew;
total=price*a;
cout<<"\n>>> Tapsilog:"<<product1;
}
if(log==2){
cout<<"\nYou choose Chicksilog";
cout<<"\nHow Many Order you will take?:";
cin>>wew;
product1=20*wew;
total=price*a;
cout<<"\n>>> Chicksilog:"<<product1;
}
if(log==3){
cout<<"\nYou choose Hotsilog";
cout<<"\nHow Many Order you will take?:";
cin>>wew;
product1=30*wew;
total=price*a;
cout<<"\n>>> Hotsilog:"<<product1;
}
if (log==4){
cout<<"\nYou choose Tosilog";
cout<<"\nHow Many Order you will take?:";
cin>>wew;
product1=40*wew;
total=price*a;
cout<<"\n>>> Tosilog:"<<product1;
}
if(log==5){
cout<<"\nYou choose Hamsilog";
cout<<"\nHow Many Order you will take?:";
cin>>wew;
product1=50*wew;
total=price*a;
cout<<"\n>>> Hamsilog:"<<product1;
}
cout<<"\nPress 1 to Proceed:";
cin>>ewan;
if(enter==2){
return(0);
}
cout<<"\n Do you want Drinks?";
cout<<"\n [1]YES";
cout<<"\n [2]NO";
cout<<"\n Type Here:";
cin>>oppa;
if(oppa==1){
cout<<"\n Drinks ";
cout<<"\n[1]Coke =10 ";
cout<<"\n[2]Sprite =20 ";
cout<<"\n[3]Sarsi =30 ";
cout<<"\n[4]IceTea =40 ";
cout<<"\n[5]Lemon =50 ";
cout<<"\nType Here Your Order:";
cin>>lag;
}
if(lag==1){
cout<<"\nYou choose Coke";
cout<<"\nHow Many Order you will take?:";
cin>>wiw;
product=10*wiw;
total=price*a;
cout<<"\n>>> Coke:"<<product;
}
if(lag==2){
cout<<"\nYou choose Sprite";
cout<<"\nHow Many Order you will take?:";
cin>>wiw;
product=20*wiw;
total=price*a;
cout<<"\n>>> Sprite:"<<product;
}
if(lag==3){
cout<<"\nYou choose Sarsi";
cout<<"\nHow Many Order you will take?:";
cin>>wiw;
product=30*wiw;
total=price*a;
cout<<"\n>>> Sarsi:"<<product;
}
if(lag==4){
cout<<"\nYou choose IceTea";
cout<<"\nHow Many Order you will take?:";
cin>>wiw;
product=40*wiw;
total=price*a;
cout<<"\n>>> IceTea:"<<product;
}
if(lag==5){
cout<<"\nYou choose Lemon";
cout<<"\nHow Many Order you will take?:";
cin>>wiw;
product=50*wiw;
total=price*a;
cout<<"\n>>> Lemon:"<<product;
}
else if(oppa==2){
cout<<"Have a nice day!";
}
cout<<"'\t\t Official Receipt of Abraham Tapsihan";
cout<<"\t\t Date: 1/11/15 Sunday";
cout<<"\t\t Time: 12:31pm";
cout<<"\t\t SERIAL #: 0124572";
cout<<"\t\t Your Order List:";
sum=product1+product;
cout<<"\nTotal of Meal and Drink is:"<<sum;
cout<<"\nAmount of Cash:";
cin>>ehh;
product=ehh-sum;
cout<<"\nThe Change is:"<<product;
return 0;
}
|