Ilovepdf Merged
Ilovepdf Merged
INVENTORY MANAGEMENT
PROJECT REPORT
COMPUTER SCIENCE FOR CLASS XII
(2024-2025)
BY R.NEHA TEJARAKSHA
Enrollment No:
UNDER THE GUIDANCE OF
Mrs. C.KALAIMANI
M.Sc(cs),Mphil,B.Ed
(P.G.T COMPUTER SCIENCE)
AKSHAYA ACADEMY CBSE SENIOR
SECONDARY SCHOOL, ODDANCHATRAM.
i
AKSHAYA ACADEMY CBSE SENIOR SECONDARY SCHOOL
ODDANCHATRAM
COMPUTER SCIENCE
2024-2025
BONAFIDE CERTIFICATE
PRINCIPAL
ii
ACKNOWLEDGEMENT
to my Principal Mrs.R.Sowmya,
iii
TABLE OF CONTENTS
1 INTRODUCTION 1
2 SYSTEM REQUIREMENTS 2
3 FLOW CHART 3
4 SOURCE CODE 13
6 OUTPUT SCREENSHOTS 21
7 CONCLUTION 24
8 BIBLIOGRAPHY 25
iv
1. INTRODUCTION
This project BOOKSTORE SYSTEM includes some facilities for the retail
book store to maintain records of the books and also search, display,
modification, delete the books available. This software searches the books
data which is store in the record.
The software used for small shops for maintaining their records related to
books selling, printing the reports and cost savings. Book distributers
transaction handling is one of the complex process and it required
computerised system to maintain overall transaction in an easier manner.
Due to heavy demand of books in these competitive worlds, data increase so
much. Books store required up to date information about the customer who
purchased books or about the suppliers from where books are purchased. The
books store requires large amount of data to record and to store, which are
collected from the Book House.
In this project, we will develop an Inventory Management System (IMS)
using Python and Mysql. This system will provide an interface for
businesses to manage their inventory with features like adding new products,
updating product details, deleting obsolete products, viewing current stock
levels, and generating basic reports.
1
2. System Requirements
2.1. Software requirements:
Operating system: Windows 10 & above any Linux platform
Editor: Visual Studio Code or any other editor like Python IDLE, i5 5th
generation, Sublime Text that supports python.
Core software: Python 3.12 or 3.13 or the latest available version at the time
of installation.
2.2 Hardware requirements:
Processor: PENTIUM-IV GHz or any INTEL Processor minimum (i5, 5th or 6th
processor) and above.
Ram: Minimum requirement (8 GB, 128 GB SSD)
Hard disk: Minimum of 20 GB of space any make of your choice.
2
3. FLOW CHART
START
print(“””====MY
BOOKSTORE===”””)
3
while(True):
print(“”1:add books
2:delete books
3:search books
4:update books
5:customer details
6:available books
7:exit””)
a=int(input(“enter your choice
”)
if
a==1:(add)
4
elif
a==2(dele
tete)
elif a==3:(search
book)
if l==1:(search
by book name)
5
o=input(“enter book name to search:”)
print(“++++++++++++BOOK IS IN
STOCK++++++++++++”)
elif l==2:(search by
book genre)
elif l==3:(search
by publisher)
6
elif a===4(UPDATE
PRODUCT)
print(“1: By edition”)
print(“2: By price”)
cr=int(input(“enter your choice”))
if cr==1:
elif cr==2:
7
Name=input(“enter the book name
whose price to be updated”)
print(“SUCESSFULLY
UPDATED”)
elif a==5:(CUSTOMER
DETAILS)
If ch==1:(new
customer entry)
8
fname=str(input(“enter fullname:”))
gender=str(input(“gender(m/f/o:”))
age=int(input(“age”))
phno=int(input(“phoneno”))
print(“++++++++CUSTOMER IS SUCESSFULLY
ADDED++++++++”)
elif
ch==2:(REMOV
E CUSTOMER)
elif ch==3:
9
cursor.execute(“select * from customer_details”)
cust=cursor.fetchall()
if cust is
not NONE:
print(“CUSTOMER DETAILS”)
for i in cust:
print(i)
else:
print(“NO CUSTOMER
EXISTS!!!”)
10
elif
a==6(AVAILABLE)
print(“AVAILABLE BOOKS IN
STORE”)
elif
a==7:(EXIT)
break
STOP
11
4. PROJECT DESCRIPTION
Book store system is the python computerised application used for maintaining
the book store.
FUNCTIONS USED IN THE PROGRAM:
#ADD BOOKS
#DELETE BOOKS
#SEARCH BOOKS
12
5. SOURCE CODE
cursor.execute("""
CREATE TABLE IF NOT EXISTS available_books(
book_id INT PRIMARY KEY,
genre VARCHAR(50),
edition INT,
book_name VARCHAR(90),
publisher VARCHAR(90),
price INT
)
""")
cursor.execute("""
CREATE TABLE IF NOT EXISTS customer_details(
name VARCHAR(90),
gender VARCHAR(20),
age INT,
13
phone_number VARCHAR(15) UNIQUE, -- Changed to VARCHAR to
handle leading zeros
address VARCHAR(90)
)
""")
mycon.commit()
while True:
print("1: add books 2: delete books 3: search books 4: update books 5:
customer details 6: available books 7: exit")
a = int(input("Enter your choice: "))
# ADD BOOK
if a == 1:
print("All information prompted are mandatory to be filled")
b_id = int(input("Enter book ID: "))
genre = input("Genre: ")
edition = int(input("Enter edition: "))
name = input("Enter book name: ")
price = int(input("Enter the price: "))
pub = input("Enter publisher: ")
cursor.execute("""
INSERT INTO available_books(book_id, genre, edition, book_name,
publisher, price)
VALUES(%s, %s, %s, %s, %s, %s)
""", (b_id, genre, edition, name, pub, price))
14
mycon.commit()
print("++++ SUCCESSFULLY ADDED ++++")
# DELETE BOOK
elif a == 2:
print("Available books:")
cursor.execute("SELECT * FROM available_books")
for x in cursor:
print(x)
Bname = input("Enter book name to delete: ")
cursor.execute("DELETE FROM available_books WHERE
book_name=%s", (Bname,))
mycon.commit()
print("Book successfully deleted")
# SEARCH BOOKS
elif a == 3:
print("1: Search by book name 2: Search by book genre 3: Search by
publisher")
L = int(input("Search by: "))
# By book name
if L == 1:
o = input("Enter book name to search: ")
cursor.execute("SELECT * FROM available_books WHERE
book_name=%s", (o,))
tree = cursor.fetchone()
if tree:
15
print("++++++++++++ BOOK IS IN STOCK ++++++++++")
print(tree)
else:
print("BOOK IS NOT IN STOCK")
# By book genre
elif L == 2:
g = input("Enter book genre to search: ")
cursor.execute("SELECT * FROM available_books WHERE
genre=%s", (g,))
poll = cursor.fetchone()
if poll:
print("+++++++++ BOOK IS IN STOCK AVAILABLE")
# By publisher
elif L == 3:
au = input("Enter publisher to search: ")
cursor.execute("SELECT * FROM available_books WHERE
publisher=%s", (au,))
home = cursor.fetchone()
if home:
print("+++++ BOOK IS IN STOCK +++++")
print(home)
else:
print("BOOKS OF THIS PUBLISHER ARE NOT AVAILABLE")
# UPDATE BOOK
elif a == 4:
16
print("1: By edition")
print("2: By price")
cr = int(input("Enter your choice: "))
# By edition
if cr == 1:
Name = input("Enter the book name whose edition needs to be updated:
")
edt = int(input("Enter the edition to be updated: "))
cursor.execute("UPDATE available_books SET edition=%s WHERE
book_name=%s", (edt, Name))
print("UPDATED ROW")
cursor.execute("SELECT * FROM available_books WHERE
book_name=%s", (Name,))
plan = cursor.fetchone()
print(plan)
print("SUCCESSFULLY UPDATED")
# By price
elif cr == 2:
Name = input("Enter book name whose price is to be updated: ")
newprice = int(input("Enter the new price: "))
cursor.execute("UPDATE available_books SET price=%s WHERE
book_name=%s", (newprice, Name))
print("UPDATED ROW")
cursor.execute("SELECT * FROM available_books WHERE
book_name=%s", (Name,))
added = cursor.fetchone()
print(added)
17
print("SUCCESSFULLY UPDATED")
# CUSTOMER DETAILS
elif a == 5:
print("1: New customer entry")
print("2: Remove customer")
print("3: Existing customer details")
ch = int(input("Enter your choice: "))
18
# REMOVE CUSTOMER
elif ch == 2:
nm = str(input("Enter customer name to remove: "))
cursor.execute("SELECT name FROM customer_details WHERE
name=%s", (nm,))
toy = cursor.fetchone()
if toy:
cursor.execute("DELETE FROM customer_details WHERE
name=%s", (nm,))
mycon.commit()
print("++++++++++++ CUSTOMER SUCCESSFULLY REMOVED
+++++++")
else:
print("CUSTOMER DOES NOT EXIST")
# AVAILABLE BOOKS
19
elif a == 6:
print("AVAILABLE PRODUCTS IN STORE")
cursor.execute("SELECT * FROM available_books ORDER BY
book_name")
row = cursor.fetchall()
for y in row:
print(y)
# EXIT
elif a == 7:
break
mycon.close()
print("Program completed")
20
6. OUTPUT SCREENSHOTS
6.1 Main menu:
21
6.4.3 Search By Publisher:
6.5.1 By Edition:
6.5.2 By Price:
22
6.6.2 Remove Customer:
6.8 Exit:
23