Project of Computer
Project of Computer
1
BIODATA
MEDIUM SCHOOL- II
Certificate Examination
2
ACKNOWLEDGEMENT
3
DECLAIRATION
I “ Asimananda Mohapatra ” of class –XII, bearing
roll
no. of Buxi Jagabandhu English
Medium
School-II, Satyabhamapur. I am submitting this
copy of computer science project as evidence of
my
work in computer laboratory.
NAME:ASIMANANDA MOHAPATRA
CLASS: XII
ROLL NO:
SCHOOL-II
4
5
BONAFIDE CERTIFICATE
THIS IS TO CERTIFY THAT (Asimananda Mohapatra)
2024-2025.
P.G.T COMPUTER
SCIENCE
BJEMS-SATYABHAMAPUR
6
INDEX
1 INTRODUCTION 7
3 OUTPUT SCREEN 26
4 MySQL TABLE 28
5 BIBLIOGRAPHY 29
7
INTRODUCTION
The main objective of the python project on Food
payments.
8
DATABASE MANAGEMENT
SYSTEM
Characteristics of DBMS: -
It reduces the redundancy
Data sharing
Data standardization
Reduction of data inconsistency
9
Types of files based on access: -
Sequential file
Serial file
Random file
Test file
Binary file
10
Software And Hardware
Requirement
Software Specification: -
Database: MySQL
Language: Python
Hardware Specification: -
RAM: 8GB
11
Need of computerization
12
ready to go out into the field. Understanding
calculations is timeless, as is computer
competency. Software, however, shifts rapidly.
Advantages of Project: -
13
Source Code in Python
import os
import platform
import MySQL. Connector
import pandas as pd
mydb=mysql.connector.connect(host="localhost"
,\
user="root",\
passwd ="root",\
database="food")
mycursor=mydb.cursor()
def Customer():
L=[]
c_id=int(input("Enter the customer ID number :
"))
L.append(c_id)
name=input("Enter the Customer Name: ")
L.append(name)
14
phone=int(input("Enter customer phone
number :"))
L.append(phone)
L.append(payment)
L.append(status)
(c_id,name,cphone,payment,pstatus,email,orderi
d,date) values (%s,%s,%s,%s,%s,%s,%s,%s)"
mydb.commit()
def Employee():
L=[]
15
Emp_id=int(input("Enter the Employee id : "))
L.append(Emp_id)
L.append(name)
L.append(emp_g)
L.append(eage)
emp_phone=int(input("enter employee
phone
number”)
L.append(emp_phone)
L.append(pwd)
EMP=(L)
16
(Emp_id,ename,emp_g,eage,emp_phone,pwd
) values (%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,EMP)
mydb.commit()
def food():
L=[]
L.append(Food_id)
L.append(Foodname)
L.append(Food_size)
L.append(prize)
Food=(L)
17
mycursor.execute(sql,Food)
mydb.commit()
def OrderFood():
L=[]
L.append(OrderF_id)
L.append(C_id) Emp_id=input("Enter
Employee id: ")
L.append(Emp_id)
L.append(Food_id)
L.append(Food_qty)
Total_price=input("Enter Total_price")
L.append(Total_price)
18
OrderFood=(L)
(OrderF_id,C_id,Emp_id,Food_id,Food_qty,Tota
l_price ) values (%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,OrderFood)
def food:
L=[]
L.append(Food_id)
L.append(Foodname)
L.append(Food_size)
L.append(prize)
Food=(L)
sql="insert into Food (Food_id,Foodname,Food_size,prize )
values (%s,%s,%s,%s)"
19
mycursor.execute(sql,Food)
mydb.commit()
Def OrderFood():
L=[]
L.append(OrderF_id)
L.append(C_id)
L.append(Emp_id)
L.append(Food_id)
L.append(Food_qty)
Total_price=input("Enter Total_price")
L.append(Total_price)
20
OrderFood=(L)
mycursor.execute(sql,OrderFood)
mydb.commit()
def View():
print("1. Employee")
print("2. Customer")
print("3. Food")
if ch==1:
rl=(s,)
21
sql="select * from Employee where
Emp_id=%s?/
" mycursor.execute(sql,rl)
res=mycursor.fetchall()
or x in res:
print(x)
elif ch==2:
rl=(s,)
mycursor.execute(sql,rl)
for x in res:
print(x)
elif ch==3:
mycursor.execute(sql)
22
res=mycursor.fetchall()
for x in res:
print(x)
elif ch==4:
rl=(s,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
for x in res:
print(x)
def feeDeposit():
L=[]
23
roll=int(input("Enter the roll number : "))
L.append(roll)
L.append(feedeposit) month=input("Enter
month of fee : ")
L.append(month) fee=(L)
def MenuSet():
try:
24
userInput = int(input("Please Select An
Above Option: "))
except ValueError:
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()
25
else:
def runAgain():
while runAgn.lower()=='y':
if(platform.system()=="Windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
MenuSet()
MenuSet()
runAgain()
26
27
OUTPUT SCREEN
28
FUTURE ENHANCEMENTS
29
30
BIBLIOGRAPHY
1. http://www.google.com/
2. http://en.wikipedia.org
by Sumita Arora
31