0% found this document useful (0 votes)
17 views31 pages

Project of Computer

Uploaded by

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

Project of Computer

Uploaded by

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

BUXI JAGABANDHU ENGLISH MEDIUM SCHOOL-II

COMPUTER SCIENCE PROJECT


ON
“FOOD BOOKING SYSTEM “
FOR
ALL INDIA SENIOR SCHOOL CERTIFICATE
EXAMINATION 2024-2025
BY
NAME: ASIMANANDA MOHAPATRA
ROLL NO:
CLASS: XII
UNDER THE GUIDANCE OF
MR ANSUMAN SWAIN
P.G.T COMPUTER SCIENCE

1
BIODATA

i. NAME: ASIMANANDA MOHAPATRA

ii. DATE OF BIRTH :05.07.2007

iii. CLASS: XII

iv. ROLL NO:

v. SUBJECT: COMPUTER SCIENCE

vi. TEACHER: ANSUMAN SWAIN

vii. SCHOOL: BUXI JAGABANDHU ENGLISH

MEDIUM SCHOOL- II

viii. EXAMINATION: All India Senior School

Certificate Examination

ix. ACADEMIC YEAR: 2024-2025

x. PROJECT TOPIC: FOOD BOOKING SYSTEM

2
ACKNOWLEDGEMENT

Being a student of class XII, I undertook a


computer
science project for the fulfillment of examination
of
computer practical. I choose FOOD BOOKING
SYSTEM

In spite of time constraints and other hindrances,


I
was and thanks able to complete the project on
time.
I express my deep gratitude and thanks to my
teacher
of computer science, Mr. Ansuman Swain and my
parents for their inspiration, guidance and keen
interest in this piece of work.

3
DECLAIRATION
I “ Asimananda Mohapatra ” of class –XII, bearing
roll
no. of Buxi Jagabandhu English
Medium
School-II, Satyabhamapur. I am submitting this
copy of computer science project as evidence of
my
work in computer laboratory.

NAME:ASIMANANDA MOHAPATRA

CLASS: XII

ROLL NO:

SCHOOL: BUXI JAGABANDHU ENGLISH MEDIUM

SCHOOL-II

4
5
BONAFIDE CERTIFICATE
THIS IS TO CERTIFY THAT (Asimananda Mohapatra)

OF CLASS – XII HAS SUCCESSFULLY PREPARED THE

PROJECT ON “FOOD BOOKING SYSTEM ” FOR

AISSCE UNDER THE GUIDANCE OF MR. ANSUMAN

SWAIN IN THE COMPUTER SCIENCE DEPARTMENT

OF BUXI JAGABANDHU ENGLISH MEDIUM SCHOOL-

II ,SATYABHAMAPUR FOR THE ACADEMIC SESSION

2024-2025.

SIGN OF THE EXAMINER MR ANSUMAN SWAIN

P.G.T COMPUTER

SCIENCE

BJEMS-SATYABHAMAPUR

6
INDEX

SL NO. TOPIC PG NO.

1 INTRODUCTION 7

2 SOURCE CODE IN PYTHON 13

3 OUTPUT SCREEN 26

4 MySQL TABLE 28

5 BIBLIOGRAPHY 29

7
INTRODUCTION
The main objective of the python project on Food

ordering is to manage the details of booking,

menu payments, and order.

The project is totally built at administrative end

and only administrator is guaranteed the access.

The purpose of the project is to build an

application program to reduce the manual work

for managing the booking, discounts ,and

payments.

It tracks all the details about menu, discount ,

and payments; it also prints various reports as

per input given by the user

8
DATABASE MANAGEMENT

SYSTEM

The software required for management of data is


called DBMS. I t has three models. Relation
model: It stores information in form of rows
[cardinality] and columns [degree].

Hierarchical model: In this type of model, we


have multiple records inside a single record.

Network model: In this, the data is represented


by collections of Record and relationships is
separated by associations.

Characteristics of DBMS: -
 It reduces the redundancy
 Data sharing
 Data standardization
 Reduction of data inconsistency

9
Types of files based on access: -
 Sequential file
 Serial file
 Random file
 Test file
 Binary file

10
Software And Hardware

Requirement

Software Specification: -

 Operating system: Windows 11

 Platform: Python IDLE 3.11

 Database: MySQL

 Language: Python

Hardware Specification: -

 Processor: Dual core or above

 Hard Disk: 250 GB

 RAM: 8GB

11
Need of computerization

Over the decades computers and food bookings


have developed gradually, changed with time.
But nobody knew that a time will come when
both these fields will complement each other so
well. Today food booking has reached new
heights by computer aided methods of design. As
a result of which, computer industry has got its
new customer. Computer technology is making
waves in the food booking zone. Computers are a
vital component of the food booking counters.
Computer aided design (CAD) programs reduce
the demand for manual sketches. New software
programs continue to replace old manual skills.
Those who lag in math can now breathe a little
easier. Manually figuring of food insists that
knowledge. Software programs constantly evolve.
A program used today may be obsolete within
several years. Being trained on today's software
does not guarantee it will be used when you are

12
ready to go out into the field. Understanding
calculations is timeless, as is computer
competency. Software, however, shifts rapidly.

Advantages of Project: -

1.It generates the report on sales, discounts


and menu.
2.Provides filter report on payments and food
booking.
3.We can easily export PDF on sales, products
and stocks
4.Applications can also provide excel export for
bookings and discounts.
5.It deals with monitoring the information and
transaction of food bookings.
6.It increases the efficiency of food booking
and discount.
7.It has higher efficiency of editing, adding and
updating of records
8.Provides the searching facilities on various
factors.

13
Source Code in Python
import os
import platform
import MySQL. Connector
import pandas as pd

mydb=mysql.connector.connect(host="localhost"
,\
user="root",\
passwd ="root",\

database="food")
mycursor=mydb.cursor()
def Customer():
L=[]
c_id=int(input("Enter the customer ID number :
"))
L.append(c_id)
name=input("Enter the Customer Name: ")

L.append(name)

14
phone=int(input("Enter customer phone
number :"))

L.append(phone)

payment=int(input("Enter payment method


((1)credit card/(2)Debit Card:) "))

L.append(payment)

status=input("Enter the payment status : ")

L.append(status)

email=input("Enter the email id")

sql="insert into customer “

(c_id,name,cphone,payment,pstatus,email,orderi
d,date) values (%s,%s,%s,%s,%s,%s,%s,%s)"

mydb.commit()

# Customer Table :- C_id (PK C_name


C_phonenum Payment_method (Cash/Credit
Card) Payment_status (Paid/Unpaid) Email
Emp_id (FK) OrderF_id (FK)date

def Employee():

L=[]

15
Emp_id=int(input("Enter the Employee id : "))

L.append(Emp_id)

name=input("Enter the Employee Name: ")

L.append(name)

emp_g=input("Enter Employee Genderr : "

L.append(emp_g)

eage=int(input("Enter Employee age"))

L.append(eage)

emp_phone=int(input("enter employee
phone

number”)

L.append(emp_phone)

pwd=input("Enter the password : ")

L.append(pwd)

EMP=(L)

sql="insert into Employee

16
(Emp_id,ename,emp_g,eage,emp_phone,pwd
) values (%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,EMP)

mydb.commit()

def food():

L=[]

Food_id=int(input("Enter the Food id : "))

L.append(Food_id)

Foodname=input("Enter the Food Name: ")

L.append(Foodname)

Food_size=input("Enter Food size : ")

L.append(Food_size)

prize=int(input("Enter Prize of Food"))

L.append(prize)

Food=(L)

sql="insert into Food


(Food_id,Foodname,Food_size,prize ) values
(%s,%s,%s,%s)")

17
mycursor.execute(sql,Food)

mydb.commit()

#Food_id (PK FoodnameFood_size price)

def OrderFood():

L=[]

OrderF_id=int(input("Enter the Food Order


id : "))

L.append(OrderF_id)

C_id=input("Enter the Customer id : ")

L.append(C_id) Emp_id=input("Enter
Employee id: ")

L.append(Emp_id)

Food_id=int(input("Enter Food id"))

L.append(Food_id)

Food_qty=input("Enter Qty: ")

L.append(Food_qty)

Total_price=input("Enter Total_price")

L.append(Total_price)

18
OrderFood=(L)

sql="insert into OrderFood

(OrderF_id,C_id,Emp_id,Food_id,Food_qty,Tota
l_price ) values (%s,%s,%s,%s,%s,%s)"

mycursor.execute(sql,OrderFood)

def food:

L=[]

Food_id=int(input("Enter the Food id : "))

L.append(Food_id)

Foodname=input("Enter the Food Name: ")

L.append(Foodname)

Food_size=input("Enter Food size : ")

L.append(Food_size)

prize=int(input("Enter Prize of Food"))

L.append(prize)

Food=(L)
sql="insert into Food (Food_id,Foodname,Food_size,prize )
values (%s,%s,%s,%s)"

19
mycursor.execute(sql,Food)

mydb.commit()

#Food_id (PK FoodnameFood_size price)

Def OrderFood():

L=[]

OrderF_id=int(input("Enter the Food Order


id : "))

L.append(OrderF_id)

C_id=input("Enter the Customer id : ")

L.append(C_id)

Emp_id=input("Enter Employee id: ")

L.append(Emp_id)

Food_id=int(input("Enter Food id"))

L.append(Food_id)

Food_qty=input("Enter Qty: ")

L.append(Food_qty)

Total_price=input("Enter Total_price")

L.append(Total_price)

20
OrderFood=(L)

sql="insert into OrderFood


(OrderF_id,C_id,Emp_id,Food_id,Food_qty,Total_pri
ce ) values (%s,%s,%s,%s,%s,%s)"

mycursor.execute(sql,OrderFood)

mydb.commit()

#OrderF_id (PK) C_id (FK) Employee_id (FK)


Food_id (FK) Food_qty Total_price

def View():

print("Select the search criteria : ")

print("1. Employee")

print("2. Customer")

print("3. Food")

print("4. Order Food")

ch=int(input("Enter the choice 1 to 4 : "))

if ch==1:

s=int(input("enter Employee ID:"))

rl=(s,)

21
sql="select * from Employee where
Emp_id=%s?/

" mycursor.execute(sql,rl)

res=mycursor.fetchall()

or x in res:

print(x)

elif ch==2:

s=input("Enter Customer Name : ")

rl=(s,)

sql="select * from Customer where cname=


%s"

mycursor.execute(sql,rl)

for x in res:

print(x)

elif ch==3:

sql="select * from Food"

mycursor.execute(sql)

22
res=mycursor.fetchall()

for x in res:

print(x)

elif ch==4:

s=int(input("Enter Food id : "))

rl=(s,)

sql="select * from Foodorder where food_id=


%s"

mycursor.execute(sql,rl)

res=mycursor.fetchall()

for x in res:

print(x)

#print("The Food details are as follows : ")

#print("(Custoemer ID, Food Name, quatity,


Cost )")

#for x in res: #print(x)

def feeDeposit():

L=[]

23
roll=int(input("Enter the roll number : "))

L.append(roll)

feedeposit=int(input("Enter the Fee to be


deposited : "))

L.append(feedeposit) month=input("Enter
month of fee : ")

L.append(month) fee=(L)

sql="insert into fee (roll,feedeposit,month)


values (%s,%s,%s)"
mycursor.execute(sql,fee) mydb.commit()

def MenuSet():

print("Enter 1 : To Add Employee")

print("Enter 2 : To Add Cutomer details")

print("Enter 3 : To Add Food Details ")

print("Enter 4 : For Food Order")

print(“Enter 5 : For feeDeposit”)

print("Enter 6 : To view Food booking")

try:

24
userInput = int(input("Please Select An
Above Option: "))

except ValueError:

exit("\nHy! That's Not A Number")

else:

print(“\n”)

if (userInput==1):

Employee()

elif (userInput==2):

Customer()

elif (userInput==3):

Food()
elif (userInput==4):

OrderFood()

elif (userInput==5):

feeDeposit()

elif (userInput==6):

View()

25
else:

print("Enter correct choice. . . ")

def runAgain():

runAgn=input("\nwant to run Again Y/N")

while runAgn.lower()=='y':

if(platform.system()=="Windows"):

print(os.system('cls'))

else:

print(os.system('clear'))

MenuSet()

runAgn=input("\nwant to run Againy/n")

print("Good Bye ... HAVE A NICE DAY")

MenuSet()

runAgain()

26
27
OUTPUT SCREEN

28
FUTURE ENHANCEMENTS

1.The solutions are given as a proposal. The

suggestion is revised on user request and

optimal changes are made. This loop

terminates as soon as the user is gratified

with the proposal .

2.So on the whole, system analysis is done to

improve the system performance by

monitoring it and obtaining the best

throughput possible from it. Therefore

system analysis plays a crucial role in

designing any system.

29
30
BIBLIOGRAPHY
1. http://www.google.com/

2. http://en.wikipedia.org

3. Computer science with python

by Sumita Arora

31

You might also like