Cs Project
Cs Project
PDFelement
TOPIC-FOOD PORTAL
SUBMITTED BY-ARADHAY
CHAUDHARY
CLASS-XII A
ROLL NO. 1216NN
UNDER THE GUIDANCE OF MRs. AMRITA
SINGH
Wondershare
PDFelement
Acknowledgement
It is with pleasure that I acknowledge my sincere
gratitude to our teacher, MRs. AMRITA
SINGH who taught and undertook the
responsibility of teaching the subject computer
science. I have been greatly benefited from his
classes.
I am especially indebted to our Honourable
Principal MR. ABHISHEK SHARMA who has
always been a source of encouragement and
support and without whose inspiration this project
would not have been a successful I would like to
place on record heartfelt thanks to him.
I also acknowledge with a deep sense of reverence,
my gratitude towards my parents, other faculty
members of the school and friends for their valuable
suggestions given to me in completing the project
SIGNATURE
Wondershare
PDFelement
CERTIFICATE
PRINCIPAL
Wondershare
PDFelement
• HARDWARES-
1. Desktop Computer
2. PC
• SOFTWARES-
1. Python (latest version)
2. MySQL
3. Python Connector Modules
Wondershare
PDFelement
INTRODUCTION
Welcome to food portal
In the hustle and bustle of our daily lives, finding a quick
and delicious meal can be a challenge. But fear not, for
we present to you the Food Portal – a digital haven for
all your culinary cravings! Whether you're an admin
looking to manage the portal with precision or a hungry
soul ready to explore a world of delectable options, our
portal had made sure that you are covered.
Admin Access: Unlock the Power
The gateway to culinary control lies in the hands of the
admin. Armed with a secure password, the admin block
opens up a realm of possibilities for managing the Food
Portal with finesse. From overseeing orders to updating
the menu, the admin has the key to culinary command.
Ordering Bliss: Explore and Indulge
For the food enthusiasts who crave a delightful dining
experience, the Food Portal offers an extensive array of
culinary delights. Browse through a tempting menu
showcasing a variety of dishes, each with its own unique
flavour profile. With just a few clicks, you can place your
order and tantalize your taste buds with the finest
cuisines.
Wondershare
PDFelement
Our MISSION
Our mission is to create a vibrant and interconnected food
community, fostering a love for diverse cuisines and
culinary experiences. Whether you're a food enthusiast
looking for your next dining adventure or a restaurant
seeking to expand your reach, our project FOOD
PORTAL is the go-to platform for all things food-related.
Join us on this exciting journey as we redefine the way
people discover, share, and savoir the world of food
through our project FOOD PORTAL.
Feel free to customize this introduction to better fit the
specific features and goals of your food portal project.
Wondershare
PDFelement
PYTHON SOURCE
CODE
Wondershare
PDFelement
d=pro.connect(host="localhost",user="root",password="
admin",database="food") e=d.cursor()
ser=int(input("Enter the Food ID:")) fi=input("Enter
the Food name:") fp=int(input("Enter the Price of
Food:")) ft=input("Enter the Food Type:")
e.execute("insert into item values
({},'{}',{},'{}')".format(ser,fi,fp,ft))
print("NEW FOOD ADDED SUCCESSFULLY")
d.commit()
d=pro.connect(host="localhost",user="root",password="
admin",database="food") e=d.cursor()
fidd=int(input("Enter the Food ID you want to delete
:"))
e.execute("delete from item where S_no={}".format(fidd))
print("YOU HAVE DELETED A FOOD ITEM
SUCCESSFULLY")
d.commit()
d=pro.connect(host="localhost",user="root",password="
admin",database="food") e=d.cursor() fgg=("select
* from orders") print("Details of all orders are:")
e.execute(fgg)
rtt=e.fetchall() for
i in rtt:
print("********************************************
*********")
print("Food name:",i[0])
print("Food price:",i[1])
Wondershare
PDFelement
print("Total price:",i[2])
print("Phone NO:",i[3])
print("Address:",i[4])
print("********************************************
**********")
add_food()
elif ask==2:
update_food()
elif ask==3:
delete_food()
elif ask==4:
view_orders()
elif ask==5:
Wondershare
PDFelement
return
# PASSWORD FOR ADMIN TO LOGIN
def ad_panel():
pas=input("Enter Password :")
if pas=='Zomato':
print("Access granted")
ad_login() else:
print("Wrong Password") print("You have been
REdirected to the Main Page") admin()
#HISTORY
def F_View():
yno=int(input("Enter your phone NO:")) a=("select
* from orders where P_no={}").format(yno)
e.execute(a) rt=e.fetchall() if len(rt)>0: for i in
rt:
print("Your recent orders are:")
print("**********YOUR ORDER DETAILS ARE
SHOWN BELOW**********")
print("Food name:",i[0])
print("Food price:",i[1])
print("Total price:",i[2])
print("Phone NO:",i[3])
print("Address:",i[4]) else:
print("YOU HAVE NOT PLACED ANY ORDER")
d.commit()
SUCCESSFULLY")
print("You have been Redirected to the MAIN PAGE")
d.commit()
# HOME PAGE
def admin():
while True:
print("********************************************
**") print("WELCOME TO FOOD
PORTAL")
print("1. Admin Login")
print("2. Customer Login")
print("3. EXIT")
Wondershare
PDFelement
MySQL Database
Wondershare
PDFelement
Feedback Table:
Wondershare
PDFelement
OUTPUTS
Wondershare
PDFelement
FEEDBACK OF CUSTOMER:
Wondershare
PDFelement
REFERENCES
• Wikipedia
https://www.wikipedia.org/
• Python https://www.python.org/
• MySQL
https://www.mysql.com/