0% found this document useful (0 votes)
10 views

cs ppt

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

cs ppt

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Computer Science

Project

Mrs. Hrithik Aarush Verma


Gautam Class : XII-E
C.S
COMPUTER SCIENCE
PROJECT FILE
Library Database Management
System

Name : Aarush Verma


Roll Number :
Class : XII –E
Subject : A.I
School : Seth Anandram Jaipuria School
Branch : Lucknow
Class Teacher : Mrs. Shradha Sharma
Subject Teacher
CREDITS: This :presentation
Mr. Hrithik Gautam
template was created by
Slidesgo, including icons by Flaticon and infographics &
images by Freepik
Acknowledgem
ent
• I would like to express my heartfelt gratitude towards
my Computer Science teacher Mr. Hrithik Gautam sir
who gave me this golden opportunity and
encouragement to work on the wonderful topic of
“Library Management System”
• I also extend my profound thanks to Mrs. Poonam
Kochitty ,our principal, for providing the necessary
resources and a conducive environment for this project.
Finally, I would like to thank my family and friends for
their constant support and understanding throughout
this journey.
Index:
1. Introduction

2. Features

3. Database

4. User Interface

5. Functions

6. Output

7. Conclusion
Introduction:
• The Library Management System is a Python-
based tool designed to simplify library
operations. Using SQLite for data management,
it provides essential features like adding,
viewing, searching, updating, and deleting books
in the library's inventory. Ideal for small to
medium-sized libraries or personal collections,
the system offers a user-friendly, command-line
interface, making it accessible to users with
minimal technical knowledge. By streamlining
core tasks, this application helps maintain an
organized, efficient library, whether for
professional or personal use, ensuring that book
management is straightforward and reliable.
Features:
 Add a Book: Allows users to add new books to
the library database.

 View All Books: Displays a list of all books


currently in the library.

 Search Books: Allows users to search for


books based on title, author, publication year, or
ISBN.

 Update Book Information: Enables users to


update the details of an existing book.

 Delete a Book: Allows users to remove a book


from the library database.

 Exit: Closes the application.


Database:
 . SQLite Database: The database is stored in a
file named “library.db”. This file is created
automatically in the script's directory if it doesn't
already exist.

 Books Table: The system uses a single table,


books, with the scheme:

Column Type Description


Primary key, auto-
id INTEGER
incremented
title TEXT Title of the book

author TEXT Author of the book

Publication year of
year INTEGER
the book

Serial number of the


S.no TEXT
book
User
Interface:
The system provides a text-based menu for users
to interact with. The menu includes the following
options:

1. Add Book: Prompts the user to enter the title,


author, publication year, and S.NO of the book
they want to add.

2. View All Books: Displays a list of all books in


the library.

3. Search Books: Prompts the user to enter


search criteria (title, author, year, S.NO) and
displays matching books.

4. Update Book: Prompts the user to enter the ID


of the book they want to update, along with the
new details.

5. Delete Book: Prompts the user to enter the ID


of the book they want to delete.

6. Exit: Closes the application.


Functions:
• Add Books:

1. add_book(title, author, year, S.no)

Adds a new book to the books table in the


database.

 Parameters:

o title (str): The title of the book.

o author (str): The author of the book.

o year (int): The publication year of the


book (optional).

o S.no (str): The S.NO number of the


book (optional).

 Returns: None
Functions:
• Code:

• Output:
Functions:
• View Books:

2. view_books()

Retrieves and displays all books stored in


the books table.

 Parameters: None

 Returns: None
Functions:
• Code:

• Output:
Functions:
• Search Books:

3. search_books(title="", author="",
year="", S.no="")

Searches for books in the books table that


match the given criteria.

 Parameters:

o title (str): The title of the book


(optional).

o author (str): The author of the book


(optional).

o year (int): The publication year of the


book (optional).

o S.no (str): The S.NO number of the


book (optional).

 Returns: List of tuples representing


matching books.
Functions:
• Code:

• Output:
Functions:
• Update Book:

4. update_book(book_id, title, author,


year, S.no)

Updates the information of an existing book


in the books table.

 Parameters:

o book_id (int): The ID of the book to


update.

o title (str): The new title of the book.

o author (str): The new author of the


book.

o year (int): The new publication year


of the book.

o S.no (str): The new S.NO number of


the book.

Returns: None
Functions:
• Code:

• Output:
Functions:
• Output:
Functions:
• Delete Book:

5. delete_book(book_id)

Deletes a book from the books table based


on its ID.

 Parameters:

o book_id (int): The ID of the book to


delete.

 Returns: None

• Code:
Functions:
• Output:
Conclusion:
• The Library Management System is a practical,
user-friendly solution for managing book
inventories in small to medium-sized libraries or
personal collections. With its core features—
adding, viewing, searching, updating, and
deleting books—this Python-based application
simplifies the daily operations of library
management. By leveraging SQLite, it ensures
reliable data storage while maintaining ease of
use. Whether you're a librarian or a book
enthusiast, this system provides the essential
tools to keep your collection well-organized and
accessible, making library management a
seamless and efficient process
Bibliography
:
1. Hrithik Sir

2. Sumita Arora

3. Ncert Class XII Computer Science

4. GitHub

5. Google
Thank You

CREDITS: This presentation template was created by


Slidesgo, including icons by Flaticon and infographics &
images by Freepik

You might also like