You are on page 1of 12

PROJECT REPORT ON

FOOD ORDER PROCESSING MANAGEMENT

ROLL NO :

NAME :

CLASS :

SUBJECT : COMPUTER SCIENCE

SUB CODE : 083

PROJECT GUIDE: Mr. ASHUTOSH TRIPATHI

PGT (CS)

DR.KIRAN SAUJIYA SR. SEC. SCHOOL

MAINPURI

1
ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any 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 gratefully acknowledge the contribution of the individuals who contributed in


bringing this project up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary The Principal,


DR.KIRAN SAUJIYA SR. SEC. SCHOOL who has been continuously
motivating and extending their helping hand to us.

I express my sincere thanks to the academician The Vice Principal, Sainik


School Amaravathinagar, for constant encouragement and the guidance provided
during this project

I am overwhelmed to express my thanks to The Administrative Officer for


providing me an infrastructure and moral support while carrying out this project in the
school.

My sincere thanks to Mr.Ashutosh Tripathi, Master In-charge, 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.

2
PROJECT ON FOOD ORDER PROCESSING MANAGEMENT

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 .

OBJECTIVES OF THE PROJECT

The objective of this project is to let the students apply the programming

knowledge into a real- world situation/problem and exposed the students how

programming skills helps in developing a good software.

1. Write programs utilizing modern software tools.

2. Apply object oriented programming principles effectively when developing

small to medium sized projects.

3. Write effective procedural code to solve small to medium sized problems.

4. Students will demonstrate a breadth of knowledge in computer science, as

exemplified in the areas of systems, theory and software development.

5. Students will demonstrate ability to conduct a research or applied Computer

Science project, requiring writing and presentation skills which exemplify

scholarly style in computer science.

3
FLOW CHART

start

Print

TO CREATE ACCOUNT:1

TO LOGIN:2

TO EXIT:3

ENTER YOUR CHOICE=

Input=enter your choice


false

If choice=1 If choice =2

If Choice=3 yes

Print
Enter name
Enter name
Thank you for Enter password
Enter account no
Visiting Enter accont no
Enter password

Sorry

ERROR
TRUE
ERROR

4
Welcome to your food service

To update press 1

To see cust details 2

To see ordered food 3

To exit press 4

C2=3 C2=2

Fetch all from myc

C2=4
Fetch all from sales

Enter name

Enter account no

Print visit again Enter password

Enter address

Stop

5
SOURCE CODE (main food program.py)

import mysql.connector as sql

conn=sql.connect(host="localhost", user="root",

passwd="manager", 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:"))

v_address=input("enter your address:")

6
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(' ')

7
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:"))

8
c1=conn.cursor()

#c1.execute('create table

myc('"+v_cust_name+"',"+str(v_account_no)+")"

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')

9
OUTPUT

10
11
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python

***

12

You might also like