Food Booking System
Food Booking System
vidyalaya bhilwara
Project title:-
title: food booking system
Prepared by:-
by: Rachna Regar and Anshika Salvi
Class:-12thscience
Guided
uided by:-Mr.
Mr. yogesh nama
CERTIFICATE
CLASS: XII-A YEAR: 2024-25
Sign. of Principal
Acknowledgement:
Need of computerization
Advantages
Limits
Python code
Output screen
FOOD BOOKING SYSTEM
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 CODE SCREENING
DBMS: MySQL
Host: local host
User: root
Passwd: root
Database: Food
Table Structure: (Image
Image below)
PYTHON CODE:
import mysql.connector
import platform
import os
if ch == 1:
s = int(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:
s = input("Enter Customer Name: ")
rl = (s,)
sql = "SELECT * FROM Customer WHERE name=%s"
mycursor.execute(sql, rl)
res = mycursor.fetchall()
for x in res:
print(x)
elif ch == 3:
sql = "SELECT * FROM Food"
mycursor.execute(sql)
res = mycursor.fetchall()
for x in res:
print(x)
elif ch == 4:
s = int(input("Enter Food Order ID: "))
rl = (s,)
sql = "SELECT * FROM OrderFood WHERE
OrderF_id=%s"
mycursor.execute(sql, rl)
res = mycursor.fetchall()
for x in res:
print(x)
mydb.close()
try:
userInput = int(input("Please Select An Option (1 to 6): "))
except ValueError:
print("That's Not A Number!")
return
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()
else:
print("Enter correct choice...")