Food Project
Food Project
COMPUTER SCIENCE
(083)
ON
Submitted By-
Name: Hemant Kumar
Class: XII
Roll No.:
INDEX
● Certificate
● Acknowledgment
● Introduction
● Hardware and Software Requirements
● Code Implementation
● Outputs
● Bibliography
CERTIFICATE
This is to certify that (Insert your name), of class
XII of The Rajdhani Public School, Vikas Nagar,
has completed his project “Project Name” under my
supervision. He showed utmost sincerity in
completion of his project.
I certify that this project is up to my expectations
and as per the guidelines issued by CBSE, New Delhi.
__________________
Mrs. Priyanshi
ACKNOWLEDGEMENT
__________________
Your Name
XII
INTRODUCTION
Put introduction to your project here
HARDWARE & SOFTWARE
SPECIFICATIONS
Hardware:
Software:
Microsoft Windows XP/Vista/7
Python IDLE 3.7 or above
MySQL 5.6
CODE IMPLEMENTATION
<put your code here in this font only with headings s in bold(if
needed)>
#Python-MySql Connection
if conn.is_connected():
print()
print(" ORDER YOUR FOOD HERE")
c1=conn.cursor()
if choice ==1:
cust_name=input("Enter your Name:")
account_no=int(input("Enter your own account number:"))
address=input("Enter your address:")
password=input("Enter your password:")
SQL_insert="INSERT into myc
VALUES('{}',
{},'{}','{}')".format(cust_name,account_no,address,password)
c1.execute(SQL_insert)
conn.commit()
print()
print()
print(".......ACCOUNT CREATED SUCCESSFULLY.......")
if choice==3:
print("THANK YOU FOR VISITING")
if choice==2:
print('')
print('TO LOGIN FILL THIS DETAILS')
print('')
cust_name=input('Enter your Name:')
print('')
account_no=int(input('Enter your Accont No:'))
print(' ')
password=input('Enter your Password:')
print(' ')
c1=conn.cursor()
c1.execute('select * from myc')
data=c1.fetchall()
count=c1.rowcount
found=False
for row in data:
if (cust_name in row) and (account_no in row) and (password
in row):
found=True
else:
continue
if found==False:
print("Something Went wrong...Please Try Again!!!!")
else:
#SuccessFully Login
elif (c2==2):
print('')
print('SELECT WHAT YOU WANT TO UPDATE:')
print('')
print('1. Name')
print('2. Address')
print('3. Password')
print('')
if choice==1:
cust_name=input('Enter your New Name:')
st="UPDATE myc SET Cust_Name='{}'
WHERE Account_No={}".format(cust_name,account_no)
c1.execute(st)
conn.commit()
c1.execute(show)
record=c1.fetchall()
for row in record:
if account_no in row:
print(row)
elif choice==2:
address=input("Enter your New Address:")
st="UPDATE myc SET Address='{}'
WHERE Account_No={}".format(address,account_no)
show='select * from myc
WHERE Account_No=account_no'
c1.execute(st)
conn.commit()
c1.execute(show)
record=c1.fetchall()
for row in record:
if account_no in row:
print(row)
else:
Pass=input("Enter your New Password:")
Account_No={}".format(Pass,account_no)
show='select * from myc Where Account_No=account_no'
c1.execute(st)
conn.commit()
c1.execute(show)
record=c1.fetchall()
for row in record:
if account_no in row:
print(row)
conn.commit()
elif (c2==3):
#Order Food
elif(c2==4):
while choice=="y":
VALUES('{}',{},'{}',
{},'{}')".format(cust_name,account_no,fn,amount,address,)
c1.execute(v_SQL_insert)
conn.commit()
show='select * from sales Where Food_Name=fn'
c1.execute(show)
print("Your Bill")
record=c1.fetchall()
for row in record:
if account_no in row:
print(row)
print("SUCESSFULLY ORDERED")
elif(c2==5):
c1=conn.cursor()
c1.execute('select * from sales')
data=c1.fetchall()
count=c1.rowcount
elif (c2==6):
print()
else:
print("ERROR,ERROR...........")
OUTPUTS
<Delete these outputs and insert yours, these are for your
guidance purpose only>
BIBLIOGRAPHY
BOOKS USED:
● SUMITA ARORA CS (XII)
WEBSITES:
● http//www.cbse.nic.in
● http//www.google.co.in