kartik ip project
kartik ip project
जम्मू छावनी
LIBRARY
MANAGEMENT
SYSTEM
SUBMITTED BY:
Kartik Pandita
Class: - XII - B
Roll. No.: - 13
ACKNOWLEDGEMENT
I would want to sincerely thank Kendriya Vidyalaya
No. 2 Jammu Cantt for giving the facilities needed to
finish this project.
I want to thank my teacher Varsha Sharma from the
bottom of my heart for helping me with the project and
correcting me when I needed it. She was always really
interested in what I did. Her helpful suggestions and
unwavering encouragement have been the driving
forces behind my project's successful conclusion.
I also want to express my gratitude to my parents and
friends for their unwavering support, encouragement,
and assistance.
CONTENTS PAGE
NO.
INTRODUCTION TO THE 3
PROJECT
FILES, LIBRARIES, TABLES 4
AND DATABASES
SOURCE CODE
1)CONTENT 8
EXPLANATION 9
2) PROGRAM CODE
SCREENSHOTS 21
BIBLIOGRAPHY 24
INTRODUCTION TO THE
PROJECT:
The "ANsi" project is a library management system software that allows
books to be borrowed and donated globally. The project is created using
MySQL and Python IDLE.
while (1):
id=input('\nEnter book id:')
h.execute("select count(*) from books where bookId ="+id)
c=h.fetchone()
if c==(1,):
break
else:
print("Book is not available!!\n")
d=input("press 1 to try again and x to exit: ")
if d=='x':
exit()
print("The slots available are")
print("\nslot-1(s1)\nslot-2(s2)\nslot-3(s3)\nslot-4(s4)\nslot-5(s5)\nslot-6(s6)\nslot-7(s7)\
nslot-8(s8)\n")
while(1):
sl=input('Choose your comfortable slot: ')
h.execute("select count(*) from books where bookId="+id+" and "+sl+" is null;")
count=a.fetchone()
if count==(1,):
con=input('Your book is available in your selected slot. \n\nDo you want to
confirm your booking?\nEnter \'yes\' to proceed with your booking\nEnter \'no\' to cancel
your booking: ')
if con=='yes':
print('\nYour booking has been confirmed.\nYou can collect your book at your
nearest store. For further details contact your nearest store.')
h.execute('update books set '+sl+'=1 where bookId='+id+';')
break
elif count==(0,):
s=input("Sorry!! slot is already booked.\n Do you want to check the
availability of another slot?(y/n))")
if s== "y" :
continue
else:
break
# MurderAndDetective
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (11,'Murder of Dreams','Travis Head',
'Fiction','MurderAndDetective');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (12,'Death on Cricket','Australia',
'Fiction','MurderAndDetective');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (13,'Sad Story','Steve Smith',
'Fiction','MurderAndDetective');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (14,'Taken at the Breath','Glenn Maxwell',
'Fiction','MurderAndDetective');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (15,'Still lake','Marcus Stoinis',
'Fiction','MurderAndDetective');
# sci-Fi
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (16,'Ironman','Tony Stark', 'Fiction','Sci-Fi');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (17,'Hulk','Bruce Banner', 'Fiction','Sci-Fi');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (18,'Black Widow','Natasha', 'Fiction','Sci-Fi');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (19,'Captain America','Steve Roger', 'Fiction','Sci-Fi');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (20,'InRobot','Isaac Asimov', 'Fiction','Sci-Fi');
# Biography
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (21,'Steve Jobs','Walter Isacson', 'Non-Fiction','Biography');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (22,'The diary of the young girl','Anne Frank', 'Non-
Fiction','Biography');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (23,'I am Malala','Malala yousafzai','Non-
Fiction','Biography');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (24,'Becoming','Michelle obama', 'Non-Fiction','Biography');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (25,'Educated','Tara Westover', 'Non-Fiction','Biography');
# History
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (26,'Oscar:A life','Mathew Sturgis', 'Non-Fiction','History');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (27,'Express:Queen Victoria and India','Miles Tailor', 'Non-
Fiction','History');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (28,'Birds in the ancient world','Jeremy Mynott','Non-
Fiction','History');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (29,'Building Anglosascor England','John Blair', 'Non-
Fiction','History');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (30,'The guns of August','Barbara w.Tuchman', 'Non-
Fiction','History');
# Romance
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (31,'Pride and Prejustice','Jane Austen', 'Fiction','Romance');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (32,'Fault in our stars','John green', 'Fiction','Romance');
insert into books (bookId , bookName, bookAuthor ,
journalCategory , journalSubCategory)
values (33,'Will grayson','John green','Fiction','Romance');
SCREENSHOTS of Code