0% found this document useful (0 votes)
605 views17 pages

Food Booking Managment System Re-Edited

This document appears to be a student project on a food booking system. It includes an acknowledgement, index, and sections on the introduction, need for computerization, software/hardware requirements, advantages/limitations of the project, source code, and future enhancements. The source code section outlines Python code and MySQL tables to manage customer, employee, food, and order data for the food booking system.
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)
605 views17 pages

Food Booking Managment System Re-Edited

This document appears to be a student project on a food booking system. It includes an acknowledgement, index, and sections on the introduction, need for computerization, software/hardware requirements, advantages/limitations of the project, source code, and future enhancements. The source code section outlines Python code and MySQL tables to manage customer, employee, food, and order data for the food booking system.
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/ 17

MGM RESIDENTIAL PUBLIC SCHOOL

KOTTARAKARA.

COMPUTER SCIENCE
PROJECT
2023-24

FOOD BOOKING SYSTEM

NAME: ROHIT D MANGALASSERY


CLASS: XII-B
Acknowledgement

This is to certify that ROHIT D MANGALASSERY Reg no:


has successfully completed the project work entitled FOOD
BOOKING SYSTEM in the subject Computer Science laid down in
the regulations of CBSE for the purpose of Practical Examination in
Class XII to be held in MGM RESIDENTIAL PUBLIC SCHOOL
KOTTARAKARA on .

Signature of Signature of Signature of


TEACHER IN CHARGE PRINCIPAL EXTERNAL EXAMINER
INDEX

Sr. No Particular Page No.


1 Introduction
2 Need of computerization
3 Software and hardware requirement
4 Advantages of project
5 Limitations of project
6 Source code of project
7 Output screening
8 Future enhancement of project
9 Bibliography
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.
Data file handling has been effectively used in the program.
The database is a collection of interrelated data to serve multiple
applications. That is database programs create files of information. So
we see that files are worked with 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 concept on 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 in 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 chide record can exist without parent record. In this, the records
are organized in tree (like structure
NETWORK MODEL:- In this, the data is represented by collection of
records and relationship is represented by (ink or association.
CHARACTERISTICS OF DB MS: -
• It reduces the redundancy
• Reduction of data ininconsistency
• 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 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 ready to go out into the field. Understanding calculations is
timeless, as is computer competency. Software, however, shifts rapidly.
Software & Hardware
Requirements

SOFTWARE SPECIFICATION: -
Operating System: Windows 7
Platform: Python IDLE 3.7
Database: MySQL
Language: Python

HARDWARE SPECIFICATION: -

Processor: Dual Core & Above


Hard Disk: 40GB
RAM: 1024MB

Note: For Python-MySQL connectivity, following data have been


used:-
Host- localhost, user- root, password- root, database- school
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.
Limitations Of Project

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 Code Of Project
DBMS: MySQL
Host: local host
User: root
Passwd: root
Database: Food
Table Structure: (Image below)

MY SQL:
PYTHON CODE:
import os
import platform
import mysql.connector
import pandas as pd
mydb=mysql.connector.connect(host="localhost",\
user="root",\
passwd ="486486",\
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(c_name)
cphone=input("Enter customer phone number : ")
L.append(cphone)
payment=int(input("Enter payment method (credit card/Debit Card: "))
L.append(payment)
pstatus=input("Enter the payment status : ")
L.append(pstatus)
email=input("Enter the email id")
L.append(email)
empid=input("Enter employee id")
L.append(empid)
orderid=input("enter orderid")
L.append(orderid)
date=input("Enter the Date : ")
L.append(date)
cust=(L)
sql="insert into customer
(c_id,c_name,cphone,payment,pstatus,email,empid,orderid,date) values
(%s,%s,%s,%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,cust)
mydb.commit()
# Customer Table :- C_id (PK C_name C_phonenum Payment_method (Cash/Credit Card)
Payment_status (Paid/Unpaid) Email Emp_id (FK) Order
''' '''

def Employee():
L=[]
Emp_id=int(input("Enter the Employee id : "))
L.append(Emp_id)
ename=input("Enter the Employee Name: ")
L.append(e_name)
emp_g=input("Enter Employee Genderr : ")
L.append(emp_g))
eage=int(input("Enter Employee age"))
L.append(eage)

emp_phone=input("enter employee phone number")


L.append(emp_phone)
pwd=input("Enter the password : ")
L.append(pwd)
EMP=(L)
sql="insert into employee (Emp_id,E_name,eage,emp_phone,pwd) values
(%s,%s,%s,%s,%s)"
mycursor.execute(sql,EMP)
mydb.commit()

#Emp_id (PK) E_name Emp_g e_age Emp_phone pwd

'''
'''

def Food():
L=[]
Food_id=int(input("Enter the Food id : "))
L.append(Food_id)
Foodname=input("Enter the Food Name: ")
L.append(Food_name)
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,price ) values (%s,%s,%s,%s)"
mycursor.execute(sql,Food)
mydb.commit()

#Food_id (PK Foodname Food_size price


(Describe price of each food)
''' '''

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)
OrderFood=(L)
sql="insert into OrderFood (OrderF_id,C_id,Employee_id,Food_id,Food_qty,Total_price
) values (%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,Food)
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,)
sql="select * from EMP where emp_id=%s"
mycursor.execute(sql,rl)
elif ch==2:
s=input("Enter Customer Name : ")
rl=(s,)
sql="select * from Customer where cname=%s"
mycursor.execute(sql,rl)
elif ch==3:
sql="select * from Food"
mycursor.execute(sql)
res=mycursor.fetchall()
elif ch=4:
s=int(input("Enter Food id ID : "))
rl=(s,)
sql="select * from Foodorder where food_id=%s"
mycursor.execute(sql,rl)
print("The Food details are as follows : ")
print("(Custoemer ID, Food Name, quatity, Cost, Date )")
for x in res:
print(x)

'''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 FoodPurchase():
print("Please enter the details to Food items :")
sql="select * from Food"
mycursor.execute(sql)
res=mycursor.fetchall()
print("The Customer details are as follows : ")
print("(Custoemer ID, Food Name, quatity, Cost, Date )")
for x in res:
print(x)
c1=int(input("Enter the Food items to be Booked : "))
L=[];
L.append(c1)
sql="Select * from Food"
rl=(c1,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
for x in res:
print(x)

'''
'''

def MenuSet(): #Function Food Booking System


print("Enter 1 : To Add Employee")
print("Enter 2 : To Cutomer details")
print("Enter 3 : To Food Details ")
print("Enter 4 : For Food Order")
print("Enter 5 : To view Food booking")

try:
#Using Exceptions For Validation
userInput = int(input("Please Select An Above Option: ")) #Will Take Input From
User
except ValueError:
exit("\nHy! That's Not A Number") #Error Message
else:
print("\n") #Print New Line
if(userInput == 1):
Employee()
elif (userInput==2):
Customer()
elif (userPurchase==3):
Food()
elif (userInput==4):
OrderFood()
elif (userInput==5)
View()

else:
print("Enter correct choice. . . ")

MenuSet()
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")
runAgain()
Output Screening
Future Enhancement Of Project

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.

3. Artificial intelligence (AI) and machine learning


algorithms are transforming food delivery apps by
offering personalized recommendations based on
user preferences, ordering patterns, and previous
interactions. These technologies enhance the user
experience and increase customer satisfaction
Bibliography

1. Computer science with Python- Class XI by: Sumita Arora

2.Website:https://www.w3resource.comhttps://en.wikipedia
.org/wiki/E_(mathematical_constant

You might also like