Professional Documents
Culture Documents
A
Major Project
On
Of
AISSCE Practical
Session 2021-2022
In
COMPUTER SCIENCE
Page 1
DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA
SATNA (M.P.) 485001. CONTACT NO. 8889985550
STUDENT PROFILE
……………………………………………………………………………………………
….
2. Candidate Name:
……………………………………………………………………………………………
……..
3. Project title:
……………………………………………………………………………………………
……………..
4. Software AIMS:
……………………………………………………………………………………………
……….
Page 2
5. Name Study Center:
……………………………………………………………………………………………
………………………………….
……………………………………………………………………………………………
……………………………….
……………………………………………………………
10.Email-Id: …..
……………………………………………………………………………………………
…………...
_______________ ________________
Page 3
Under The Aegis Of DPS Trust CBSE Affiliation No. 1030589
TABLE OF CONTENTS
1. Certificate 4
2. Self Certificate 5
3. Acknowledgement 6
4. Introduction 7
5. System Requirement 8
Page 4
DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA
SATNA (M.P.) 485001. CONTACT NO. 8889985550
CERTIFICATE
This is to certify that this Major Project entitled “AUTOMOBILE INVENTORY MANAGEMENT
SYSTEM” is a bonafide record of work done by MR.SIDDHANT SINGH BAGHEL of Class-12th,
and the work has done under my guidance and supervision.
This work of satisfaction. We wish his success in every aspect of life. He has performed this
project on his own. She has also put in sufficient periods for completion. This project has
been completed as per rules of Central Board of Senior Secondary Examination Syllabus and
can be considered as the fulfillment of A.I.S.S.C.E Examination. The approach toward the
subject has been sincere and scientific.
Page 5
DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA
SATNA (M.P.) 485001. CONTACT NO. 8889985550
SELF CERTIFICATE
This is to certify that the we have prepared a project for “AUTOMOBILE INVENTORY
MANAGEMENT SYSTEM” using Python Language as front end software and SQL
(Structured Query Language) as back end software, for Delhi Public Senior Secondary
School, Satna (M.P).[CBSE]. This project has been completed as per rules of Central Board
of Senior Secondary Examination Syllabus and can be considered as the fulfillment of
A.I.S.S.C.E Examination with fine ideas, concept and best of our knowledge, under the kind
guidance of Mr. Vivek Agrawal Sir.
All the works related to the project is done by the me. The approach toward the subject has
been sincere and scientific.
Signature of Student
Student Name
Roll no_____________
Page 6
ACKNOWLEDGMENT
Lastly we are thankful of God All mighty and all my teachers and who
provided me timely suggestion during my work.
SUBMITTED BY :
NAME________________________
ROLL NO_____________________
Page 7
INTRODUCTION
Page 8
SYSTEM REQUIREMENT
HARDWARE REQUIREMENT :
SOFTWARE REQUIREMTENT :
Page 9
SOURCE CODE
import mysql.connector
print("""
_________________________________________________
_________________________________________________
""")
mydb=mysql.connector.connect(host="localhost",user='root',passwd='Siddhant')
mycursor=mydb.cursor()
mycursor.execute("use pyinventorydb7")
mycursor.execute("create table if not exists stock(pcode int not null, pname varchar(45)
not null, pmodel varchar(45) not null,year int not null,price int not null )")
mydb.commit()
z=0
for i in mycursor:
z+=1
if(z==0):
mydb.commit()
while True:
print("""1.Admin
2.Customer
3.Exit
""")
Page 10
ch=int(input("Enter your choice:"))
if(ch==1):
passs=input("enter password:")
for i in mycursor:
username,password=i
if(passs==password):
print("welcome")
loop2='y'
if(loop2=='y' or loop=='Y'):
2.Updating price,Model
3. Deleting Vehicle
6.Log out
""")
if(ch==1):
loop='y'
while(loop=='y' or loop=='Y'):
mydb.commit()
Page 11
loop2=input("Do you want to continue editing stock(y/n):")
elif(ch==2):
loop2='y'
while(loop2=='y' or loop2=='Y'):
mycursor.commit()
elif(ch==3):
loop='y'
while(loop=='y' or loop=='Y'):
mydb.commit()
elif(ch==4):
for i in mycursor:
t_code,t_name,t_model,t_year,t_price=i
print(f"{t_code}||{t_name}||{t_model}||{t_year}||{t_price}")
elif(ch==5):
mycursor.execute("select*from login")
for i in mycursor:
username,password=i
if(old_passs==password):
Page 12
new_passs=input("Enter new Password:")
mydb.commit()
elif(ch==6):
break
else:
print("wrong password")
#########################Customer Section
elif(ch==2):
print("""1.vehicle bucket
2.Payment
4.Go back
""")
if(ch2==1):
for i in mycursor:
t_code,t_name,t_pname,t_model,t_year,t_price=i
amount=t_price
Page 13
mydb.commit()
elif(ch2==2):
elif(ch2==3):
print("CODE||NAME||PRICE")
for i in mycursor:
t_code,t_name,t_model,t_year,t_price=i
print(f"{t_code}||{t_name}||{t_price}")
elif(ch2==4):
break
Page 14
OUTPUT
Page 15
Page 16
Page 17
TABLE STRUCTURE
Table:Login
Table: stock
Page 18
Table: Purchase
Page 19
Page 20