0% found this document useful (0 votes)
7 views19 pages

Library Management System Project Report

Uploaded by

yk952661
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)
7 views19 pages

Library Management System Project Report

Uploaded by

yk952661
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

A Micro -Project Report

On
“Library management system”

Submitted on “Date”
By
[Link] Yahya 2205690326
[Link] Sauleh 2205690322
[Link] Asad 2205690325

Under Guidance of

“Iffat Ma’am”
In
Three Years Diploma Program in Engineering & Technology of
Maharashtra State Board of Technical Education, Mumbai (Autonomous)

ISO 9001:2015

At
Anjuman-I-Islam’s Abdul RazzaqKalsekar Polytechnic

Academic Year [ 2023-2024 ]


MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

Certificate
This is to certify that Mr. /Ms./Mrs.

Enrollment No:of Semester of Diploma in Computer


Engineering at Anjuman I Islam’s Abdul RazzakKalsekar Polytechnic, has
completed the Micro Project satisfactorily in Subject in the academic year 20 -
20 as per the MSBTE prescribed curriculum of I Scheme.

Place: Enrollment No:

Date: / /2022 Exam Seat No:

Project Guide Head of the Department Principal

Head of
Institute
Annexure – I

Micro-Project Proposal

Title of Micro-Project

1.0Aims/Benefits of the Micro-Project:


………………………………………………………………………………………………
………………………………………………………………………………………………
2.0Course Outcomes Addressed:
a) ……………………………………..
b) ……………………………………..
c) ……………………………………..
d) ……………………………………..
3.0Proposed Methodology (Brief description about procedure to be used in project)
………………………………………………………………………………………………
………………………………………………………………………………………………
4.0Action Plan
Sr Details of Activity Planned Planned Name of the
No. Start Date Finish Date Responsible Team
Members

5.0Resources Required
Sr Name of Specifications Qty. Remarks
No. Resources/Material

Names of Team Members with Enrollment No.:


1. ………………………………………………………………
2. ………………………………………………………………
3. ………………………………………………………………
4. ………………………………………………………………

Annexure – II

Micro-Project Proposal
Title of Micro-Project

1.0Rationale (Importance of project):


………………………………………………………………………………………………
………………………………………………………………………………………………
2.0Aims/Benefits of the Micro-Project:
………………………………………………………………………………………………
………………………………………………………………………………………………
3.0Course Outcomes Addressed:
a) ……………………………………..
b) ……………………………………..
c) ……………………………………..
d) ……………………………………..
4.0Literature Review
………………………………………………………………………………………………
………………………………………………………………………………………………
5.0Actual Method Followed (Step wise execution)
………………………………………………………………………………………………
………………………………………………………………………………………………
6.0Actual Resources Used:
Sr Name of Specifications Qty. Remarks
No. Resources/Material

Skill Developed:
………………………………………………………………………………………………
………………………………………………………………………………………………
Application:
………………………………………
………………………………………
Names of Team Members with Enrollment No.:
1. ………………………………………………………………
2. ………………………………………………………………
3. ………………………………………………………………
4. ………………………………………………………………

ANNEXURE II
Evaluation Sheet for Micro Project

Academic Year: Name of Faculty:

Course: Course Code: Semester:

Title of the Project: …………………………………………………………………………....

COs Addressed by the Micro Project:

1.……………………………………………… 2.
………………………………………………
3.………………………………………………

Major Learning Outcomes achieved by the students during this Project:

(a) Practical Outcome: ……………………………………………………………………


…………………………………………………………………………………………..
..........................................................................................................................................
(b) Unit Outcomes in Cognitive Domain: ………….........................................................
………………………………………………………………………………………….
…………………………………………………………………………………………..
(c) Questions in effective Domain: ………………………………………………………
…………………………………………………………………………………………..
…………………………………………………………………………………………..

Comments/Suggestions about team work/leadership/inter-personal communication (if


any)

…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
Marks out of 6 Marks out of 4 for
Enrollment Total out
Students Name for performance performance in
No. of 10
of group activity oral/ presentation

(Name and Signature of the Faculty)

Abstract:
The Library Management System (LMS) is a simple command-
line application that allows users to manage a library. The LMS
uses an ArrayList to store LibraryItem objects, which can be
either books or other types of library items. The Book class
extends the Item class and includes an author field. The Library
class contains the ArrayList of LibraryItem objects and provides
methods to add, display, and remove items.
Introduction:

The Library Management System (LMS) is a simple command-line


application that allows users to manage a library. Users can add
books, display all books, remove books, and exit the application.
The LMS uses an ArrayList to store LibraryItem objects, which can
be either books or other types of library items. The Book class
extends the Item class and includes an author field. The Library
class contains the ArrayList of LibraryItem objects and provides
methods to add, display, and remove items.

Working:

The LMS starts by creating a Library object and a Scanner object to


read user input. It then enters a loop where it displays a menu to the
user and prompts them to enter their choice. The user's choice
determines the action to be performed.
Add Book: The user enters the book title and author. A new Book
object is created with these details and added to the ArrayList of
LibraryItem objects.
Display Books: The LMS displays the title and author of each book
in the ArrayList.
Remove Book: The user enters the title of the book they want to
remove. The LMS searches the ArrayList for a book with the same
title. If found, the book is removed from the ArrayList and a success
message is displayed. If not found, an exception is thrown and the
error message is displayed.
Exit: The user exits the LMS.
Algorithm:
The algorithm for the provided Java code can be outlined as follows:
1. Start
2. Initialize the Library object
3. Display the main menu to the user
4. Read the user's choice
5. Perform the selected action:
a. If the user chose to add a book:
1. Prompt the user to enter the book's title and author
2. Create a new Book object with the provided title and author
3. Add the new Book object to the Library object's list of items
4. Return to the main menu
b. If the user chose to display books:
1. Call the Library object's displayItems() method
2. Return to the main menu
c. If the user chose to remove a book:
1. Prompt the user to enter the title of the book to remove
2. Call the Library object's removeItem() method with the provided title
3. If the book was found and removed, display a success message
4. If the book was not found, display an error message
5. Return to the main menu
d. If the user chose to exit:
1. Display a message indicating that the program is exiting
2. Exit the program
6. Repeat steps 3-5 until the user chooses to exit
7. End
Hardware and Software Requirements:
 Hardware Requirements:

o Computer or Laptop: Any modern computer or laptop capable of running Java programs.
o Display: A monitor or screen with a resolution suitable for displaying the console
interface.
o Input Devices: Keyboard and mouse or touchpad for interacting with the console
interface.
o Internet Connection: Optional, unless the program requires online functionalities such as
accessing external databases or APIs.

 Software Requirements:

o Java Development Kit (JDK): Required for compiling and running Java code. The JDK
version should be compatible with the program's source code.
o Integrated Development Environment (IDE): Optional but recommended for easier code
development and debugging. IDEs like IntelliJ IDEA, Eclipse, or NetBeans are suitable
choices.
o Operating System: The program should be compatible with various operating systems
such as Windows, macOS, Linux, etc., as long as the required JDK version is available
for the chosen OS.
o Text Editor: A basic text editor is necessary for writing Java code if an IDE is not used.
Examples include Notepad++ (Windows), TextEdit (macOS), or gedit (Linux).
Source Code:
import [Link];
import [Link];

interface LibraryItem {
String getTitle();
}

class Item implements LibraryItem {


protected String title;

public Item(String title) {


[Link] = title;
}

public String getTitle() {


return title;
}
}

class Book extends Item {


private String author;

public Book(String title, String author) {


super(title);
[Link] = author;
}

public String getAuthor() {


return author;
}
}
class BookNotFoundException extends Exception {
public BookNotFoundException(String message) {
super(message);
}
}

class Library {
private ArrayList<LibraryItem> items;

public Library() {
items = new ArrayList<>();
}

public void addItem(LibraryItem item) {


[Link](item);
}

public void displayItems() {


[Link]("Available Items:");
for (LibraryItem item : items) {
if (item instanceof Book) {
Book book = (Book) item;
[Link]("Type: Book, Title: " + [Link]() + ", Author: " +
[Link]());
}
}
}

public void removeItem(String title) throws BookNotFoundException {


boolean removed = false;
for (LibraryItem item : items) {
if ([Link]().equalsIgnoreCase(title)) {
[Link](item);
[Link]("Book removed successfully.");
removed = true;
break;
}
}
if (!removed) {
throw new BookNotFoundException("Book not found.");
}
}
}

public class LibraryEx {


public static void main(String[] args) {
Scanner scanner = new Scanner([Link]);
Library library = new Library();

while (true) {
[Link]("\nLibrary Management System Menu:");
[Link]("1. Add Book");
[Link]("2. Display Books");
[Link]("3. Remove Book");
[Link]("4. Exit");
[Link]("Enter your choice: ");
int choice = [Link]();
[Link](); // Consume newline

switch (choice) {
case 1:
[Link]("Enter book title: ");
String title = [Link]();
[Link]("Enter author name: ");
String author = [Link]();
[Link](new Book(title, author));
break;
case 2:
[Link]();
break;
case 3:
[Link]("Enter title of the book to remove: ");
String bookTitle = [Link]();
try {
[Link](bookTitle);
} catch (BookNotFoundException e) {
[Link]([Link]());
}
break;
case 4:
[Link]("Exiting...");
[Link](0);
default:
[Link]("Invalid choice. Please enter a number from 1 to 4.");
}
}
}
}

Output:
Usage: javac <options> <source files>
use -help for a list of possible options

Library Management System Menu:


1. Add Book
2. Display Books
3. Remove Book
4. Exit
Enter your choice: 1
Enter book title: kanchwala
Enter author name: hasnain

Library Management System Menu:


1. Add Book
2. Display Books
3. Remove Book
4. Exit
Enter your choice: 2
Available Items:
Type: Book, Title: kanchwala, Author: hasnain

Library Management System Menu:


1. Add Book
2. Display Books
3. Remove Book
4. Exit
Enter your choice: 3
Enter title of the book to remove: kanchwala
Book removed successfully.
Library Management System Menu:
1. Add Book
2. Display Books
3. Remove Book
4. Exit
Enter your choice: 1
Enter book title: chipi
Enter author name: chapa

Library Management System Menu:


1. Add Book
2. Display Books
3. Remove Book
4. Exit
Enter your choice: 2
Available Items:
Type: Book, Title: chipi , Author: chapa

Library Management System Menu:


1. Add Book
2. Display Books
3. Remove Book
4. Exit
Enter your choice: chapa
Exception in thread "main" [Link]
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])
at [Link]([Link])

Conclusion:
The Library Management System (LMS) is a useful tool for
managing a library. It allows users to add books, display all books,
remove books, and exit the application. The LMS uses an ArrayList
to store LibraryItem objects, which can be either books or other
types of library items. The Book class extends the Item class and
includes an author field. The Library class contains the ArrayList of
LibraryItem objects and provides methods to add, display, and
remove items
Reference
Library management system in Java - Javatpoint

Iffat ma’am

You might also like