You are on page 1of 4

(Hotel Menu)

Submitted By
(Shoaib Sultan)
(Roll. No:S23BARIN1M01113)

Group Members
(Shoaib sultan
S23BARIN1M01113
Syed M. Ali Ahmad
S23BARIN1M01013
M. Owais Shabir
S23BARIN1M01093
M. Imran
S23BARIN1M01062)

(Programing Fundamental,ARIN 1102 )


(Artificial intelligence & Semester 1)
(M2)
Proposal Submission Date: 05/04/2023

Supervisor/Instructor
Mr. Muhammad Asad Ullah Khalid

The Islamia University of Bahawalpur


Department of Information Communication Engineering
Table of Contents
* Hotel Menu
(Burgar
Shuarma
Sandwich
Cold drink)

Project Description
* Hotel Menu

Requirements
* C++
* Laptop
* Person

Goals
* Use for Hotel System
* The advantages of this project is not required waiter

Limitations
* Laptop is mandatory
* Person is mandatory
* The order don't reject
* The Specific Menuu
1 #include <iostream>
2 #include <string>
3
4 using namespace std;
5
6 int main() {
7 string order;
8 int price = 0;
9 int quantity = 0;
10 int total_price = 0;
11 bool ordering = true;
12
13 cout << "Welcome to the hotel menu!\n";
14 cout << "---------------------------\n";
15 cout << "Menu:\n";
16 cout << "1. Burger (Rs. 100)\n";
17 cout << "2. Shawarma (Rs. 150)\n";
18 cout << "3. Sandwich (Rs. 80)\n";
19 cout << "4. Cold Drink (Rs. 30)\n";
20 cout << "---------------------------\n";
21
22 while (ordering) {
23 cout << "What would you like to order? ";
24 cin >> order;
25
26 if (order == "Burger" || order == "burger") {
27 cout << "How many Burgers would you like to order? ";
28 cin >> quantity;
29 cout << "You have ordered " << quantity << " burgers.\n";
30 price = 100;
31 } else if (order == "Shawarma" || order == "shawarma")
{ 32 cout << "How many Shawarmas would you like to order? ";
33 cin >> quantity;
34 cout << "You have ordered " << quantity << " shawarmas.\n";
35 price = 150;
36 } else if (order == "Sandwich" || order == "sandwich") {
37 cout << "How many Sandwiches would you like to order? ";
38 cin >> quantity;
39 cout << "You have ordered " << quantity << " sandwiches.\n";
40 price = 80;
41 } else if (order == "Cold Drink" || order == "cold drink" || order == "Colddrink" || order ==
"colddrink") {
42 cout << "How many Cold Drinks would you like to order? ";
43 cin >> quantity;
44 cout << "You have ordered " << quantity << " cold drinks.\n";
45 price = 30;
46 } else {
47 cout << "Sorry, we don't have that on the menu.\n";
48 continue;
49 }
50
51 total_price += price * quantity;
52
53 cout << "Thank you for your order!\n";
54 cout << "Your total bill so far is Rs. " << total_price << endl;
55
56 cout << "Would you like to order something else? (y/n) ";
57 char choice;
58 cin >> choice;
59
60 if (choice != 'y' && choice != 'Y')
{ 61 ordering = false;
62 }
63 cin.ignore();
64 }
65
66 cout << "Your final bill is Rs. " << total_price << endl;
67 cout << "Thank you for your order!\n";
68 return 0;
69 }

You might also like