JAIRAM PUBLIC SCHOOL (SENIOR SECONDARY)SALEM.
ACADEMIC YEAR: 2022-2023
A PROJECT REPORT ON
“TITLE”
SUBMITTED BY
ROLL NO :
NAME :
CLASS : XII
SUBJECT : COMPUTER SCIENCE
SUB CODE : 083
PROJECT GUIDE: Mr. M.VISWANATHAN
PGT (COMPUTER SCIENCE)
DEPARTMENT OF COMPUTER SCIENCE
JAIRAM PUBLIC SCHOOL
SALEM.
1
JAIRAM PUBLIC SCHOOL SALEM
CERTIFICATE
This is to certify that Cadet (NAME OF THE STUDENT) Roll No:
_______________________has successfully completed the project work entitled
“FOOD ORDER PROCESSING SYSTEM” in the subject Computer Science (083)
laid down in the regulations of CBSE for the purpose of Practical Examination in Class
XII to be held in Jairam Public School on ___________________.
INTERNAL GUIDE PRINCIPAL
INTERNAL EXAMINER EXTERNAL EXAMINER
2
ACKNOWLEDGEMENT
Apart from the efforts for me, the success of my project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of this
project.
I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.
I express my heartfelt gratitude to my parents for constant encouragement while
carrying out this project.
I express my sincere gratitude to our honorable Principal Mr. I. PAUL FRANCIS
XAVIER, Jairam Public School who has been continuously motivating and extending
their helping hand to us.
I express my sincere thanks to our CO-ORDINATORS, Jairam Public School
Salem, for constant encouragement and the guidance provided during this project.
My sincere thanks to Mr. M.VISWANATHAN, A guide, Mentor all the above a
friend, who critically reviewed my project and helped in solving each and every problem,
occurred during implementation of the project.
The guidance and support received from all the members who contributed and who
are contributing to this project, was vital for the success of the project. I am grateful for
their constant support and help.
3
CONTENTS
ABSTRACT
1. INTRODUCTION …………………………………… 6
2. SYSTEM REQUIREMENTS ……………………………. 7
2.1 Hardware Requirements
2.2 Software Requirements
3. WORKING DESCRIPTION ……………………………. 8
4. SOURCE CODE …………………………………………... 9
5. OUTPUT …………………………………………………. 13
6. CONCLUSION …………………………………………… 15
7. BIBLIOGRAPHY ……………………………………. 16
4
FOOD ORDER PROCESSING SYSTEM
ABSTRACT:
The Food Order Processing Management is very useful in ordering food and
keeping the record of ordered food as well as the record of the customer of your service.
It helps the customer also to keep check on their own account.
5
INTRODUCTION
1. INTRODUCTION
The Food Order Processing Management is very useful in ordering food and
keeping the record of ordered food as well as the record of the customer of your
service. It helps the customer also to keep check on their own account.
6
SYSTEM REQUIREMENTS
2. HARDWARE AND SOFTWARE REQUIREMENTS
2.1 HARDWARE REQUIREMENTS
PROCESSOR : Intel(R) Pentium(R) CPU G4400.
MOTHERBOARD : H110M-S2-CF
RAM : 4.00 GB
HARD DISK : 250 GB
MONITOR
KEYBOARD AND MOUSE
PRINTER
2.2 SOFTWARE REQUIREMENTS
OPERATING SYSTEM : Windows10
FRONT-END : Python 3.9
BACK-END : My SQL
7
WORKING DESCRIPTION
This program is designed to keep the FOOD ORDER PROCESSING SYSTEM.
This program consists of FOUR options as follows
1. Create Your Account
2. Order Food
3. Login
4. Exit
8
SOURCE CODE
food.py
import mysql.connector
conn = mysql.connector.connect(host="localhost", user="root", passwd="",
database="food")
if conn.is_connected():
print("sucessfully connected")
print(" ORDER YOUR FOOD HERE")
c1=conn.cursor()
print("1.CREATE YOUR ACCOUNT")
print("2.ORDER FOOD")
print("3.LOG IN")
print("4.EXIT")
choice=int(input("enter your choice:"))
if choice ==1:
v_cust_name=input("enter your name:")
v_account_no=int(input("enter your own account number:"))
v_SQL_insert="insert into myc values('"+v_cust_name+"',"+str(v_account_no)+")"
c1.execute(v_SQL_insert)
conn.commit()
print("account created")
if choice==2:
v_f_name=input("enter the name of food:")
v_price=int(input("enter the cost of your food:"))
9
v_address=input("enter your address:")
v_SQL_insert="insert into sales values('"+
v_f_name+"',"+str(v_price)+",'"+v_address+"')"
c1.execute(v_SQL_insert)
conn.commit()
print("sucessfully phased")
if choice==4:
print("THANK YOU FOR VISITING")
if choice==3:
print('')
print('TO LOGIN FILL THIS DETAILS')
print('')
cust_name=input('enter your name')
print('')
v_account_no=int(input('enter your accont no'))
c1=conn.cursor()
c1.execute('select * from myc')
data=c1.fetchall()
count=c1.rowcount
for row in data:
if (cust_name in row) and (v_account_no in row):
print(' ')
print(' ')
print('WELCOME TO YOUR FOOD SERVICE')
print(' ')
print(' ')
10
print('TO SEE CUSTMER DETAILS PRESS :1 ')
print(' ')
print(' TO UPDATE DETAILS PRESS :2 ')
print(' ')
print(' TO EXIT PRESS :3')
print(' ')
print('TO SEE ORDERED FOOD:4 ')
print(' ')
c2=int(input('enter your choice'))
if (c2==1):
c1=conn.cursor()
c1.execute('select * from myc')
data=c1.fetchall()
count=c1.rowcount
print('total custmer is',count)
for row in data:
print(row)
print("VISIT AGAIN")
elif (c2==2):
print('')
print('TO UPDATE FILL THIS')
print('')
v_cust_name=input('enter name :')
print('')
v_acount_no=int(input("enter account number:"))
c1=conn.cursor()
#c1.execute('create table myc('"+v_cust_name+"',"+str(v_account_no)+")"
11
update_dtails="insert into myc
values('"+v_cust_name+"',"+str(v_account_no)+")"
c1.execute(update_dtails)
conn.commit()
print('costumer details succesully updated')
elif (c2==3):
print('THANK YOU FOR VISITING')
elif(c2==4):
c1=conn.cursor()
c1.execute('select * from sales')
data=c1.fetchall()
count=c1.rowcount
print('total order food is',count)
for row in data:
print(row)
print("VISIT AGAIN")
else:
print('SORRY SOMETHING WENT WRONG')
12
OUTPUT
13
14
CONCLUSION
Hence, the project is successfully tested and executed.
15
BIBLIOGRAPHY
1. Computer science With Python - Class XII By : SumitaArora
2. Website: https://www.w3schools.com
16