0% found this document useful (0 votes)
21 views22 pages

Sample Project Report - CS

Uploaded by

Arvinth K balaji
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)
21 views22 pages

Sample Project Report - CS

Uploaded by

Arvinth K balaji
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/ 22

SHRI RAM GLOBAL SCHOOL, WHITEFIELD

SESSION: 2024-2025

COMPUTER SCIENCE PROJECT

TOPIC: RESTAURANT MANAGEMENT SYSTEM

SUBMITTED BY: Arvinth K


Balaji
GRADE: XII C

Pg. 1
CERTIFICATE

This is to certify that Mr. Arvinth K Balaji of class XII , with Roll Number
of Shri Ram Global School, Bangalore has completed
his/her project in the subject of Computer Sciencefor the class XII Practical
Examination of the Central Board of Secondary Educ ation for the academic
year 2024-2025 under my supervision.

He/ She has taken great care and shown utmost sincerity in the completion
of the project.

I further certify that this project is up to my expectations and is as per the


CBSE requirements.

Mrs. Sridevi Kalluri Examiner

ACKNOWLEDGEMENT

Pg. 2
I want to express my sincere her vital support, guidance, andgratitude to my Computer Science
teacher Mrs. Nalini for encouragement without which this project would not have come forth.
I would also like to thank Mrs. Sridevi Kalluri, our esteemed principal, for
her continued support and for providing the facilities required to execute this project. Last
but not least, I would like to thank my parents for their undivided support and interest
which always inspires me.

Arvinth K Balaji

Pg. 3
TABLE OF CONTENTS

Sr.no Contents Page

1 INTRODUCTION 6

2 PROJECT ABSTRACT 7

3 SURVEY OF 9
TECHNOLOGIES

4 SYSTEM 11
REQUIREMENTS

5 SOURCE CODE 12-20

6 SCREENSHOTS OF EXECUTION 21-22

7 CONCLUSION 23

8 BIBLIOGRAPHY 24

INTRODUCTION

Pg. 4
A Restaurant Management System (RMS) is a comprehensive software solution designed to

streamline various operations within a restaurant. It integrates multiple functionalities, such as

order processing, inventory management, table reservations, and customer relationship

management, into a single platform.

Pg. 5
PROJECT ABSTRACT

The Restaurant Management System is divided into the following functions as per their functionality:

 Order Management: Allows staff to take and manage orders efficiently, from kitchen to table
service.

 Table Management: Enables hosts to manage reservations, waitlists, and table assignments
in real time.

 Inventory Management: Tracks stock levels of ingredients and supplies, helping prevent
shortages and manage food costs.

 Customer Management: Stores customer data, preferences, and order history, enhancing
personalized service.

 Reporting and Analytics: Provides insights into sales, popular dishes, and employee
performance, helping to inform business decisions.

 Payment Processing: Facilitates various payment methods, including credit cards and mobile
payments, ensuring quick transactions.

 Employee Management: Manages staff schedules, payroll, and performance tracking.


Benefits:

 Improved Efficiency: Automates many manual processes, reducing wait times and errors.

 Enhanced Customer Experience: Streamlined operations lead to quicker service and better
customer satisfaction.

Pg. 6
 Data-Driven Decisions: Access to real-time analytics helps in making informed business
choices.

 Cost Control: Effective inventory management helps reduce waste and optimize supply costs .

SURVEY OF TECHNOLOGIES

The Restaurant management system project utilizes the following software for its development.

 PYTHON:
Python designed by Guido Van Rossum in 1991 is a versatile, high level programming
language. With dynamic typing and a rich standard library. Widely adopted in diverse
domains for web development, data analysis, machine learning, and automation.
Pythons cross platform compatibility and ease of integration further solidify its position
as a go to language for a broad spectrum of applications.

Pg. 7
 MY SQL:
MySQL is a free and open-source database system. You can use it without paying, and it
follows the rules of the GNU General Public License. It's super popular worldwide,
especially for web-based apps. Big names like Facebook, Twitter, and YouTube use it
because it's reliable, performs well, and is easy to use. It's like a trustworthy friend for
handling data on the internet.

 My SQL-Connector-Python:
To make Python work with a MySQL database, you need a special tool called a MySQL driver.
In this case, the driver is called "MySQL Connector." It acts like a bridge, connecting Python
and MySQL databases. You can get this connector by using a simple command: pip install
MySQL-connector-python. This command tells Python to fetch and install the MySQL
Connector, making it ready for it to be used in projects.

ABOUT THE SYSTEM

HARDWARE SPECIFICATIONS:

• PROCESSOR: PENTIUM DUAL CORE OR ABOVE

• RAM: 2 GB
• HARD DISK: 500 GB

SOFTWARE SPECIFICATIONS:

• OPERATING SYSTEM: WINDOWS 7 OR ABOVE

• FRONT END: PYTHON 3 OR ABOVE


• MIDDLEWARE: PYTHON-MYSQL CONNECTOR

• BACK END: MySQL

Pg. 8
SOURCE CODE

# CONNECT DATABASE
import mysql.connector as a
con=a.connect(host="localhost",user="root",password="Arvinth@2007",database="cafe")
#SYSTEM PASSWORD LOGIN

def signin(): print("\n") print(" --------->>>>>>> Welcome New Indian


Restaurant <<<<<<<-------") print("\n") p=input("System Password :") if
p=="cs1234":
options()
else:
signin()
#DISPLAY OPTIONS

def options():
print("""
1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS """) choice=input("Select Option :") while True: if (choice =='1'): Dish()
elif (choice =='2'): Cook() elif (choice =='3'): PaySalary() elif (choice
=='4'):
NewOrder()
elif (choice =='5'):
NetIncome() elif
(choice =='6'):
Expenditure()
else:
print("Wrong choice")

def Dish():
choice=input("1.Add 2.Remove 3.Display 4.MainMenu: ")
if choice =='1':

Pg. 9
dn=input("Dish Name :") dc=input("Dish Cost :") Cname()
cb=input("Cooked By:") did=str(DishID()) data=(dn,dc,cb,did)
sql='insert into Dish (Dish, Cost, Cook, DishID) values(%s,%s,%s,%s)'
c=con.cursor()
c.execute(sql,data) con.commit()
print("Data Entered Succesfully") elif choice
=='2': did=input("Dish ID :")
data=(did,) sql='delete from Dish where
DishID =%s' c=con.cursor()
c.execute(sql,data)
con.commit()
print("Data Updated Sucessfully")
elif choice =='3': print("\n")
sql="select *from Dish"
c=con.cursor() c.execute(sql)
d=c.fetchall() for i in d:
print(i[0],'-',i[1],'-',i[2],'-',i[3])
print("\n") else:
options()

def DishID(): sql ='select count(*) ,


max(dishid) from Dish' c=con.cursor()
c.execute(sql) d=c.fetchall() for i in d:
if i[0] ==0: return(1) else:
return(int(i[1])+1)

def Cname(): sql="Select Name, Dishes


from Cook" c=con.cursor()
c.execute(sql) d=c.fetchall() print("<-
--- Available ---->") for i in d:
print(i[0],"---",i[1]) return

#ADD or REMOVE COOK def


Cook( ):

Pg. 10
choice=input("1.Add 2.Remove 3.Display 4.Mainmenu: ")
if choice=='1':
cn=input("Cook Name :")
ca=input("Aadhar :") d=input("Dishes: ")
s=int(input("Salary :")) doj=input("Date of
Joining : D/M/Y :") data=(cn,ca,d,s,doj)
sql='insert into Cook values(%s,%s,%s,%s,%s)'
c=con.cursor( )
c.execute(sql,data)
con.commit() print("Data Entered
Successfully") elif choice =='2':
cn=input("Cook Name:") ca=input("Aadhar: ")
data= (cn,ca) sql='delete from Cook where Name =%s
and Aadhar=%s' c=con.cursor()
c.execute(sql,data) con.commit()
print("Data Updated Successfully") elif
choice =='3': sql="select * from
Cook" c=con.cursor()
c.execute(sql) d=c.fetchall() for i
in d: print(i[0],'-',i[1],'-',i[2],'-',i[3],'-
',i[4]) print("\n") else:
options( )

#PAY COOK SALARY

def PaySalary():
sql="select * from Cook"
c=con.cursor()
c.execute(sql)
d=c.fetchall() for i in d:
print(i[0],'-',i[1],'-',i[2],'-',i[3],'-',i[4]) print("------
------------------------------------------------")
cn=input("Cook Name : ") ca=input("Aadhar")
ba=input("SBI Account : ") mn=input("DATE :D/M/Y :
") s=int(input("Salary :")) d=int(input("Working
days:")) if mn[3:5] in ['01','03','05','07','08','10','12']:

Pg. 11
ns=(s/31)*d elif mn[3:5] in
['04','06','09','11']:
ns=(s/30)*d
else:
ns=(s/28)*d data=(cn,ca,ba,mn,s,d,ns) sql="insert
into Salary values(%s,%s,%s,%s,%s,%s,%s)"
c=con.cursor()
c.execute(sql,data) con.commit() print("Net
Salary Paid :",ns,"Rs") print("----------------------
---------------------") xy=input("1.Salary Menu
2.MainMenu : ") print("-----------------------------
--------------") if xy =='1': PaySalary() elif
xy =='2': options() else:
options()

#MAKENEWORDER

def NewOrder():
sql="select * from Dish" c=con.cursor()
c.execute(sql) d=c.fetchall() print("NAME -----
COST ----- COOK ----- DISH ID") for i in d:
print(i[0],"-",i[1],"-",i[2],"-",i[3]) print("\n") dil=[]
while True:
di=input("Select Dish ID {0 when Done} :")
if di=='0': break else:
dil.append(di) sql ="select
DishID,Cost from Dish" c
=con.cursor() c.execute(sql)
d=c.fetchall() dicl={} for i in d:
dicl[i[0]] =i[1] tc=0 for i in dil: dc=dicl[i] tc=tc+dc
dt=input("Date: D/M/Y :") cn=input(" Customer Name:") ca=input("Aadhar:")
lis=input("Enter Dish IDs:") data=(lis,tc,dt,cn,ca) sql='insert into Orders (DishIDs,
Cost, Date, Customer, Aadhar) values(%s,%s,%s,%s,%s)' c=con.cursor()
c.execute(sql,data)
con.commit() print("Total Amount :

Pg. 12
",tc,"Rs") print("Data Entered
Successfuly")
print("------------------------------------------------------------------------")
xy=input("1.Order Menu 2.Main Menu :")
print("------------------------------------------------------------------------")
if xy =='1': NewOrder() elif xy=='2': options()

#MONTHLY NET INCOME def NetIncome():


c=con.cursor() t=input("1.All 2.Year 3.Month 4.Date
5.Main Menu: ") if t=='1':
sql='select Cost from Orders'
c.execute(sql) d=c.fetchall() oi=0
for i in d: oi=oi+i[0] print("Total
Income from Orders :",oi,"Rs") elif t=='2':
y = input("Enter Year :")
sql="select Cost,Date from Orders"
c.execute(sql) d=c.fetchall()
oi=0 for i in d:
if y in i[1]: oi=oi+i[0]
print("Total Income from Orders:",oi,"Rs")
elif t=='3':
my=input("Enter Year/Month:")
sql='select Cost,Date from Orders'
c.execute(sql) d=c.fetchall() oi=0 for i
in d: if my in i[1]: oi=oi+i[0]
print("Total Income from Orders :",oi,"Rs")
elif t=='4':
y=input("Enter D/M/Y :") sql='select Cost
from Orders where Date like %s' data=(y,)
c.execute(sql,data) d=c.fetchall()
oi=0 for i in d: oi=oi+i[0]
print("Total Income from Orders :",oi," Rs")
else:
options()

Pg. 13
def Expenditure(): choice=input("1. BILL ENTRY 2.SHOW BILLS
3.MAIN MENU:") if choice =='1': t=input("Type:")
c=int(input("Cost:")) d=input("Date : D/M/Y :") data=(t,c,d)
sql="insert into Expenditure values(%s,%s,%s)" c=con.cursor()
c.execute(sql,data)
con.commit() print("Data
Entered Succesfully") options()
elif choice =='2':
c=con.cursor() t=input("1.All 2.Year
3.Month 4.Date :") if t=='1':
sql="select *from Expenditure"
c.execute(sql) d=c.fetchall()
for i in d: print(i) elif
t=='2':
y=input("Enter Year")
sql="select *from Expenditure"
c.execute(sql) d=c.fetchall()
for i in d: if y in i[2]:
print(i) elif t=='3':
y=input("Enter : YEAR/MONTH :")
sql ="select * from Expenditure"
c.execute(sql) d=c.fetchall()
for i in d: if y in i[2]:
print(i) else: options() signin()

SCREENSHOTS OF EXECUTION

--------->>>>>>> Welcome New Indian Restaurant <<<<<<<-------

System Password :cs1234

Pg. 14
1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS

Select Option :1
1.Add 2.Remove 3.Display 4.MainMenu: 3

masala dosa - 50 - moksh - 1


puri - 20 - 2 - 3 IDLI - 50 -
Shripad - 4
Butter chicken - 150 - Rinku - 5
Masala Dosa - 50 - Ritoban - 6

1.Add 2.Remove 3.Display 4.MainMenu: 4

1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS

Select Option :2
1.Add 2.Remove 3.Display 4.Mainmenu: 3
Shripad - 2345 - 1 - 1000 - 23/07/1999 neetu
- 1567 - 1 - 1000 - 13/07/1998 Ritoban -
7895 - 1 - 2000 - 27/10/1999

1.Add 2.Remove 3.Display 4.Mainmenu: 4

1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS

Select Option :3
Shripad - 2345 - 1 - 1000 - 23/07/1999
------------------------------------------------------
neetu - 1567 - 1 - 1000 - 13/07/1998 ---------------
---------------------------------------

Pg. 15
Ritoban - 7895 - 1 - 2000 - 27/10/1999
------------------------------------------------------
Cook Name : Ritoban
Aadhar2345
SBI Account : 1233
DATE :D/M/Y : 27/10/1999
Salary :2000
Working days:5
Net Salary Paid : 322.5806451612903 Rs
------------------------------------------- 1.Salary
Menu 2.MainMenu : 4
-------------------------------------------

1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS

Select Option :4
NAME ----- COST ----- COOK ----- DISH ID
masala dosa - 50 - moksh - 1
puri - 20 - 2 - 3 IDLI - 50 -
Shripad - 4
Butter chicken - 150 - Rinku - 5
Masala Dosa - 50 - Ritoban - 6

Select Dish ID {0 when Done} :1


Date: D/M/Y :12/04/24
Customer Name:ramesh
Aadhar:1254
Enter Dish IDs:1
Total Amount : 50 Rs
Data Entered Successfuly
------------------------------------------------------------------------
1.Order Menu 2.Main Menu :2
------------------------------------------------------------------------

1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS

Select Option :5

Pg. 16
1.All 2.Year 3.Month 4.Date 5.Main Menu: 1
Total Income from Orders : 50 Rs
1.All 2.Year 3.Month 4.Date 5.Main Menu: 5

1. DISHES
2. COOKS
3. SALARY
4. ORDER
5. INCOME
6. BILLS

Select Option :6
1. BILL ENTRY 2.SHOW BILLS 3.MAIN MENU:2
1.All 2.Year 3.Month 4.Date :1 ('1',
50, '12/04/24')

Pg. 17
CONCLUSION

My project is on Restaurant Management System. I have successfully completed it. I take this
opportunity to express my gratitude towards Mrs. Nalini ma’am for giving me the opportunity
to do this project.

Pg. 18
BIBLIOGRAPHY

1. https://docs.python.org
2. www.youtube.com

3. www.scribd.com
4. My sql workbench

You might also like