0% found this document useful (0 votes)
44 views29 pages

Arjya Computer Project

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views29 pages

Arjya Computer Project

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

COMPUTER SCIENCE PROJECT PORTFOLIO

TOPIC: RESTURANT MANAGEMENT SYSTEM

SUBMITTED BY: ARJYA TALUKDAR


CLASS XII (SCIENCE)
SECTION: A
BOARD ROLL NO:
SUBMITTED TO: MR. MRIDULESH SARMA
COMPUTER SCIENCE TEACHER
FACULTY HIGHER SECONDARY
SCHOOL
FACULTY HIGHER SECONDARY SCHOOL
Amingaon, North Guwahati – 39

CERTIFICATE

This is to certify that Arjya Talukdar of Class XII (A) Science at Faculty Higher Secondary
School has successfully completed the project titled "Restaurant Management System" using
Python and MySQL. This project was carried out under the direct supervision of Mr.
Mridulesh Sarma, our Computer Science teacher.

Arjya Talukdar demonstrated excellent dedication, technical skills, and the ability to apply
theoretical knowledge to practical applications throughout the development and
implementation of this project.

The project fulfills the requirements set forth by the school's Computer Science curriculum
and showcases the student's capability in executing a comprehensive and functional
management system.

We congratulate Arjya Talukdar on the successful completion of this project.

Date:

Signature: ___________________ _______________________

Mr. Mridulesh Sarma


Computer Science Teacher Student Singature
Faculty Higher Secondary School
ACKNOWLEDGEMENT

I, Arjya Talukdar of Class XII (A) Science at Faculty Higher


Secondary School, would like to express my heartfelt gratitude to
everyone who contributed to the successful completion of our
project on the Restaurant Management System using Python and
MySQL.

First and foremost, I extend my deepest thanks to our Computer


Science teacher, Mr. Mridulesh Sarma, for his invaluable
guidance and supervision throughout this project. His expertise
and encouragement have been instrumental in the development
and success of our work.

Finally, I would like to thank our school, Faculty Higher


Secondary School, for providing us with the necessary resources
and a conducive environment for learning and development.

Thank you all for your support and encouragement.

Arjya Talukdar
Class XII (A) Science
Faculty Higher Secondary School
INTRODUCTION TO THE RESTAURANT MANAGEMENT SYSTEM

1.1 Background of the Study

In the modern era, the restaurant industry is continuously evolving, driven by the
increasing demand for efficient and seamless customer experiences. Managing a
restaurant is a multifaceted task that involves overseeing various elements such as
menu management, order processing, customer interaction, and feedback collection.
Traditional manual methods are often inefficient and prone to errors, leading to delays
and dissatisfaction. As restaurants strive to remain competitive, the adoption of
technology has become pivotal. A Restaurant Management System (RMS) not only
streamlines operations but also enhances customer satisfaction by reducing waiting
times, ensuring accurate order management, and maintaining a high level of service.

This project aims to develop an automated Restaurant Management System using


Python. The system integrates MySQL as the backend database to store and manage
data effectively. The project bridges the gap between traditional restaurant workflows
and modern technology, catering to the needs of small to medium-sized restaurants.

1.2 About Restaurant Management System in Python

The Restaurant Management System in Python is a software solution designed to


automate and simplify the management of restaurant operations. Python, known for its
simplicity and versatility, is used as the core programming language to build the
system. The system interacts with a MySQL database to manage essential components
such as the menu, customer orders, and feedback.

Python’s extensive library support, along with its capability to handle data processing
and database integration, makes it an ideal choice for building an RMS. This system
provides a user-friendly interface where customers can view the menu, place orders,
check their order status, and leave feedback. It also offers restaurant managers a
centralized platform to manage customer details, orders, and the menu seamlessly.

1.3 Features of the Restaurant Management System in Python

The system boasts several features that ensure an efficient and enjoyable experience
for both customers and restaurant staff:

• Menu Management: The system displays an updated menu with details such
as dish names, types, and prices.
• Order Booking: Customers can place orders by selecting dishes, specifying
quantities, and providing personal details.
• Order Viewing: Customers can view their recent orders and check the status
using their mobile number.
• Order Cancellation: Users can cancel their orders easily if required.
• Feedback Mechanism: Customers can provide valuable feedback, helping the
restaurant improve its services.
• Database Integration: MySQL is used for storing and retrieving menu details,
customer orders, and feedback, ensuring data consistency and reliability.
• Error Handling: The system validates inputs, such as dish IDs and mobile
numbers, to prevent invalid entries.
• Scalability: The system is designed to accommodate additional features such
as online payment and table booking in the future.

1.4 Steps to Use the Restaurant Management System

1. Start the Application: The system opens with a welcome page offering
options to either proceed as a customer or exit the application.
2. View the Menu: Customers can browse through an extensive list of dishes
categorized by type and price.
3. Place an Order:
o Enter the dish number and quantity.
o Provide your name, mobile number, and address for delivery.
o Confirm the order, and the system calculates the total price and saves
the details.
4. Check Your Orders: Retrieve order details by entering your registered mobile
number.
5. Cancel an Order: Enter your mobile number to cancel any ongoing or past
orders.
6. Leave Feedback: Share your experience by providing your name and
comments.
7. Exit the Application: Once done, gracefully exit the system with a thank-you
message.
USEFULNESS AND OBJECTIVES OF THE RESTAURANT MANAGEMENT SYSTEM

Usefulness of the Project

The Restaurant Management System (RMS) is an innovative solution designed to


streamline restaurant operations and enhance customer satisfaction. Its usefulness
extends across various aspects of the restaurant ecosystem, benefiting both the
management and customers.

1. Operational Efficiency:
o Automates routine tasks such as order processing, menu updates, and
feedback collection, reducing the workload on staff.
o Minimizes errors in order taking, ensuring that customers receive the
correct items with accurate billing.
2. Customer Experience:
o Provides a seamless and user-friendly interface for customers to browse
the menu, place orders, and leave feedback.
o Reduces wait times by ensuring quick and accurate processing of orders.
3. Data Management:
o Centralizes the storage of menu details, customer information, and
feedback in a secure database.
o Enables easy retrieval of order history, making it simple for customers
to track their previous orders.
4. Scalability:
o Designed to support additional features such as online ordering,
payment gateways, and table reservation systems, making it adaptable to
future requirements.
5. Cost-Effectiveness:
o Eliminates the need for extensive manual labor and paperwork, reducing
operational costs.
o Provides a comprehensive solution that integrates seamlessly into
existing workflows without significant investment.
6. Improved Feedback Mechanism:
o Offers a platform for customers to share their opinions, helping the
restaurant identify areas for improvement and maintain a high standard
of service.

Objectives of the Project

The primary objectives of the Restaurant Management System are:

1. To Develop an Efficient Automation Tool:


o Replace manual processes with an automated system that improves
accuracy and speed in handling restaurant operations.
2. To Enhance Customer Satisfaction:
o Provide an intuitive interface for customers to interact with the
restaurant, reducing frustration and enhancing their dining experience.
3. To Create a Reliable Data Management System:
o Ensure secure storage and easy access to critical data such as menu
details, customer orders, and feedback through a robust database.
4. To Reduce Human Errors:
o Minimize the chances of errors in order-taking, billing, and order
delivery through an automated and validated system.
5. To Facilitate Business Growth:
o Equip the restaurant with a modern management system that can adapt
to new trends like online food delivery and digital payments, enabling
scalability.
6. To Save Time and Resources:
o Streamline operations to save time for both staff and customers,
allowing the restaurant to focus on providing high-quality food and
services.
7. To Support Decision-Making:
o Use customer feedback and order data to make informed decisions about
menu updates, pricing strategies, and customer service improvements.
8. To Provide a Learning Platform for Development:
o Demonstrate the practical application of Python programming and
MySQL database integration, serving as a learning opportunity for
developers and aspiring restaurant owners.
HARDWARE AND SOFTWARE REQUIREMENTS

Minimum Hardware Requirements

To run the Restaurant Management System effectively, the following minimum


hardware configuration is required:

1. Processor: Dual-Core Processor (Intel Core i3 or equivalent).


2. RAM: 4 GB.
3. Storage: 250 GB HDD or SSD with at least 10 GB of free space.
4. Display: 1024x768 resolution monitor.
5. Input Devices: Standard keyboard and mouse.
6. Network: Basic internet connection for software updates (if required).

Recommended Hardware Requirements

For optimal performance and scalability, the following hardware configuration is


recommended:

1. Processor: Quad-Core Processor (Intel Core i5 or higher, or AMD Ryzen 5 or


higher).
2. RAM: 8 GB or higher.
3. Storage: 500 GB SSD with at least 20 GB of free space.
4. Display: Full HD monitor (1920x1080 resolution).
5. Input Devices: Ergonomic keyboard and optical mouse for ease of use.
6. Network: High-speed internet connection for future integrations like cloud
storage or online order management.

Minimum Software Requirements

1. Operating System: Windows 10/8/7 (64-bit) or Linux (Ubuntu 18.04 or


higher).
2. Python Version: Python 3.8 or higher.
3. Database Management System: MySQL 5.7 or higher.
4. Text Editor or IDE: Any basic editor like Notepad++ or IDE like IDLE.
5. Dependencies:
o mysql-connector-python library for database connectivity.
Recommended Software Requirements

1. Operating System: Windows 11 (64-bit), Linux (Ubuntu 22.04 or higher), or


macOS.
2. Python Version: Python 3.10 or higher.
3. Database Management System: MySQL 8.0 or higher.
4. Integrated Development Environment (IDE):
o PyCharm (Community or Professional Edition).
o Visual Studio Code with Python extensions.
5. Dependencies:
o mysql-connector-python library for database connectivity.
o tkinter (if GUI is integrated in future).
6. Additional Tools:
o Browser (e.g., Google Chrome or Mozilla Firefox) for accessing online
documentation.
o Version control software like Git for collaborative development.
FLOWCHART, SYSTEM ANALYSIS, DFD, AND ALGORITHMS

Flowchart for the Restaurant Management System

Steps in Flowchart:

1. Start
2. Display Welcome Screen
3. User Choice:
o View Menu
o Place Order
o View Orders
o Cancel Order
o Feedback
o Exit
4. If "View Menu": Display menu items.
5. If "Place Order":
o Collect order details (dish ID, quantity, name, mobile number, address).
o Calculate total price and save to database.
6. If "View Orders": Fetch and display user orders based on mobile
mobile number.
7. If "Cancel Order": Delete order details from database using mobile number.
8. If "Feedback": Collect feedback and save it to database.
9. Exit

START

If "View
Display
Welcome User Choice
Menu": If "Place If Exit
Screen
Display Order": "Feedback":
menu items Collect
feedback
and save it
View Place View Cancel to database
Feedback Exit
menu order orders orders
Collect order details Calculate
(dish ID, quantity, total price
name, mobile and save to
number, address) database

If "View orders" Fetch


and displayuser order based
on mobile number
If "Cancel Order": Delete
order details from database
using mobile number

Fig. Flowchart of restaurant management system


System Analysis

Input:

• Customer information (name, mobile number, address).


• Dish ID and quantity for orders.
• Feedback details.

Process:

• Retrieve menu data from the database.


• Validate user inputs (dish ID, mobile number).
• Calculate total price of orders.
• Store and retrieve order and feedback data from the database.

Output:

• Display menu items.


• Show order confirmation and total price.
• Fetch and display past orders.
• Confirmation of order cancellation.
• Save feedback and display a thank-you message.

System Benefits:

• Simplifies restaurant operations.


• Provides a seamless experience for customers.
• Ensures data reliability through database integration.

Data Flow Diagram (DFD)

Context Level DFD (Level 0):

• Entities:
o Customer
o Database
• Processes:
o View Menu
o Place Order
o View Orders
o Cancel Order
o Feedback
DFD (Level 1):

1. View Menu:
o Customer → System: Request menu → System: Fetch menu from
database → System: Display menu to customer.
2. Place Order:
o Customer → System: Provide order details → System: Validate dish ID
→ System: Calculate total price → System: Save order in database.
3. View Orders:
o Customer → System: Provide mobile number → System: Fetch order
history from database → System: Display orders to customer.
4. Cancel Order:
o Customer → System: Provide mobile number → System: Delete order
from database → System: Confirm cancellation.
5. Feedback:
o Customer → System: Provide feedback → System: Save feedback in
database → System: Display thank-you message.

Algorithms

Algorithm: View Menu

1. Start
2. Fetch all items from the menu table.
3. Display items with ID, Name, Type, and Price.
4. End

Algorithm: Place Order

1. Start
2. Input: Dish ID, Quantity, Name, Mobile Number, Address.
3. Fetch item details from the menu table using Dish ID.
4. Calculate total price: Quantity * Item Price.
5. Insert order details into cusdet table.
6. Display order confirmation.
7. End

Algorithm: View Orders

1. Start
2. Input: Mobile Number.
3. Fetch order details from cusdet table using Mobile Number.
4. For each order, fetch item details from the menu table.
5. Display all order details.
6. End

Algorithm: Cancel Order

1. Start
2. Input: Mobile Number.
3. Delete orders from cusdet table where Mobile Number matches.
4. Display cancellation confirmation.
5. End

Algorithm: Feedback

1. Start
2. Input: Name and Comments.
3. Insert feedback into feedback table.
4. Display thank-you message.
5. End
IMPLEMENTATION AND RESULT ANALYSIS

Implementation of the Restaurant Management System

The implementation of the Restaurant Management System (RMS) involved the


integration of Python programming and MySQL database management. The following
steps outline the development process:

1. System Design:
o The design phase focused on understanding the requirements and
translating them into a modular structure.
o Key functionalities such as menu management, order booking, viewing
orders, feedback collection, and order cancellation were planned as
distinct modules.
o Data flow diagrams (DFDs) were created to map the interaction between
the user, the Python application, and the MySQL database.
2. Backend Development (Database):
o MySQL was chosen for its reliability and efficiency in handling
structured data.
o Three main tables (menu, cusdet, and feedback) were designed
with appropriate fields and data types to support the operations.
o SQL queries were written to fetch, insert, and delete records based on
user actions.
3. Frontend Development (Python):
o Python was used to build the user interface and handle business logic.
o Functions were developed for each core operation, such as viewing the
menu, placing orders, and handling feedback.
o User inputs were validated to prevent errors and ensure data integrity.
o The mysql-connector-python library was used to establish
seamless communication between Python and MySQL.
4. Integration and Testing:
o The Python application was integrated with the MySQL database.
o Test cases were developed to validate each functionality, ensuring that the
system performed as expected under different scenarios.
o Edge cases, such as invalid dish IDs or incorrect mobile numbers, were tested
to verify error-handling mechanisms.
5. Deployment:
o The system was deployed on a local machine, providing a simple and efficient
way to manage restaurant operations.
o Instructions for installation and usage were documented to assist future users
and developers.
Result Analysis

The implementation of the Restaurant Management System yielded promising results,


showcasing its practicality and effectiveness in a restaurant setting.

1. Performance Analysis:
o The system successfully displayed the menu, allowing users to view
dishes and their details.
o Order placement was efficient, with the total price calculated accurately
and data stored reliably in the database.
o Retrieval of order history and feedback collection worked seamlessly,
enhancing the user experience.
2. Error Handling:
o Input validation prevented common mistakes, such as entering invalid
IDs or leaving fields blank.
o Error messages guided users to rectify their inputs, making the system
user-friendly and robust.
3. Database Reliability:
o The MySQL database efficiently handled all data operations, including
insertion, retrieval, and deletion.
o Data consistency was maintained even during high usage scenarios,
proving the system’s scalability.
4. User Feedback:
o The feedback mechanism provided insights into customer satisfaction,
highlighting the system’s potential as a tool for continuous
improvement.
o Customers appreciated the intuitive interface and the time saved due to
automated operations.
5. Benefits for the Restaurant:
o The system reduced dependency on manual processes, leading to faster
and more accurate order processing.
o It streamlined operations, allowing restaurant staff to focus on delivering
high-quality service.
o By storing customer data securely, the system enabled better customer
relationship management.
6. Scope for Future Enhancements:
o The system’s modular design allows for the integration of advanced
features like online payment, inventory management, and real-time
order tracking.
o It can be scaled to support cloud-based databases for multi-branch
restaurant operations.
Scope of the Restaurant Management System

The Restaurant Management System (RMS) holds immense potential to


revolutionize how restaurant operations are conducted. Its scalable design and
modular architecture ensure its applicability across various restaurant formats, from
small diners to large chain establishments. The scope of this project can be
categorized into immediate applications, future enhancements, and broader industry
impacts.

1. Immediate Applications

• Streamlining Operations:
Automates menu management, order processing, and feedback collection,
reducing the burden on staff and increasing efficiency.
• Enhanced Customer Experience:
Provides an intuitive interface for customers to browse the menu, place orders,
and provide feedback, ensuring a seamless experience.
• Data Management:
Centralizes all customer and menu data in a secure and easily accessible
format, enabling quick retrieval and updates.
• Error Reduction:
By automating calculations and validations, the system minimizes errors in
order processing and billing.

2. Future Enhancements

• Online Ordering and Delivery Integration:


Expanding the system to allow customers to place orders online and track
delivery status in real time.
• Mobile Application Development:
Creating a mobile app for both Android and iOS to enhance accessibility for
customers and staff.
• Inventory Management:
Integrating a module to track ingredient stock levels, automatically updating
based on order volume to prevent shortages or wastage.
• Customer Relationship Management (CRM):
Using customer data to offer personalized discounts, loyalty rewards, and
targeted marketing campaigns.
• Cloud-Based Operations:
Implementing cloud database support for managing data across multiple
branches of a restaurant chain.
• Advanced Analytics:
Incorporating data analytics to generate reports on sales trends, customer
preferences, and peak operational hours, aiding in strategic decision-making.

3. Broader Industry Impact

• Scalability Across Sectors:


The system’s principles can be adapted for use in related industries, such as cafes,
food trucks, and catering services.
• Improved Staff Productivity:
By automating repetitive tasks, staff can focus more on customer service and
operational excellence.
• Environmental Benefits:
Reducing paper-based processes, such as handwritten order slips and receipts,
contributes to eco-friendly practices.
• Competitive Advantage:
Restaurants equipped with advanced management systems stand out in the market,
attracting tech-savvy customers and boosting revenue.
PYTHON CODES:

#-----------CONNECTION--------------

import mysql.connector

x = mysql.connector.connect(host='localhost', user='root', password='admin123', database='mydata')

cbj = x.cursor()

def vmen():

q = "select * from menu"

cbj.execute(q)

menu = cbj.fetchall()

if len(menu) > 0:

print("\n---Available Dishes---\n")

for i in menu:

print("DISH NUMBER", i[0], "\n---->", i[1], " (TYPE:", i[3], ")\n", "PRICE", i[2])

print("\n")

x.commit()

yn = int(input('DO YOU WANT TO ORDER AN ITEM? type (1 for yes/2 for going back to main page):
'))

if yn == 1:

byo()

else:

print("THANK YOU")

print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")


#------------FOR BOOKING ORDER----------------

def byo():

ID = int(input("ENTER DISH NO. OF THE ITEM YOU WANT TO ORDER:"))

QUANTITY = int(input('ENTER QUANTITY:'))

NAME = input('ENTER YOUR NAME:')

MOBNO = int(input('ENTER YOUR MOBILE NUMBER:'))

ADDRESS = input("ENTER YOUR ADDRESS:")

a = 'select * from menu where ID={}'.format(ID)

cbj.execute(a)

a_result = cbj.fetchall()

if len(a_result) > 0:

item_price = a_result[0][2]

total_price = QUANTITY * item_price

ins = "insert into cusdet values({}, {}, '{}', {}, '{}', {})".format(ID, QUANTITY, NAME, MOBNO,
ADDRESS, total_price)

cbj.execute(ins)

print("\nTHANKS FOR YOUR ORDER\nYOUR ORDER HAS BEEN PLACED SUCCESSFULLY\n")

print('YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE')

x.commit()

else:

print("Invalid Dish ID. Please try again.")


#------------FOR VIEWING ORDER----------------

def vyo():

c = int(input("enter your number: "))

d = 'select * from cusdet where MOBNO={}'.format(c)

print("\nYOUR RECENT ORDERS.\n")

cbj.execute(d)

p = cbj.fetchall()

for i in p:

r = 'select * from menu where ID={}'.format(i[0])

cbj.execute(r)

e = cbj.fetchall()

for j in e:

print("ID:", j[0])

print("ITEM NAME:", j[1])

print("ITEM TYPE:", j[3])

print("TOTAL PRICE:", i[5])

print("MOBILE NUMBER:", i[3])

print("ADDRESS:", i[4], "\n")

x.commit()

#------------FOR CANCELLING ORDER-----------------

def cyo():

c = int(input("enter your number: "))

e = "delete from cusdet where MOBNO={}".format(c)


cbj.execute(e)

print("\nYOUR ORDER HAS BEEN CANCELLED")

print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE\n")

x.commit()

#----------------FEEDBACK--------------------

def fdbck():

fd = input("Enter your name:")

print("Write something about us--")

fdi = input()

q = "insert into feedback values('{}', '{}')".format(fd, fdi)

cbj.execute(q)

print("\nThanks for your feedback :)\n")

print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE\n")

x.commit()

#-------------WELCOME PAGE----------------

def start():

print("\n-WELCOME TO-")

print("SHASHWAT'S KITCHEN\n")

print("Press assigned keys for going forward")

print("1. CUSTOMER")

print("2. EXIT")

def start1():

while True:

print("\n1. VIEW MENU")


print("2. VIEW YOUR ORDERS")

print("3. CANCEL ORDER")

print("4. FEEDBACK")

print("5. EXIT")

ch1 = int(input('enter your choice: '))

if ch1 == 1:

vmen()

elif ch1 == 2:

vyo()

elif ch1 == 3:

cyo()

elif ch1 == 4:

fdbck()

elif ch1 == 5:

start()

break

else:

print("\nINVALID CHOICE\nTRY AGAIN\n")

start()

#----------------WELCOME PAGE INFINITE LOOP--------------------

while True:

ch = int(input("enter your choice: "))

if ch == 1:

start1()
elif ch == 2:

print("Thank you")

break

else:

print("INVALID CHOICE\nTRY AGAIN")

x.close()
MYSQL CODES:
DATABASE:

Table: menu

ID NAME PRICE TYPE


1 Pizza 12.99 Main Course
2 Pasta 10.99 Main Course
3 Salad 6.99 Appetizer
4 Dosa 5.99 Main Course
5 Idli 3.99 Appetizer
6 Chicken Biryani 14.99 Main Course
7 Chicken 65 8.99 Appetizer
8 Veg Kofta 11.99 Main Course
9 Chicken Dry Fry 13.99 Appetizer
10 Mughlai Chicken 15.99 Main Course
11 Fish Fry 12.99 Appetizer
12 Spaghetti Carbonara 13.99 Italian
13 Margherita Pizza 11.99 Italian
14 Chicken Alfredo 14.99 Italian
15 Sweet and Sour Chicken 12.99 Chinese
16 Kung Pao Chicken 13.99 Chinese
17 Spring Rolls 7.99 Chinese
18 Fried Rice 9.99 Chinese

Table: cusdet

ID QUANTITY NAME MOBNO ADDRESS TOTAL_PRICE

1 2 John Doe 1234567890 123 Elm Street 25.98

Table: feedback

NAME COMMENTS
John Doe Great food and service!
FINAL OUTPUT
---Available Dishes---

INITIAL OUTPUT: Welcome Page


DISH NUMBER: 1

----> Pizza (TYPE: Main Course)


-WELCOME TO-
PRICE: 12.99
SHASHWAT'S KITCHEN

DISH NUMBER: 2
Press assigned keys for going forward
----> Pasta (TYPE: Main Course)
1. CUSTOMER
PRICE: 10.99

2. EXIT

DISH NUMBER: 3

----> Salad (TYPE: Appetizer)


After Selecting "1. CUSTOMER"
PRICE: 6.99

1. VIEW MENU DISH NUMBER: 4

2. VIEW YOUR ORDERS ----> Dosa (TYPE: Main Course)

3. CANCEL ORDER PRICE: 5.99

4. FEEDBACK
DISH NUMBER: 5
5. EXIT
----> Idli (TYPE: Appetizer)

PRICE: 3.99

Example Interaction Outputs


DISH NUMBER: 6
1. View Menu (vmen() function)
----> Chicken Biryani (TYPE: Main Course)

If you choose to view the menu: PRICE: 14.99


----> Margherita Pizza (TYPE: Italian)

DISH NUMBER: 7 PRICE: 11.99

----> Chicken 65 (TYPE: Appetizer)

PRICE: 8.99 DISH NUMBER: 14

----> Chicken Alfredo (TYPE: Italian)

DISH NUMBER: 8 PRICE: 14.99

----> Veg Kofta (TYPE: Main Course)

PRICE: 11.99 DISH NUMBER: 15

----> Sweet and Sour Chicken (TYPE: Chinese)

DISH NUMBER: 9 PRICE: 12.99

----> Chicken Dry Fry (TYPE: Appetizer)

PRICE: 13.99 DISH NUMBER: 16

----> Kung Pao Chicken (TYPE: Chinese)

DISH NUMBER: 10 PRICE: 13.99

----> Mughlai Chicken (TYPE: Main Course)

PRICE: 15.99 DISH NUMBER: 17

----> Spring Rolls (TYPE: Chinese)

DISH NUMBER: 11 PRICE: 7.99

----> Fish Fry (TYPE: Appetizer)

PRICE: 12.99 DISH NUMBER: 18

----> Fried Rice (TYPE: Chinese)

DISH NUMBER: 12 PRICE: 9.99

----> Spaghetti Carbonara (TYPE: Italian)

PRICE: 13.99 DO YOU WANT TO ORDER AN ITEM? type (1


for yes/2 for going back to main page):

DISH NUMBER: 13
enter your number: 1234567890
2. Book Order (byo() function)

YOUR RECENT ORDERS.


If you decide to book an order:

ENTER DISH NO. OF THE ITEM YOU WANT


ID: 1
TO ORDER: 1
ITEM NAME: Pizza
ENTER QUANTITY: 2
ITEM TYPE: Main Course
ENTER YOUR NAME: John Doe
TOTAL PRICE: 25.98
ENTER YOUR MOBILE NUMBER:
1234567890 MOBILE NUMBER: 1234567890

ENTER YOUR ADDRESS: 123 Elm Street ADDRESS: 123 Elm Street

4. Cancel Order (cyo() function)


THANKS FOR YOUR ORDER
To cancel an order:
YOUR ORDER HAS BEEN PLACED
SUCCESSFULLY

YOU HAVE BEEN REDIRECTED TO THE MAIN enter your number: 1234567890
PAGE

YOUR ORDER HAS BEEN CANCELLED

YOU HAVE BEEN REDIRECTED TO THE MAIN

3. View Your Orders (vyo() function) PAGE

To view your orders:


5. Feedback (fdbck() function)

To provide feedback:

Enter your name: John Doe

Write something about us--

Great food and service!

Thanks for your feedback :)

YOU HAVE BEEN REDIRECTED TO THE MAIN


PAGE

Final Output When Exiting

If you choose to exit at any point:

Thank you

You might also like