CS PROJECT-1 (SNM) 3
CS PROJECT-1 (SNM) 3
SYSTEM
By -
Sai Santosh
K.R.Narien
M.Manoranjan
LIBRARY MANAGEMENT SYSTEM
INTRODUCTION
A library management system is a software that is designed to
maintain the database of new books and the books that are
the library, how many books are issued, or how many books
manage all the data efficiently and orderly using this system.
errors.
● The system saves time for both the user and the librarian.
With just a click the user can search the books available
● Less error
● Search Facility
● Quick transaction
maintenance.
number.
PHASES OF SYSTEM DEVELOPMENT
LIFE CYCLE
1. Planning Phase :
systems.
7
2. Requirement analysis phase :
● Developers may:
development teams.
3. Design phase :
● The design stage is a necessary precursor to the main
such as its:
User interfaces
System interfaces
● Network and network requirements
● Databases:
4. Development phase :
retested.
6. Implementation phase :
This can include handling residual bugs that were not able
to be patched before launch or resolving new issues that
crop up due to user reports. Larger systems may require
longer maintenance stages compared to smaller systems.
REQUIREMENTS
HARDWARE :
This can include handling residual bugs that were not able
to be patched before launch or resolving new issues that
crop up due to user reports. Larger systems may require
longer maintenance stages compared to smaller systems.
SOFTWARE :
import mysql.connector as ms
cur = con.cursor()
def display_options():
print("7. Exit")
return cur.fetchall()
while True:
display_options()
try:
except ValueError:
continue
def add_book():
try:
except ValueError:
con.commit()
add_book()
def search_book():
if cat == 'bookname':
else:
query = "SELECT * FROM library WHERE
Category = %s"
print(record)
search_book()
def remove_book():
cur.execute(query, (bname1,))
con.commit()
print("Book deleted.")
remove_book()
def add_cust():
try:
except ValueError:
return
con.commit()
add_cust()
def search_cust():
print(record)
search_cust()
def remove_cust():
cur.execute(query, (cname1,))
con.commit()
print("Customer deleted.")
remove_cust()
print("Thank you")
break
else:
print("Invalid option. Please choose a number between 1
and 7.")
cur.close()
con.close()
SQL CODE:
);
);
VALUES
VALUES
1. Add book
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
Enter the category of the book (Comic, Story, Novel, Study Guide,
Subject): Programming
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
markdown
1. Add book
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
Enter the option (1,2,3,4,5,6,7): 3
Book deleted.
1. Add book
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
Enter the category of the book (Comic, Story, Novel, Study Guide,
Subject): Programming
1. Add book
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
1. Add book
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
Customer deleted.
1. Add book
2. Search book
3. Remove book
4. Add customer
5. Search customer
6. Remove customer
7. Exit
Thank you
Invalid Option:
For option 4 :
5. Exit
Enter the category of the book (1. English 2. Maths 3.Science 4. Social Studies
5.Computer Science 6. Novels 7. Story Books 8. Others): 5 The books in Computer
Science category are:
['Learn python', 'learn c++', 'Learn Java', 'Learn C#', 'Learn HTML', 'Learn CSS', 'Learn
Javascript']