SlidePub
Home
Categories
Login
Register
Home
Science
Computer science project.pdf
Computer science project.pdf
68,807 views
22 slides
Apr 01, 2022
Slide
1
of 22
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
About This Presentation
Computer science project class 12 in python on food management system you guys can simply use it.
Size:
1.47 MB
Language:
en
Added:
Apr 01, 2022
Slides:
22 pages
Slide Content
Slide 1
AProjectReportOn
“FOODBOOKINGSYSTEM”
SUBMITTED BY:
NAME
CLASS:12
BOARDROLLNO.:
UNDERTHEGUIDANCEOF:
Mr.Mani
Slide 2
ACKNOWLEDGEMENT
Thisistocertifythat HARSHIT
Ofclass12haspreparedthereporton
theProjectentitled “FoodBooking
System”.Thereportistheresultofhis
effortsandendeavors.Thereportisfound
worthyofacceptanceasfinalproject
reportforthesubject ComputerScience
ofclassXII.Hehaspreparedtheproject
undertheguidanceofthesubjectteacher,
Mr.Mani.
(Mr.Mani)
Slide 3
CERTIFICATE
Theprojectreportentitled“FOODBOOKINGSYSTEM”
SubmittedbyHARSHITofClassXIIfortheC.B.S.E.
SeniorSecondaryExaminationclassXIIof
computerscienceundertheguidanceofthesubject
teacher,Mr.Maniisfoundtobecorrectunderall
means.
SIGNATURE
Slide 4
DECLARATION
Iherebydeclarethattheprojectworkentitled“Food
BookingSystem”,submittedtoDepartmentof
computerscience,_____________PUBLICSCHOOLis
preparedbyme.Allthecodingareresultofmy
personalefforts.
HARSHIT
12-D
Slide 5
INDEX
1.BriefoverviewoftheProject
2.NeedofComputerization
3.SoftwareandHardwarerequirement
4.AdvantagesoftheProject
5.SourcecodeofProject
6.OutputScreens
7.Bibliography
Slide 6
FOODBOOKINGSYSTEM
BRIEFOVERVIEWOFPROJECT..
Themainobjectiveofthepythonprojecton
Foodorderingistomanagethedetailsof
booking,menupayments,andorder.
Theprojectistotallybuiltat
administrativeendandonlyadministrator
isguaranteedtheaccess.
Thepurposeoftheprojectistobuildan
applicationprogramtoreducethemanual
workformanagingthebooking,
discounts,andpayments.
Ittracksallthedetailsaboutmenu,
discount,andpayments;italsoprints
variousreportsasperinputgivenbythe
user.
Slide 7
INPUTDATAANDVALIDATIONOFPROJECT
1.Allthefieldssuchasorderpaymentsdiscountsare
validatedanddoesnottakeinvalidvalues.
2.Eachformofsales,discounts,bookingscannot
accepttheblankvalues.
3.Avoidingerrorsindata.
4.Controllingamountofinput.
SOFTWAREANDHARDWAREREQUIREMENTS:
Datafilehandling:
hasbeeneffectivelyusedintheprogram.The
databaseisacollectionofinterrelateddata
toservemultipleapplications.Thatis
databaseprogramscreatefilesofinformation.
Soweseethatfilesareworkedwithmost,
insidetheprogram.
DBMS:
Thesoftwarerequiredforthemanagementof
dataiscalledasDBMS.Ithas3models:
•Relationmodel
•Hierarchicalmodel
•Networkmodel
RELATIONALMODEL:
It’sbasedontheconceptonrelation.Relation
isthetablethatconsistsofrowsandcolumns.
Therowsofthetablearecalledtupleandthe
Slide 8
columnsofthetablearecalledattribute.
Numbersofrowsinthetableiscalledas
cardinality.Numberofcolumnsinthetableis
calledasdegree.
HIERARCHICALMODEL:
Inthistypeofmodel,wehavemultiplerecordsforeach
record.Aparticularrecordhasoneparentrecord.Nochide
recordcanexistwithoutparentrecord.Inthis,the
recordsareorganizedintree.NETWORKMODEL:
Inthis,thedataisrepresentedbycollectionofrecords
andrelationshipisrepresentedby(inkorassociation.
CHARACTERISTICSOFDBMS:
•
Itreducestheredundancy
•Reductionofdataininconsistency
•Datasharing
•Datastandardization
DIFFERENTTYPESOFFILES:-BASEDONACCESS :
•
Sequentialfile
•Serialfile
•Random(directaccess)fileBASEDONSTORAGE:-
•Textfile
•BinaryFile
Slide 9
NEEDOFCOMPUTERISATION
Overthedecadescomputersandfoodbookingshave
developedgradually,changedwithtime.Butnobody
knewthatatimewillcomewhenboththesefields
willcomplementeachothersowell.Todayfood
bookinghasreachednewheightsbycomputeraided
methodsofdesign.Asaresultofwhich,computer
industryhasgotitsnewcustomer.Computer
technologyismakingwavesinthefoodbookingzone.
Computersareavitalcomponentofthefoodbooking
counters.Computeraideddesign(CAD)programs
reducethedemandformanualsketches.Newsoftware
programscontinuetoreplaceoldmanualskills.
Thosewholaginmathcannowbreathealittle
easier.Manuallyfiguringoffoodinsiststhat
knowledge.Softwareprogramsconstantlyevolve.A
programusedtodaymaybeobsoletewithinseveral
years.Beingtrainedontoday'ssoftwaredoesnot
guaranteeitwillbeusedwhenyouarereadytogo
outintothefield.Understandingcalculationsis
timeless,asiscomputercompetency.Software,
however,shiftsrapidly.
Slide 10
ADVANTAGES
1.
I
tgeneratesthereportonsales,discountsandmenu.
2.Providesfilterreportonpaymentsandfoodbooking.
3.WecaneasilyexportPDFonsales,productsandstocks
4.Applicationscanalsoprovideexcelexportforbookingsand
discounts
5.Itdealswithmonitoringtheinformationandtransactionof
foodbookings.
6.Itincreasestheefficiencyoffoodbookinganddiscount.
7.Ithashigherefficiencyofediting,addingandupdatingof
records.
8.Providesthesearchingfacilitiesonvariousfactors.
Slide 11
SOURCECODESCREEN
DBMS:MySQL
Host:localhost
User:root
Password:root
Database:Food
TableStructure:(Imagebelow)
Slide 12
PYTHONCODE
importos
importplatform
importmysql.connector
importpandasaspd
mydb=mysql.connector.connect(host="localhost",\
user="root",\
passwd="root",\
database="food")
mycursor=mydb.cursor()
defCustomer():
L=[]
c_id=int(input("EnterthecustomerIDnumber:"))
L.append(c_id)
name=input("EntertheCustomerName:")
L.append(name)
cphone=int(input("Entercustomerphonenumber:"))
L.append(cphone)
payment=int(input("Enterpaymentmethod((1)credit
card/(2)DebitCard:)"))
L.append(payment)
pstatus=input("Enterthepaymentstatus:")
L.append(pstatus)
email=input("Entertheemailid")
L.append(email)
orderid=input("enterorderid")
L.append(orderid)
date=input("EntertheDate:")
L.append(date)
cust=(L)
sql="insertintocustomer
(c_id,name,cphone,payment,pstatus,email,orderid,date)
values(%s,%s,%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,cust)
Slide 13
mydb.commit()
#CustomerTable:-C_id(PKC_nameC_phonenum
Payment_method(Cash/CreditCard)Payment_status
(Paid/Unpaid)EmailEmp_id(FK)OrderF_id(FK)date
defEmployee():
L=[]
Emp_id=int(input("EntertheEmployeeid:"))
L.append(Emp_id)
ename=input("EntertheEmployeeName:")
L.append(ename)
emp_g=input("EnterEmployeeGenderr:")
L.append(emp_g)
eage=int(input("EnterEmployeeage"))
L.append(eage)
emp_phone=int(input("enteremployeephonenumber"))
L.append(emp_phone)
pwd=input("Enterthepassword:")
L.append(pwd)
EMP=(L)
sql="insertintoEmployee
(Emp_id,ename,emp_g,eage,emp_phone,pwd)values
(%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,EMP)
mydb.commit()
defFood():
L=[]
Food_id=int(input("EntertheFoodid:"))
L.append(Food_id)
Foodname=input("EntertheFoodName:")
L.append(Foodname)
Food_size=input("EnterFoodsize:")
L.append(Food_size)
prize=int(input("EnterPrizeofFood"))
L.append(prize)
Food=(L)
Slide 14
sql="insertintoFood
(Food_id,Foodname,Food_size,prize)values(%s,%s,%s,%s)"
mycursor.execute(sql,Food)
mydb.commit()
#Food_id(PKFoodnameFood_sizeprice
defOrderFood():
L=[]
OrderF_id=int(input("EntertheFoodOrderid:"))
L.append(OrderF_id)
C_id=input("EntertheCustomerid:")
L.append(C_id)
Emp_id=input("EnterEmployeeid:")
L.append(Emp_id)
Food_id=int(input("EnterFoodid"))
L.append(Food_id)
Food_qty=input("EnterQty:")
L.append(Food_qty)
Total_price=input("EnterTotal_price")
L.append(Total_price)
OrderFood=(L)
sql="insertintoOrderFood
(OrderF_id,C_id,Emp_id,Food_id,Food_qty,Total_price)
values(%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,OrderFood)
mydb.commit()
#OrderF_id(PK)C_id(FK)Employee_id(FK)Food_id(FK)
Food_qtyTotal_price
defView():
print("Selectthesearchcriteria:")
print("1.Employee")
print("2.Customer")
print("3.Food")
print("4.OrderFood")
Slide 15
ch=int(input("Enterthechoice1to4:"))
ifch==1:
s=int(input("enterEmployeeID:"))
rl=(s,)
sql="select*fromEmployeewhereEmp_id=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
forxinres:
print(x)
elifch==2:
s=input("EnterCustomerName:")
rl=(s,)
sql="select*fromCustomerwherecname=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
forxinres:
print(x)
elifch==3:
sql="select*fromFood"
mycursor.execute(sql)
res=mycursor.fetchall()
forxinres:
print(x)
elifch==4:
s=int(input("EnterFoodidID:"))
rl=(s,)
sql="select*fromFoodorderwherefood_id=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
forxinres:
print(x)
#print("TheFooddetailsareasfollows:")
#print("(CustoemerID,FoodName,quatity,Cost)")
Slide 16
#forxinres:
#print(x)
deffeeDeposit():
L=[]
roll=int(input("Entertherollnumber:"))
L.append(roll)
feedeposit=int(input("EntertheFeetobedeposited:
"))
L.append(feedeposit)
month=input("Entermonthoffee:")
L.append(month)
fee=(L)
sql="insertintofee(roll,feedeposit,month)values
(%s,%s,%s)"
mycursor.execute(sql,fee)
mydb.commit()
defMenuSet():
print("Enter1:ToAddEmployee")
print("Enter2:ToAddCutomerdetails")
print("Enter3:ToAddFoodDetails")
print("Enter4:ForFoodOrder")
print("Enter5:ForfeeDeposit")
print("Enter6:ToviewFoodbooking")
try:
userInput=int(input("PleaseSelectAnAbove
Option:"))
exceptValueError:
exit("\nHy!That'sNotANumber")
else:
print("\n")
if(userInput==1):
Employee()
elif(userInput==2):
Customer()
elif(userInput==3):
Slide 17
Food()
elif(userInput==4):
OrderFood()
elif(userInput==5):
feeDeposit()
elif(userInput==6):
View()
else:
print("Entercorrectchoice...")
defrunAgain():
runAgn=input("\nwanttorunAgainY/N")
whilerunAgn.lower()=='y':
if(platform.system()=="Windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
MenuSet()
runAgn=input("\nwanttorunAgainy/n")
print("GoodBye...HAVEANICEDAY")
MenuSet()
runAagain()
Slide 18
OUTPUTSCREEN
Slide 19
BIBLIOGRAPHY
1.http://www.google.com/
2.http://en.wikipedia.org
3.Computersciencewithpython
bySumitaArora
Tags
computer
python project class 12
computer science project on py
computer science
class 12
computer project class 12
python
computer science with python
Categories
Science
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
68,807
Slides
22
Favorites
25
Age
1341 days
Related Slideshows
23
Earthquakes_Type of Faults_Science G8.pptx
OctabellFabila1
31 views
15
Quiz #1 Science 10 in the first quarter for jhs
HendrixAntonniAmante
30 views
9
Astronomy history from long ago till doday
ssuserbd9abe
29 views
9
Great history of astronomy from long ago till today
ssuserbd9abe
27 views
20
EARTHQUAKE-DRILL.powerpoint.............
chalobrido8
30 views
9
History of astronomy from old times to the present times
ssuserbd9abe
30 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-22)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better