0% found this document useful (0 votes)
33 views23 pages

Library Management Project Code Class X 2024-2025

Uploaded by

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

Library Management Project Code Class X 2024-2025

Uploaded by

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

All India Secondary School Examination

Subject: Artificial Intelligence (417)


Project File
Class: X
Session: 2024-2025

Library Management

Submitted To: - Ms. Shipra Khurana

Submitted by:- Submitted by:-


Name: Name:
Roll No: Roll No:
INDEX

S.No Topic to be covered Signature


1 Acknowledgment
2 Certification
3 Overview of Python
4 Project Overview
5 Source Code
6 Output
7 Bibliography
ACKNOWLEDGEMENT

I wish to express my deep sense of gratitude and indebtedness


to our learned teacher _________, of Rukmini Devi Public
School for his invaluable help, advice and guidance in the
preparation of this project. I am also greatly indebted to our
principal (Ms. Anjali kotnala) and school authorities for
providing me with the facilities and requisite laboratory
conditions for making this practical file. I also extend my thanks
to a number of teachers, my classmates and friends who helped
me to complete this practical file successfully.
[Name of Student]
Certificate

This is to certify that [Name of Student] , student of Class X, of


Rukmini Devi Public School has completed the PROJECT FILE
during the academic year 2024 -2025 towards partial
fulfillment of credit for the ARTIFICIAL INTELLIGENCE (417)
practical evaluation of 2024-25 and submitted satisfactory
report, as compiled in the following pages, under my
supervision.

Internal Examiner
OVEVIEW OF Python
Python is a high-level, interpreted, interactive and object-oriented scripting language.
Python is designed to be highly readable. It uses English keywords frequently where as
other languages use punctuation, and it has fewer syntactical constructions than other
languages.
 Python is Interpreted − Python is processed at runtime by the
interpreter. You do not need to compile your program before executing it. This is
similar to PERL and PHP.
 Python is Interactive − You can actually sit at a Python prompt and
interact with the interpreter directly to write your programs.
 Python is Object-Oriented − Python supports Object-Oriented style or
technique of programming that encapsulates code within objects.
 Python is a Beginner's Language − Python is a great language for the
beginner-level programmers and supports the development of a wide range of
applications from simple text processing to WWW browsers to games.
History of Python
Python was developed by Guido van Rossum in the late eighties and early nineties at
the National Research Institute for Mathematics and Computer Science in the
Netherlands.
Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-
68, SmallTalk, and Unix shell and other scripting languages.
Python is copyrighted. Like Perl, Python source code is now available under the GNU
General Public License (GPL).
Python is now maintained by a core development team at the institute, although Guido
van Rossum still holds a vital role in directing its progress.
Python Features
Python's features include −
 Easy-to-learn − Python has few keywords, simple structure, and a clearly
defined syntax. This allows the student to pick up the language quickly.
 Easy-to-read − Python code is more clearly defined and visible to the
eyes.
 Easy-to-maintain − Python's source code is fairly easy-to-maintain.
 A broad standard library − Python's bulk of the library is very portable
and cross-platform compatible on UNIX, Windows, and Macintosh.
 Interactive Mode − Python has support for an interactive mode which
allows interactive testing and debugging of snippets of code.
 Portable − Python can run on a wide variety of hardware platforms and
has the same interface on all platforms.
 Extendable − You can add low-level modules to the Python interpreter.
These modules enable programmers to add to or customize their tools to be
more efficient.
 Databases − Python provides interfaces to all major commercial
databases.
 GUI Programming − Python supports GUI applications that can be
created and ported to many system calls, libraries and windows systems, such
as Windows MFC, Macintosh, and the X Window system of Unix.
 Scalable − Python provides a better structure and support for large
programs than shell scripting.
Apart from the above-mentioned features, Python has a big list of good features, few
are listed below −
 It supports functional and structured programming methods as well as
OOP.
 It can be used as a scripting language or can be compiled to byte-code
for building large applications.
 It provides very high-level dynamic data types and supports dynamic type
checking.
 It supports automatic garbage collection.
 It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java
PANDAS:
 Pandas is a software library written for the Python programming language for data
manipulation and analysis. In particular, it offers data structures and operations for
manipulating numerical tables and time series.
 To import this library:
import pandas as pd

MATPLOTLIB

 Matplotlib is a plotting library for the Python programming language and its numerical
mathematics extension NumPy.
 To import this library:
import matplotlib.pyplot as plt
import numpy as np
OVEVIEW OF Project

PROJECT ON LIBRARY MANAGEMENT SYSTEM

INTRODUCTION

This project is all about a software for library. It helps the Book Stall Owner to

have a full-fledged control over his/her stall. It adds a new stock, updates an existing

stock and of course prints a receipt to the customer. Besides it displays a graph of the

sales of the current month.

OBJECTIVES OF THE PROJECT

The objective of this project is to let the students apply the programming

knowledge into a real- world situation/problem and exposed the students how

programming skills helps in developing a good software.

1. Write programs utilizing modern software tools.

2. Apply object oriented programming principles effectively when developing small

to medium sized projects.

3. Write effective procedural code to solve small to medium sized problems.

4. Students will demonstrate a breadth of knowledge in computer science, as

exemplified in the areas of systems, theory and software development.

5. Students will demonstrate ability to conduct a research or applied Computer

Science project, requiring writing and presentation skills .


Source Code:
Library Management Project Code:

import pandas as pd

import csv

import matplotlib.pyplot as plt

df=pd.read_csv("lib data.csv",index_col="bookcode")

ch=1

while(True):

print("##--Library Management System--##")

print("Menu of Functions")

print("1.display")

print("2.adddeatils")

print("3.Delete details")

print("4.Dispaly first n record ")

print("5.Display last n record")

print("6.Search by columns")

print("7.Search by row")

print("8.Display bar graph")

print("9.Dispaly line graph")

print("10.exit")

ch=int(input("Enter your choice"))

if ch==1:

print("The Details of Library are:")

print(df)

elif ch==2:
bookcode=input("Enter book code to be added")

bookname=input("Enter the book name")

bookprice=eval(input("Enter the price of book"))

author=input("Enter Author name")

df.loc[bookcode]=[bookname,bookprice,author]

print("record Enter successfully")

elif ch==3:

book_code=int(input("Enter the book code to be deleated"))

if book_code in df.index:

df.drop(book_code, axis=0, inplace=True)# Delete the row

print("Record deleted successfully.")

print(df)

else:

print(f"Book code '{book_code}' not found in the records.")

elif ch==4:

no_record=int(input("enter the record to be displayed from start"))

print(df.head(no_record))

elif ch==5:

no_record=int(input("enter the record to be displayed from start"))

print(df.tail(no_record))

elif ch==6:

B_id=input("Enter the Column name whose record to be Search")

print(df[B_id])

elif ch==7:
x=input("Enter the name of book whose record to be search")

m=x.upper()

result = df[df['bookname'] == m]

# Check if the result is empty or display the rows that match

if not result.empty:

print(result)

else:

print(f"'{x}' not found in the 'bookname' column.")

elif ch==8:

df.plot(kind="bar")

plt.show()

elif ch==9:

df.plot()

plt.ylabel("price")

plt.show()

elif ch==10:

break
Output:
##--Library Management System--##
Menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice1
The Details of Library are:
BookName BookPrice Author
Bookcode
B01 English 200 AK Singal
B02 Hindi 345 SD Sharma
B03 Maths 295 RD Sharma
B04 Science 345 AK Mittal
B05 Social Science 290 ML Sindhu
B06 Computer 345 RK mittal

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit

Enter your choice2


Enter book code to be addedB07
Enter the book nameGeneral knowlaedge
Enter the price of book190
Enter Author nameGK Aggarwal
Record Enter successfully

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice3
Enter the book code to be deleatedB02
None
Record Deleted successfully

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit

Enter your choice4


enter the record to be displayed from start5
BookName BookPrice Author
Bookcode
B01 English 200 AK Singal
B03 Maths 295 RD Sharma
B04 Science 345 AK Mittal
B05 Social Science 290 ML Sindhu
B06 Computer 345 RK mittal

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice 5
Enter the record to be displayed from start4
BookName BookPrice Author
Bookcode
B04 Science 345 AK Mittal
B05 Social Science 290 ML Sindhu
B06 Computer 345 RK mittal
B07 General knowlaedge 190 GK Aggarwal

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice 6
Enter the Column name whose record to be SearchBookName
Bookcode
B01 English
B03 Maths
B04 Science
B05 Social Science
B06 Computer
B07 General knowlaedge
Name: BookName, dtype: object

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice7
Enter the Book code whose record to be SearchB05
BookName Social Science
BookPrice 290
Author ML Sindhu
Name: B05, dtype: object
##--Library Management System--##

menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice8

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice9

##--Library Management System--##


menu
1.display
2.adddeatils
3.Delete details
4.dispaly first n record
5.display last n record
6. Search by columns
7.search by row
8.display bar graph
9.dispaly line graph
10.exit
Enter your choice10
Bibliography
1. Artificial Intelligence Class X (By Orange Publication)
2. www.google.com
3. www.google.com/Python Project
4. www.wikipedia.com/ Python and Panda Project
5. www.dataworld.com

You might also like