Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
23 views20 pages

Chinmayee

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)
23 views20 pages

Chinmayee

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/ 20

Medi

dium

Lend a Hand

ROTARY PRATISHTAN'S

ROTARY ENGLISH MEDIUM SCHOOL, KHED

PROJECT ON:

Food booking

SUBJECT-INFORMATION PRACTICES (065)

CLASS- XII

Academicyear -: 2024-25

SUBMITTED BY-:

CHINMAYEE RAMCHANDRA BADATYA

Exam No

GUIDED BY-:

MR.SANTOSH PATIL (PGT)


Medium s
English

Lend a Hand

ROTARY PRATISHTAN'S

ROTARY ENGLISH MEDIUM SCHOOL, KHED

CBSE New Delhi Affil.No.1130244


DEPARTMENT OF INFORMATICS PRACTICES

CERTIFICATE

This is to certify that


Miss. CHINMAYEE RAMCHANDRA BADATYA of the XII

Science Class has completed the project as prescribed by


theCBSE
Board duringtheacademic year2024-25

Teacher In charge Examiner Principal


ACKNOWLEDGEMENT:
I, CHINMAYEE RAMCHANDRA BADATYA Of class XIl,

would like to express my sinceregratitude to my

computer science teacher Mr. Santosh Patil sir,

for his vital support, guidance and

encouragement - without which this project

would not have come forth. I would also like to

express my gratitude to my school Rotary

English Medium forletting me use the school

laboratory.
INDEX

• Overview of
Brief Project

•Need for Computerisation


•Software and Hardware

requirement

•Advantages of Project

•Limitationsof Project

•Source Code of Project

•Output Screens
•Future Enhancement of Project

•Bibliography
FOOD BOOKING SYSTEM

BREF OVERVIEWOF PROJECT..

•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 detail of menu, discounts and
payments ;it also prints various reports as per
input given by the user.
INPUT DATA AND VALIDATION OF PROJECT

1. Allthe fields
such as order, payments and
discounts are validated and does not take invalid

values.

2. Each form of sales, discounts, bookings cannot


acceptthe blank values.

3.Avoiding errors in data.

4.Controlling amount of input.


SOFTWARE AND HARDWARE REQUIREMENTS

Data file handling has been effectively used in the


program.The database is a collection of interrelated
data to serve multiple applications. database
That is

programs create files of information. So we see that


files worked with the most inside the program.

DBMS:
The software required for the management of data
is called as DBMS. It has 3 models:
• Relation model
• Hierarchical model
• Network model

RELATIONAL MODEL:
It's based on the conceptof relation. Relation is the

table that consists of rows and columns.The rows of

the table are called tuple and the columns of the


table are called attribute. Numbers of rows the
table is called as cardinality. Number of columns in
the table is called as degree.

HIERARCHICAL MODEL:
In this type of model, we have multiple records for

each record. A particular record has one parent


record. No child record can exist without parent
record. In this, the records are organized in tree.
NETWORK MODEL:
the data is represented by collection of
In this,

records and relationship is represented by ink or


association.

CHARACTERISTICS OF DBMS:
• It reduces the redundancy

• Reduction of data in inconsistency


• Data sharing
• Data standardization

DIFFERENT TYPES OF FILES: -

BASED ON ACCESS:
Sequential file

•Serial file

• Random (direct access) file

BASED ON STORAGE:
•Text file
• Binary File
NEED OF COMPUTERISATION

Over the decades computers and food bookings have


developed gradually. But nobody knew that a time will
come when both these fields will complement with each
other so well that today food booking has reached new
heights by computeraided methods of design. As a result
of which, computer industry has got its new customer.
Computertechnology is making waves in the food booking
zone. Computers are a vital component of the food
booking counters. Computeraided design (CAD)programs
reduces 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

ready to go out into the field. Understanding calculations


is timeless, as is computer competency. Software,
however, shifts rapidly.
ADVANTAGES
1. It generatesthe 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.

LIMITS
1. Excel export has not been developed for bookings.
2. The transactions are executed in offline mode only.

3. Online transactions for sales, bookings, or other


data modifications are not possible.

4. Offline reports of sales, bookings, and discounts


cannot be generated due to batch mode execution.
SOURCE CODESCREENING
DBMS: MysQL
Host: local host
User: root
Passwd: root
Database: Food
Table Structure: (Image below)

nae
C MysQL

Rour hy8el
5.5 Command Line

enne62
MuSQL, nonitor,
Client

Huil, Conmn
Comnands end with
ity $erver <GPL>

Copyriyht (e) 2009, 2018, affiliate. A11 rights


Orac le and/or its reserved.

registered trademark Orac le Corporation andor its


nanesmay be tradenarks of the ir res pect ive
of
owner
Type he lp; or 'h' for he lp. Type e to clear the current input statement.

Pood:
mysql>
Fie ld
dese
Type Null Key Defau lt |Extra !
I
I
1
PRI NUIL
Pood_id
Food n ize
jntar(
varchar

rous in set 95

mysql dese Enplo yee


:
Pield Type Nul1 Keu Default Extra
I
Enp_1d PRI
intr(432 NULL
varchar(43)
33383
enp phone ! VarchrH?
rovs in set (9.06 ec>

mysql> dese Orderfood :


Field Type Keu Default Extra

Order_id ntIb,
r(17)
PRI

yarehrr17)
varcha?? NUIL
Trice B38383|

rous in set (0.05 sec)


PYTHON CODE:
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():

c_id=int(input("Enter the customer ID number :")

Lappend(e id)
name=input("Enterthe Customer Name: ")
L.append(name)
cphone=int(input("Enter customer phone number:"))
L.append(ephone)
payment=int(input("Enter payment method (l)eredit
card/(2)Debit Card:) "))
L.append(payment)
pstatus=input("Enter the payment status:")
L.append(pstatus)
email=input("Enter the email id")
L.append(email)
orderid=input("enter orderid")
L.append(orderid)
date=input("Enter the Date :")
L.append(date)
cust=(L)
sql="insert into customer
(c_id,name,cphone.payment.pstatus, email,orderid,date)
values (%s, %s,%s,9%s,%s.%s,%s,%s)"
mycursor.execute(sql,cust)
mydb.commit()
# Customer Table :-Cid(PK C_name C_phonenum
Payment._method (Cash/Credit Card) Payment_status
(Paid/Unpaid) Email Emp_id (FK) OrderF_id (FK)
date

def Employee():

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

L.append(Emp_id)
ename=input("Enter the Employee Name: ")
L.append(ename)
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)
Employee
sql="insert into

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

def Food(0:

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

L.append(Food_id)
Foodname-input("Enterthe 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)"
)
mycursor.execute(sql, Food)
mydb.commit()

#Food_id (PK Foodname Food_size price

def OrderFood():
L-0
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")

Lappend(Food _id)
Food qty-input("Enter Qty: ")
L.append(Food_qty)
Total_price=input("Enter Total_price")
L.append(Total_price)
OrderFood=(L)
sql="insert into OrderFood

(OrderF_id,C_id,Emp_ id. Food_id,Food _qty,Total


values (%s,%s,%s,%s, %s,%s)"
price )
myeursor.execute(sql.OrderFood)
mydb.commit()
#0rderF _id(PK) C_id (FK)Employee_id (FK)
Food_id (FK) Food_qty Total_price

def View():
print("Select the search eriteria :")
print("1. Employee")
print("2. Customer")
print("3. Food")

print("4. Order Food")


ch=int(input("Enter the choice l to 4:")
if ch==1:
sFint (input('enter Employee ID:")
rl=(s.)

sql="select * from Employee where Emp_id=%s"


mycursor. execute(sql,rl)
res=mycursor.fetchall()
for x in res:

print(x)

elif ch==2:
$Finput("Enter Customer Name:")
rl=(s.)
sql="select * from Customer where cname=%s"
mycursor.execute(sql.rl)

res=mycursor.fetchall()
for x in res:

print(x)

elif ch==3:

sql="select * from Food"


mycursOr.execute(sql)
resFmycursor.fetchall()
for x in res:
print(x)

elif ch==4:
SFint(input("Enter Food id ID:")
rl=(s.)
sql="select * from Foodorder where food_id=%s"
mycursor.execute(sql.rl)
resFmycursor.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(s)

def feeDeposit():
L=]
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:

userlnput = int(input("Please Select An Above Option:


")
except ValueError:
exit("nHy! That's Not A Number")
else:

print("n")
if (userInput==1):
Employee()
elif (userlnput==2):
Customer()
elif (userInput==3):
Food()
elif (userlnput==4):
OrderFood()
elif (userlnput==5):
feeDeposit()
elif (userlnput==6):

View()

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('els)
else:

print(os.system('elear)
MenuSet()
runAgn=input("nwant to run Againy/n")
print("Good Bye ... HAVE A NICE DAY")

MenuSet()
runAgain()
OUTPUT SCREEN

Python 3.7.2 Shell"

File Edit Shell Debug Options Window Help

Enter 1 : To Add Employee


Enter 2 : To Add Cutomer details
Details
eter A Foc ood Order
Eoter 5 : For feeDeposit
Enter 6 : To view Food booking
Please Select An Above Option:

Enter the Employee id : 236


Enter the Employee Name: RAVI
El enaerr male
I
Enter
enter employee phone number748483906
Enter the password watch

want to run Again Y/Ny

Enter 1: To Add Employee

Enter 2 : To Add Cutomer details


Details
Fnter A For Food 0eder
Enter 5
: For feeDeposit
Enter 6 : To view Food booking
Please Select An Above Option: 2

Enter the customer ID number : 467


Enter the Customer Name: SHUBHAM
s967800
Ene hod ()ecedit card/(2)Debit Card:) 2
Enter the payment status:PAID
Enter the email idtoywarke.245
ehter orderidewr
Enter the Date 2019-11-15

want to run Againy/ny


Good Bye .. HAVE A NICE DAY

Ln: 18 Cok 22
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 assoon as the user is gratified with
the proposal.
2. 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.

BIBLIOGRAPHY
•www.google.com
•https://xiipython.blogspot.com/p/python
projects.html

You might also like