Library Management System: A Case Study Report Submitted by
Library Management System: A Case Study Report Submitted by
Library Management System: A Case Study Report Submitted by
Amrith Krishnan
Karthik Sumod
Keshav Sundararaman
Mahesh Madhav
Sai Sidharth Sriram
Section- CSED
Group Number: 9
Problem Decomposition
Sl. Sub Problem Name Description
No.
1. Add books This enables the admin to add books to the management system.
2. Delete books This will enable the admin to remove any book from the
management system.
3. Search for books This enables the user/admin to search for a specific book from the
management system.
4. View books list This enables the user/admin to get a complete list of available
books from the management system.
5. Edit details This enables the admin to edit any particular detail in the
management system.
Sub problem 1: Add Books
The user should be able to add new entries into the management system, along
with the corresponding code numbers based on order of entry. The code numbers
will simplify the rest of the tasks as well.
Pattern recognition
A survey of other general management systems, anything from airplane reservation
to hotel management systems was done in order to study the structure and
organization behind such code. We noticed the modularization of specific tasks in
the form of functions, and implemented the same feature in our program to make
the code much more efficient, and to eliminate redundancy.
1. Function: addbooks()
Comment:
Definition:
1. Start.
2. DECLARE string array bk_name[totalBooks]
3. DECLARE integer i
4. OUTPUT “Add books of choice sequentially:”
5. for (i=0; i<totalBooks; i++)
{ INPUT bk_name[i] }
Comment:
Definition:
1. Start
2. DECLARE int pos, c.
3. OUTPUT the entire book list with their corresponding code
(position) numbers.
4. OUTPUT “Enter the code corresponding to the book to be removed.”
5. INPUT pos.
6. If (pos >= totalBooks + 1)
else
}
9. Stop
3. Function: searchbooks()
Comment:
This feature will make book discovery much easier, allowing the end user to
search for books either by their name or by their code.
Definition:
1. Start
2. DECLARE integer i
3. DECLARE string t
4. OUTPUT "Select your Book from the list below:"
5. for (i=0; i<=totalBooks-1; i++)
{ OUTPUT bookName[i] }
6. INPUT t
7. for (i=0; i<=totalBooks-1; i++)
{ if (bookName[i]==t)
4. Function: viewbooks()
Comment:
Using the above function, the user will be able to view the various list of
books available at the library which have been added prior using the
function addbooks and alternatively the user will also be given the choice to
view the various books based on their genre.
Definition:
1. Start
2. DECLARE int x
3. OUTPUT “The available books will be listed below”
4. for (x=0; x<=i-1; x++)
{OUTPUT bookName[x] }
5. Function: editdetails()
Comment:
The book list is displayed using a for-loop to help the administrator make a
selection. Once the selection is made, another for-loop and an if-statement is used
to track down the selected book entry and a prompt urges the administrator to enter
the new name for the book. The new title is then assigned to the selected
bookName and the edit is reflected successfully.
Definition:
1. Start
2. DECLARE int i
3. for (i=0; i<totalBooks; i++)
{ OUTPUT bookName[i] }
{ if (bookName[i]==choice)
INPUT newName
}