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
|
#include<conio.h>
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
main()
{
clrscr();
int a = 600, b = 700, y, c, d, e, f, g, h, i, j, k, l, total;
char order, loop;
cout << "=====================" << endl;
cout << " MENU" << endl;
cout << "=====================" << endl;
cout << endl;
cout << "Dishes:" << endl;
cout << "(A) Sweet and Sour Pork Php 600.00" << endl;
cout << "(B) Bicol Express Php 700.00" << endl;
do {
cout << "What do you want to order?" << endl;
cin >> order;
switch (order) {
case 'a':
case 'A':
cout << "You ordered Sweet and Sour Pork";
break;
case 'b':
case 'B':
cout << "You Ordered Bicol Express";
break;
default:
cout << "Invalid Entry";
break;
}
cout << " How many order?" << endl;
cin >> b;
c = order * b;
cout << "Your total bill Total Bill is " << c << endl;
cout << "Order Again? Y/N";
cin >> loop;
} while (loop == 'Y' || loop == 'y');
total = c * 0.6;
cout << "Thank You, Your Total Bill + Service Charge is " << total << endl;
getch();
return 0;
}
|