You are on page 1of 20

DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA

SATNA (M.P.) 485001. CONTACT NO. 8889985550

Under The Aegis Of DPS Trust CBSE Affiliation No. 1030589

A
Major Project
On

AUTOMOBILE INVENTORY MANAGEMENT SOFTWARE

Submitted in partial fulfillment of the requirements


the award of Central Board of Secondary Education (CBSE)

Of
AISSCE Practical

Session 2021-2022

12th Class Examination

In

COMPUTER SCIENCE

Guided by Principal Submitted By


VIVEK AGRAWAL (M. Phil) Mrs. Shashi Shrinivas Name – SIDDHANT SINGH BAGHEL
Roll no-

Page 1
DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA
SATNA (M.P.) 485001. CONTACT NO. 8889985550

Under The Aegis Of DPS Trust CBSE Affiliation No. 1030589

STUDENT PROFILE

1. Candidate Roll No.:

……………………………………………………………………………………………

….

2. Candidate Name:

……………………………………………………………………………………………

……..

3. Project title:

……………………………………………………………………………………………

……………..

4. Software AIMS:

……………………………………………………………………………………………

……….

Page 2
5. Name Study Center:

……………………………………………………………………………………………

6. Sponsoring Institute Address: ……………………………………………..

………………………………….

……………………………………………………………………………………………

……………………………….

7. Submitted for Course & Year:

……………………………………………………………

8. Software Front End:…………………………………………………………………

9. Software Back End:…………………………………………………………………

10.Email-Id: …..

……………………………………………………………………………………………

…………...

Guide Signature Student Signature

_______________ ________________

DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA


SATNA (M.P.) 485001. CONTACT NO. 8889985550

Page 3
Under The Aegis Of DPS Trust CBSE Affiliation No. 1030589

TABLE OF CONTENTS

S.No. DESCRIPTION PAGE. NO

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

Under The Aegis Of DPS Trust CBSE Affiliation No. 1030589

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.

INTERNAL EXAMINER EXTERNAL EXAMINER PRINCIPAL


SIGNATURE SIGNATURE SIGNATURE

__________________________ __________________________ _____________________

Page 5
DELHI PUBLIC SENIOR SECONDARY SCHOOL,SATNA
SATNA (M.P.) 485001. CONTACT NO. 8889985550

Under The Aegis Of DPS Trust CBSE Affiliation No. 1030589

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

I wish to express my deep gratitude and sincere thanks to the principal


Mrs. Shashi Srinivas, Delhi Public Senior Secondary School Satna for her
encouragement and for all the facilities that she provided for this project
work. I sincerely appreciate this magnanimity by taking me into her fold
for which I shall remain indebted to her.

I extend my hearty thanks to Mr. Vivek Agrawal sir Computer Science


teacher, who guided me to the successful completion of this project. I
take this opportunity to express my deep sense of gratitude for her
invaluable guidance, constant encouragement, immense motivation,
which has sustained my efforts at all the stages of this “AUTOMOBILE
INVENTORY MANAGEMENT” project work.

I can’t forget to offer my sincere thanks to parents and also to my


classmates who helped me to carry out this project work successful and
for their valuable advice and support, which I received from them time to
time.

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

This is a software which can be used by a automobile center for keeping


the records of This is a software which can be used by a automobile
center for keeping the records of items which is to be transacted for
purchase and sell. It helps to keep a record of all theitems which is to be
transacted for purchase and sell. It helps to keep a record of all
thetransactions and a password login is created for security.transactions
and a password login is created for security.In proposed system we do
not have to maintain everything manually. ThroughtIn proposed system
we do not have to maintain everything manually. Throughtthis system if
any transaction occurs it is corresponding entries is done
automaticallythis system if any transaction occurs it is corresponding
entries is done automatically because database management system
gives facility of having relationship between the because database
management system gives facility of having relationship between
thetable.table.In proposed system we do not have to maintain different
accounting books.In proposed system we do not have to maintain
different accounting books.

Page 8
SYSTEM REQUIREMENT

HARDWARE REQUIREMENT :

CPU- Intel(R) Core i7 11th gen @ 2.50GHZ - 4.10GHZ


RAM-8GB
MOTHERBOARD- GIGABYTE Z590 Aorus Master
SDD CAPACITY-256GB
KEYBOARD- Multimedia (Any type with 102 key standard)
MOUSE (TYPE)- Optical mouse

SOFTWARE REQUIREMTENT :

OPERATING SYSTEM –Windows 10 Professionals


FRONT END - Python
BACKEND - SQL

Page 9
SOURCE CODE

import mysql.connector

print("""

_________________________________________________

Welcome to Automobile Inventory Management system

_________________________________________________

""")

mydb=mysql.connector.connect(host="localhost",user='root',passwd='Siddhant')

mycursor=mydb.cursor()

mycursor.execute("create database if not exists pyinventorydb7")

mycursor.execute("use pyinventorydb7")

mycursor.execute("create table if not exists login(username varchar(25) not null,password


varchar(25) not null)")

mycursor.execute("create table if not exists purchase(odate date not null, name


varchar(45) not null, pname varchar(45) not null ,pcode int not null,amount int not null)")

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

mycursor.execute("select* from login")

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:")

mycursor.execute("select * from login")

for i in mycursor:

username,password=i

if(passs==password):

print("welcome")

loop2='y'

if(loop2=='y' or loop=='Y'):

print(""" 1.Add New Vehicle

2.Updating price,Model

3. Deleting Vehicle

4.Display All Vehicle

5.To change the password

6.Log out

""")

ch=int(input("Enter the choice:"))

if(ch==1):

loop='y'

while(loop=='y' or loop=='Y'):

pcode=int(input("Enter vehicle code:"))

pname=input("Enter Company name:")

pmodel=input("Enter Model Name:")

year=int(input("Enter Vehicle Year:"))

price=int(input("Enter Vehicle Price:"))

mycursor.execute("insert into stock values('"+str(pcode)+"','"+pname+"','"+


(pmodel)+"','"+str(year)+"','"+str(price)+"')")

mydb.commit()

print("Record Successfully Inserted...")

loop=input("Do you want to enter more Vehicle(y/n):")

Page 11
loop2=input("Do you want to continue editing stock(y/n):")

elif(ch==2):

loop2='y'

while(loop2=='y' or loop2=='Y'):

pcode=int(input("Enter Vehicle code:"))

new_price=int(input("Enter new price:"))

mycursor.execute("update stock set price ='"+str(new_price)+"'where


pcode='"+str(pcode)+"'")

mycursor.commit()

loop=input("Do you want to change price,pmodel of any other vehicle(y/n):")

loop2=input("Do you want to continue editing stock(y/n):")

elif(ch==3):

loop='y'

while(loop=='y' or loop=='Y'):

pcode=int(input("Enter vehicle code:"))

mycursor.execute("delete from stock where pcode='"+str(pcode)+"'")

mydb.commit()

loop=input("Do you want to enter other data(y/n):")

loop2=input("Do you want to continue editing stock(y/n):")

elif(ch==4):

mycursor.execute("select* from stock")

print("pcode || pname || pmodel || year || price")

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):

old_passs=input("Enter the password:")

mycursor.execute("select*from login")

for i in mycursor:

username,password=i

if(old_passs==password):

Page 12
new_passs=input("Enter new Password:")

mycursor.execute("update login set password='"+new_passs+"'")

mydb.commit()

elif(ch==6):

break

else:

print("wrong password")

#########################Customer Section

elif(ch==2):

print("""1.vehicle bucket

2.Payment

3.View Available Vehicle

4.Go back

""")

ch2=int(input("Enter the choice:"))

if(ch2==1):

name=input("Enter the name:")

pcode=int(input("Enter vehicle code:"))

pname=input("Enter Vehicle brand:")

pmodel=input("Enter model name:")

year=int(input("Enter Vehicle year:"))

mycursor.execute("select*from stock where pcode='"+str(pcode)+"'")

for i in mycursor:

t_code,t_name,t_pname,t_model,t_year,t_price=i

amount=t_price

mycursor.execute('insert into purchase values


now(),'"+name+"','"+str(pcode)+"','"+pname+"','"+pmodel+"','"+str(year)
+"','"+str(amount)"'')

Page 13
mydb.commit()

elif(ch2==2):

print(f"amount to be paid {amount}")

elif(ch2==3):

print("CODE||NAME||PRICE")

mycursor.execute("select * from stock")

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

You might also like