Parking CLR
Parking CLR
ROLL NO : 28608428
NAME : S.MOHAN PRATAP
CLASS : XII
SUBJECT : INFORMATICS PRACTICES(NEW)
SUB CODE : 065
St.JOHN’S ENGLISH MEDIUM SCHOOL
MISSION COMPOUND-TENALI
CERTIFICATE
This is to certify that student
Moreover & most importantly the program helps us The program also helps us to
know the present status of a parking detail, vehicle detail etc.
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 (like structure
CHARACTERISTICS OF DBMS: -
• Data sharing
• Data standardization
• Sequential file
• Serial file
• Text file
• Binary File
Software & Hardware
Requirements
SOFTWARE SPECIFICATION:
HARDWARE SPECIFICATION:
import platform
importmysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",password="cbse",datab
ase='parking')
mycursor=mydb.cursor()
defAdd_Record():
L=[]
id1=int(input("Enter the parking number : "))
L.append(id1)
pname1=input("Enter the Parking Name: ")
L.append(pname1)
level1=input("Enter level of parking : ")
L.append(level1)
freespace1=input("Is there any freespace or not :YES/NO ")
L.append(freespace1)
vehicleno1=input("Enter the Vehicle Number : ")
L.append(vehicleno1)
elif nod1==3:
Payment1=60
elif nod1==4:
Payment1=80
elif nod1==5:
Payment1=100
elif nod1==6:
Payment1=120
L.append(Payment1)
stud=(L)
sql='insert into parkmaster12(pid,pnm,level,freespace,vehicleno,nod,payment)
values(%s,%s,%s,%s,%s,%s,%s)'
mycursor.execute(sql,stud)
mydb.commit()
defRec_View():
print("Select the search criteria : ")
rl=(s,)
sql="select * from parkmaster12 where pid=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elifch==2:
s=input("Enter Parking Name : ")
rl=(s,)
sql="select * from parkmaster12 where pnm=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elifch==3:
s=int(input("Enter Level of Parking : "))
rl=(s,)
sql="select * from parkmaster12 where level=%s"
mycursor.execute(sql,rl)
res=mycursor.fetchall()
elifch==4:
sql="select * from parkmaster12"
mycursor.execute(sql)
res=mycursor.fetchall()
print("Details about Parking are as follows : ")
print("(Parking Id,ParkingName,Level,FreeSpace(Y/N),Vehicle No,No of days for
parking,Payment)")
for x in res:
print(x)
print('Task comple ted')
defVehicle_Detail():
L=[]
vid1=int(input("Enter Vehicle No : "))
L.append(vid1)
vnm1=input("Enter Vehicle Name/Model Name : ")
L.append(vnm1)
dateofpur1=input("Enter Year-Month-date of purchase : ")
L.append(dateofpur1)
vdt=(L)
sql="insert into vehicle(pid,vnm,dateofpur) values(%s,%s,%s)"
mycursor.execute(sql,vdt)
mydb.commit()
defVehicle_View():
print('Task compelted')
defremove():
vid1=int(input("Enter the vehicle number of the vehicle to be deleted : "))
rl=(vid1,)
sql="Delete from vehicle where pid=%s"
mycursor.execute(sql,rl)
mydb.commit()
print('Removed as per the command')
defMenu():
print("Enter 1 : To Add Parking Detail")
print("Enter 2 : To View Parking Detail ")
print("Enter 3 : To Add Vehicle Detail ")
elif (input_dt==3):
Vehicle_Detail()
elif (input_dt==4):
remove()
elif (input_dt==5):
Vehicle_View()
else:
print("Enter correct choice....")
Menu()
defrunAgain():
runAgn=input('\nwant to run Again Y/n:')
while(runAgn.lower()=='y'):
if(platform.system()=='Windows'):
print(os.system('cls'))
else:
print(os.system('clear'))
Menu()
runAgn=input('\nwant to run Again Y/n:')runAgain()
TABLE : PARKMASTER12
TABLE : VEHICLE
Output Screening