0% found this document useful (0 votes)
24 views16 pages

Ip Project

Uploaded by

aayushray90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views16 pages

Ip Project

Uploaded by

aayushray90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

DSP INTERNATIONAL SCHOOL, KAMOTHE

Lead to Serve

MATHEMATICS INVESTIGATORY PROJECT

Topic:

Name:

Standard:

Roll No.:
DSP INTERNATIONAL
SCHOOL

SECTOR-09, KAMOTHE, PANVEL,


NAVI MUMBAI,
RAIGAD DISTRICT

CERTIFICATE
This is to certify that Mr. / Ms. …………………………………………………..

Student of class XII has successfully completed the project

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

Under the guidance of……………………………………………………………..

During year 2024-2025.

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

Teacher In-charge Principal

School Stamp
CONTENTS
● ACKNOWLEDGEMENT
● INTRODUCTION
● PURPOSE OF THIS PROJECT
● FEATURES
● SOURCE CODE
● OUTPUT
● BIBLIOGRAPHY
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to all those who helped me
Complete this project successfully.
Firstly, I would like to express my special thanks to my teacher
Priyanka Kawale ma’am as well as our honourable principal Mrs. Vimmi Kapoor ma’am who
gave me this wonderful project. This project also helped me in doing a lot of
research and I came to know a about so many things.
I am extremely grateful to my parents and my friends who gave
their valuable suggestions and guidance for the completion of my project.
This cooperation and healthy criticism came handy and useful.
Hence, I would like to thank all of the above mentioned people once again.
INTRODUCTION

This project is dedicated to helping libraries efficiently manage their vast


collection of books. Libraries typically have numerous books to organize,
and managing them manually can become overwhelming. To solve this, a
simple yet powerful Library Management System has been designed to
automate and streamline the process. This system enables the library
management to perform essential operations quickly and effectively,
ensuring that books are organized, tracked, and available for users when
needed.
PURPOSE OF THIS PROJECT

Managing a library's book collection is a complex and time-consuming


task. With hundreds or even thousands of books in a library, it becomes
increasingly difficult to track their availability manually.In a library, it is
crucial to maintain an up-to-date record of all the books, their
availability, and their status (whether issued or available for borrowing).
The Library Management System allows for easy management of this
information by automating key functions
FEATURES
● Add Books: The system allows administrators to add new books to the library's collection, including
details such as Book ID, Title, Author, and the number of available copies.
● Display Books: The library's entire collection can be displayed, showing crucial information like the
book's title, author, available copies, and total copies.
● Issue Books: Users can easily issue books. The system checks whether the book is available before
allowing the user to borrow it. When a book is issued, the available copies are automatically updated.
● Return Books: Once a book is returned, the system ensures that the available copies are updated,
reflecting the returned book's availability.
● Data Management with Pandas: The entire system operates using Pandas, a powerful data
manipulation library in Python, which stores book details in a structured and efficient manner. This
ensures easy updates and data management.
Source code

import pandas as pd

# Initialize library as an empty DataFrame

library = pd.DataFrame(columns=["Book ID", "Title", "Author", "Available Copies", "Total Copies"])

# Add a new book to the library

def add_book():

book_id = input("Enter Book ID: ")

title = input("Enter Book Title: ")

author = input("Enter Author Name: ")

copies = int(input("Enter Number of Copies: "))

new_book = pd.DataFrame([[book_id, title, author, copies, copies]], columns=library.columns)

global library

library = pd.concat([library, new_book], ignore_index=True)


# Display all books in the library

def display_books():

if library.empty:

print("No books available.")

else:

print(library)

# Issue a book from the library

def issue_book():

book_id = input("Enter Book ID to issue: ")

if book_id in library["Book ID"].values:

index = library[library["Book ID"] == book_id].index[0]

if library.at[index, "Available Copies"] > 0:

library.at[index, "Available Copies"] -= 1

print(f"Book '{library.at[index, 'Title']}' issued.")


else:

print("No copies available.")

else:

print("Book ID not found.")

# Return a book to the library

def return_book():

book_id = input("Enter Book ID to return: ")

if book_id in library["Book ID"].values:

index = library[library["Book ID"] == book_id].index[0]

library.at[index, "Available Copies"] += 1

print(f"Book '{library.at[index, 'Title']}' returned.")

else:

print("Book ID not found.")


# Main menu to interact with the system

while True:

print("\n1. Add Book\n2. Display Books\n3. Issue Book\n4. Return Book\n5. Exit")

choice = input("Enter choice: ")

if choice == "1":

add_book()

elif choice == "2":

display_books()

elif choice == "3":

issue_book()

elif choice == "4":

return_book()

elif choice == "5":

break

else:

print("Invalid choice.")
OUTPUT

1. Add Book

2. Display Books

3. Issue Book

4. Return Book

5. Exit

Enter choice: 1

Enter Book ID: 101

Enter Book Title: Python Programming

Enter Author Name: John Doe

Enter Number of Copies: 5


1. Add Book

2. Display Books

3. Issue Book

4. Return Book

5. Exit

Enter choice: 2

Book ID Title Author Available Copies Total Copies

0 101 Python Programming John Doe 5 5

1. Add Book

2. Display Books

3. Issue Book

4. Return Book

5. Exit

Enter choice: 3

Enter Book ID to issue: 101

Book 'Python Programming' issued.


1. Add Book

2. Display Books

3. Issue Book

4. Return Book

5. Exit

Enter choice: 2

Book ID Title Author Available Copies Total Copies

0 101 Python Programming John Doe 4 5

1. Add Book

2. Display Books

3. Issue Book

4. Return Book

5. Exit

Enter choice: 4

Enter Book ID to return: 101

Book 'Python Programming' returned.


1. Add Book

2. Display Books

3. Issue Book

4. Return Book

5. Exit

Enter choice: 2

Book ID Title Author Available Copies Total Copies

0 101 Python Programming John Doe 5 5


BIBLIOGRAPHY

● Books:
○ INFORMATICS PRACTICES :- CLASS [ XI / XII] BY :- SUMITA ARORA
○ INFORMATICS PRACTICES :- NCERT TEXTBOOK
● Websites:
○ https://pandas.pydata.org
○ https://www.python.org
● Tools Used:
○ Python Programming Language
○ Pandas Library
● References:
○ Class notes and teacher guidance.

You might also like