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

PROJECT ON CN

The document outlines a project on a Pizza Booking System developed by students of Class XII-A, aimed at automating the pizza ordering process and managing customer data efficiently. It includes sections on project overview, software and hardware requirements, advantages and limitations, source code, output screens, and future enhancements. The project emphasizes practical experience in programming, database management, and user interface design.
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 views29 pages

PROJECT ON CN

The document outlines a project on a Pizza Booking System developed by students of Class XII-A, aimed at automating the pizza ordering process and managing customer data efficiently. It includes sections on project overview, software and hardware requirements, advantages and limitations, source code, output screens, and future enhancements. The project emphasizes practical experience in programming, database management, and user interface design.
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/ 29

PROJECT ON

Pizza booking system

Submitted by:Nived Nangelil


Sahal V Ali
Asaf Shamsudheen
Class : XII A
CERTIFICATE
CLASS: XII-A YEAR: 2024-2025

This is to certify that Investigatory Project


is successfully completed by Sahal V Ali of
Class: XII, Division: A
Roll no. :……………….. for the academic year 2024-
2025 in the School Computer lab.

Head Teacher External Examiner Internal Examiner


(Subject Teacher)

Date: / /2025

Principal
Acknowledgement

We, Nived Nangelil, Sahal V Ali, Asaf

Shamsudheen of class XIIth-A

would like to express our sincere gratitude

to our computer science teacher Arya M

Nair COMPUTER SCIENCE, for her vital

support, guidance and encouragement

without which this project would not have

come forth.We would also like to express

our gratitude to our school PRAGATI

ACADEMY for letting us use the school

laboratory.
INDEX
• Brief Overview of Project

• Need for Computerization

• Software and Hardware

requirement

• Advantages of Project

• Limitations of Project

• Source Code of Project

• Output Screens

• Future Enhancement of Project

• Bibliography
PIZZA BOOKING SYSTEM

BRIEF OVERVIEW OF PROJECT


The primary objective of the Pizza Booking
System project is to create a user-friendly
application that automates and simplifies
the process of ordering pizzas, managing
customer data, and maintaining records
efficiently. This project aims to integrate
programming, database management, and user
interface design to provide students with
practical experience in developing a real-
world application.

INPUT DATA AND VALIDATION OF PROJECT

• All the fields should be validated and does not


take invalid values.
• Each data cannot accept the blank values.
• Avoiding errors in data.
• 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. 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 has3 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.
NETWORK MODEL: In this, the data is
represented by collection of 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

ADVANTAGES
 Ease of Access.
 24/7 Availability
 Customizations
 Real-Time UpdateS
 Streamlined Ordering Process
 Efficient Record Keeping
 Reduced WorkloaD
 Quick Payment Processing
 Increased SaleS
 Customer Retention
 Data Analytics
 Programming SkillS
 Real-World ApplicatioN
 Team Collaboration.
 Problem-Solving.
LIMITS
 System Downtime
 Limited Scalability.
 Data Security Concerns.
 Complex Features
 User-Related Issues
 Learning CurveCustomization Limitations
 Payment FailuresInventory ManagemenT
 Delivery Coordination.
 Limited Testing
 Time LimitationsSimplified Features
 Dependence on Technology.
 Business Collaboration
 Scalability for Commercial Use

Source Codescreening
DBMS: MySQL
Host: local host
User: root
Pass: tiger
Database: Pizza
Table Structure: (Images Below)

PYTHON CODE
#Pizza Booking System

while True:

a1=input("Enter Password.: ")

if a1=='tiger':

print("Logging in...")

try:

import mysql.connector as msc

import datetime

import random as rd

mydb=msc.connect(host="localhost",user="root",password="tiger")

mycursor=mydb.cursor()

qry01="CREATE DATABASE IF NOT EXISTS Pizza"

mycursor.execute(qry01)

qry02="USE Pizza"

mycursor.execute(qry02)

qry03="CREATE TABLE IF NOT EXISTS CUSTOMER_DETAILS


(Order_No int primary key,Cust_Name varchar(50),Phone_No
VARCHAR(10),Email varchar(50),Address varchar(80),Item_Name
varchar(50), Quantity int(2), ModeofPayment int(2))"

mycursor.execute(qry03)

qry04="INSERT INTO CUSTOMER_DETAILS VALUES


(14854,'Adhil Kumar',767900000,'[email protected]','Shop No-2, Radha
Niwas, Mulund (east)','Margherita pizza',2,2) ON DUPLICATE KEY UPDATE
Order_No=14854"
qry05="INSERT INTO CUSTOMER_DETAILS VALUES
(25412,'Praveen S',839200000,'[email protected]','41 2nd, Sant Sena
Marg, Girgau','Double cheese Margherita pizza',1,1) ON DUPLICATE KEY
UPDATE Order_No=25412"

qry06="INSERT INTO CUSTOMER_DETAILS VALUES


(31451,'Pranav H',850900000,'[email protected]','820, G T Karnal Road,
Opp Hans Cinema, Azadpur','Fresh veggie pizza',3,2) ON DUPLICATE KEY
UPDATE Order_No=31451"

qry07="INSERT INTO CUSTOMER_DETAILS VALUES


(47412,'Anand T.S',933319999,'[email protected]','1643/34, Nai Walan,
Azadpur','Peppy paneer pizza',5,1) ON DUPLICATE KEY UPDATE
Order_No=47412"

qry08="INSERT INTO CUSTOMER_DETAILS VALUES


(57525,'Priyanka Das',933329999,'[email protected]','408, Arenja
Corner, Sector 17, Vashi','Veg extravaganza pizza',2,2) ON DUPLICATE KEY
UPDATE Order_No=57525"

qry09="INSERT INTO CUSTOMER_DETAILS VALUES


(69753,'Amar Mohan',937820000,'[email protected]','60/66, Baba Genu Rd,
Kalbadevi Rd, Kalbadevi','Cheese dominator pizza',1,1) ON DUPLICATE KEY
UPDATE Order_No=69753"

qry10="INSERT INTO CUSTOMER_DETAILS VALUES


(64451,'Rahul P',983229999,'[email protected]','1, Apollo Ind Estate, Midc,
Andheri (west)','Deluxe veggie pizza',2,2) ON DUPLICATE KEY UPDATE
Order_No=64451"

qry11="INSERT INTO CUSTOMER_DETAILS VALUES


(74521,'Tara A.S',810149999,'[email protected]','17/7b, Central Market,
Tilak Nagar','Indi tandoori pizza',4,1) ON DUPLICATE KEY UPDATE
Order_No=74521"

qry12="INSERT INTO CUSTOMER_DETAILS VALUES


(84545,'Pritam K',933259999,'[email protected]','D-5, Ishaque Ahmd Ind,
A.k.rd, Marol Naka, Andheri','Cheese in corn pizza',1,2) ON DUPLICATE KEY
UPDATE Order_No=84545"

qry13="INSERT INTO CUSTOMER_DETAILS VALUES


(94561,'Sudeesh Murali',786489999,'[email protected]','A 23, Khandsa
Road','Fresh veggie pizza',2,1) ON DUPLICATE KEY UPDATE
Order_No=94561"

mycursor.execute(qry04)
mycursor.execute(qry05)

mycursor.execute(qry06)

mycursor.execute(qry07)

mycursor.execute(qry08)

mycursor.execute(qry09)

mycursor.execute(qry10)

mycursor.execute(qry11)

mycursor.execute(qry12)

mycursor.execute(qry13)

mydb.commit()

mycursor.close()

if mydb.is_connected():

print("Succesfully connected")
#Database will be created in MySQL

def mainmenu():

print("""

---------------------------------------

| **** MAIN MENU **** |

---------------------------------------

| 1) Order Pizza |

---------------------------------------

| 2) Search Order |

---------------------------------------

| 3) Cancel Order |

---------------------------------------
| 4) Close/ Exit |

---------------------------------------

""")

#Main Menu

x=int(input("""YOUR OPTION:-"""))

if x==1:

pizza_booking()

elif x==2:

print(" ")

print(search())

elif x==3:

print(" ")

print(drop())

elif x==4:

print(" ")

print("\n"

" \n"

" ---------------------------------------------------------
------------------------------------------\n"

" THANK YOU


\n"

" ---------------------------------------------------------
------------------------------------------\n"
"\n")

print('''By\n\tNived Nangelil, Asaf Shamsudheen &


Sahal V Ali\n\tClass XII\n\tPragati Academy, Perumbavoor''')

quit()

else:

print(" ")

print("~!~!~!~WRONG CHOICE PLEASE ENTER A


VALID VALUE~!~!~!~")

return("")

def pizza_booking():

import mysql.connector

mydb=mysql.connector.connect(host='localhost',user='root',password="tiger",d
atabase='pizza')

mycursor=mydb.cursor()

mydb.autocommit=True

Cust_Name=input('Enter Name.:')

Phone_No=input('Enter Phone No.:')

PHONE_NO=str(Phone_No)

Email=input("Email :")

Add=input("Address :")

print("""

-------------------------------------------------------------------------------------------------------
----------------------

****PIZZA MENU****
-------------------------------------------------------------------------------------------------------
----------------------

1) Margherita pizza 259 | 2) Cheese in corn pizza


249

-------------------------------------------------------------------------------------------------------
----------------------

3) Cheese in tomato pizza 269 | 4) Double cheese Margherita


pizza 279

-------------------------------------------------------------------------------------------------------
----------------------

5) Fresh veggie pizza 219 | 6) Farmhouse pizza


399

-------------------------------------------------------------------------------------------------------
----------------------

7) Peppy paneer pizza 359 | 8) BBQ Chicken pizza


499

-------------------------------------------------------------------------------------------------------
----------------------

9) Veg extravaganza pizza 349 | 10) 4 Cheese pizza


379

-------------------------------------------------------------------------------------------------------
----------------------

11) Deluxe veggie pizza 249 | 12) Paneer makhani pizza


279

-------------------------------------------------------------------------------------------------------
----------------------

13) Indi tandoori pizza 349 | 14) Pepperoni pizza


399

-------------------------------------------------------------------------------------------------------
----------------------

****PLEASE CHOOSE FROM THE UPPER TABLE****

-------------------------------------------------------------------------------------------------------
----------------------
""")

#Pizza Menu

p={'Margherita pizza':259,

'Cheese in corn pizza':249,

'Cheese in tomato pizza':269,

'Double cheese Margherita pizza':279,

'Fresh veggie pizza':219,

'Farmhouse pizza':399,

'Peppy paneer pizza':359,

'BBQ Chicken pizza':499,

'Veg extravaganza pizza':349,

'4 cheez pizza':379,

'Deluxe veggie pizza':249,

'Paneer makhani pizza':279,

'Indi tandoori pizza':349,

'Pepperoni pizza':399}

I_Name=input("Pizza Name :")

Qty=int(input("Enter Quantity :"))

O_No=rd.randint(00000,99999)

MOP=int(input("Mode of Payment (For Online - 1 / For Cash on


Delivery - 2) :"))

OTP=rd.randint(000000,999999)

Price=p[I_Name]*Qty

fee=Price+30

#Insert New Customer Booking / Details in MySQL


s1="INSERT INTO CUSTOMER_DETAILS
VALUES('%s','%s','%s','%s','%s','%s',%s,%s)"%(O_No,Cust_Name,PHONE
_NO,Email,Add,I_Name,Qty,MOP)

mycursor.execute(s1)

print()

print(' ***ORDER BOOKED SUCCESSFULLY***')

print(

"Order Number :",O_No)

print(

"Name :", Cust_Name)

print(

"Phone Number :", PHONE_NO)

print(

"Email :", Email)

print(

"Address :", Add)

print(

"Item :",I_Name)

print(

"Quantity :",Qty)

if MOP==1:

print("Mode of Payment : Online Payment")

else:

print("Mode of Payment : Cash on Delivery")

print(

"Bill Amount:",fee, "(including delivery fees)")

print(
"Your One Time Password is: ", OTP)

def drop():

import mysql.connector as msc

mydb=msc.connect(host="localhost", user="root",
password="tiger")

mycursor=mydb.cursor()

mydb.autocommit=True

mycursor.execute("use pizza")

Self_Order_No=int(input("Enter Your Order Number. :"))

Self_Name=input("Enter Your Name.:")

Self_Phno=int(input("Enter You Phone no.:"))

s=input("ARE YOU SURE YOU WANT TO CANCEL THE


ORDER (YES/NO): ")

s=s.upper()

if s=='YES':

mycursor.execute('DELETE FROM customer_details WHERE


Order_No=(%s) or Cust_Name=(%s) or
Phone_No=(%s)',(Self_Order_No,Self_Name,Self_Phno,))

else:

print(" Order NOT Cancelled")


print("")

print("****YOUR ORDER IS CANCELLED****")

return("")
#Drop / Remove Data from MySQL

def search():

import mysql.connector as msc

mydb=msc.connect(host="localhost",user="root",password="tiger")

mycursor=mydb.cursor()

mydb.autocommit=True

mycursor.execute("use pizza")

My_Order=int(input("Enter Your Order Number.:"))

mycursor.execute('select * from customer_details where


Order_No=(%s)',(My_Order,))

data=mycursor.fetchall()

a=[]

for i in data:

a.append(i)

if len(a)!=1:

print('~!~!~!~!~~NO DATA FOUND~~!~!~!~!~')

else:

print(a)

mydb.commit()

return("")
#Search Data in MySQL
print(mainmenu())

except():

pass

else:

print("Password is incorrect,\nPlease enter the correct password.")

a2=str(input("Enter any alphabet to again enter password or press any


number to exit:"))

print()

if a2.isdigit():

print("Thanks for using our service.")

print('''By\n\tNived Nangelil, Asaf Shamsudheen & Sahal V


Ali\n\tClass XII\n\tPragati Academy, Perumbavoor''') #Finish

quit()
Output Screen
Future Enhancement
Social Media Login
Personalized Recommendations
Order History & Favorites
Live Order Tracking
Estimated Delivery Time
Notifications
Multiple Payment Gateways
Contactless Payments
Customer Feedback Integration
Bibliography
• http://www.google.com/
• http://en.wikipedia.org
• Computer Science with
Python by Sumitha Aurora.

You might also like