0% found this document useful (0 votes)
38 views11 pages

Ps (Library Managemetn System)

This document describes a team project to build a library management system using C programming language. It includes the names and details of the team members, followed by an introduction describing the purpose and benefits of a library management system. It then provides details of the concepts used in building the system like data structures, functions for adding, searching and displaying books. The source code and output of the system is also included. It concludes by stating that a library management system is an essential tool for librarians to effectively manage library processes and improve patron experience.

Uploaded by

999 plus Gamer
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)
38 views11 pages

Ps (Library Managemetn System)

This document describes a team project to build a library management system using C programming language. It includes the names and details of the team members, followed by an introduction describing the purpose and benefits of a library management system. It then provides details of the concepts used in building the system like data structures, functions for adding, searching and displaying books. The source code and output of the system is also included. It concludes by stating that a library management system is an essential tool for librarians to effectively manage library processes and improve patron experience.

Uploaded by

999 plus Gamer
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/ 11

A REPORT SUBMITTED AS A PART OF EXPERIENTIAL LEARNING ON PROBLEM SOLVING

(CSE23201)

C. V. Raman Global University, Bhubaneswar,


Odisha, India 2023

Topic -: LIBRARY MANAGEMENT


SYSTEM
TEAM MEMBER
Name - SURABHI NAIK
Name - MOHIT KUMAR
Regd. No - 2201020337
Regd. No - 2201020610
Email - [email protected]
Email - [email protected]
Contact no. - 7894570672
Contact no. - 9110916852

Name - Y SHERISHA Name - SACHIN KUMAR SINGH


Regd. No - 22010203340 Regd. No - 2201020611
Email - [email protected] Email - [email protected]
Contact no. - 9749071235 Contact no. - 8227012071

Name - TANUSHREE DHURUA Name - SUBHAM KUMAR SABAT


Regd. No - 2201020339 Regd. No - 2201020336
Email - [email protected] Email - [email protected]
Contact no. - 7991095196 Contact no. - 7981707030

Name - SATRAJEET SINGH Name - RITIK KUMAR PANDEY


Regd. No - 22010203341 Regd. No - 22010203332
Email - [email protected] Email - [email protected]
Contact no. - 9199690050 Contact no. - 9199690050
Content
S.No TOPIC
1 Introduction
2 Application
3 Concepts Used
4 Source-Code
5 Output
6 Conclusion
Introduction
We must use the Library Management System in order to
have secured storage of book details contained within the
Library ( probably ). This feature is generally enabled in order
to protect the data, which is highly confidential. This is one of
the simplest Management systems built within the system
using the C programming language.

The Library Management System overviews the concept of


storing and generating all the data or records of the book
contained within the library. This can be known as a general
database which stores the data of the book details. It helps in
searching the details by reducing time consumption. Not only
protects the details of the books in the library but also saves
all the data up to date without missing any. This is the major
benefit of the Library Management System.

Let us construct a C program to perform the operations


such as " Adding the book details ", " Displaying the book
details ", and " Finding the total number of books
in the library ".
Application
What is Library Management System, and why should
we use it?
The concept of storing or recording the details of books embedded
within the user's system is known as Library Management System. It
details the type of books, the list of books, etc. Only a person with the
login credentials can access the Library Management System. That person
can perform many operations like adding the book details, removing the
book details, displaying the book details, modifying the book details, etc.
The system excludes the use of paper work by managing all the book
information electronically.
Admin updating : The system by providing the new books arrival in
system and their availability thus students need not to go to library for
issuing purpose.
The system has books well organized and systematically arranged in
different categories in the system so that user can easily search and find
the book. Thus, it saves human efforts and resources.
Library Management software: IN can be installed in a range of
library organizations, ranging from academic libraries to joint use and
public libraries. The library management software has security measures
applied as per the cataloguing of users.
Library management system software designed with a consistent, intuitive
interface which meets the needs of all information inquirer. Library
management system software is ample and suitable for both small and
large libraries.
Automation of the library administrative activities:
Library management software will help the librarian to know all details
about a specific book/journal at the click of a button. Library Management
Software is fully adaptable with Bar code. Bar Codes for Library
Management eases the everyday tasks of big Libraries.
C Language
Concepts used
C is a general-purpose, low-level programming language developed in the 1970s by Dennis Ritchie.
It is widely used for developing operating systems, embedded systems, and various applications. It is
known for its efficiency and versatility

Studio.h:
"studio.h" is not a standard C library or a widely recognized component. It is possible that it is a
header file from a specific software development environment, library or framework. Can you
provide more context or specify what you would like to know about it

Stdlib.h:
stdlib.h is a standard C library header file that provides various utility functions, including
memory allocation, random number generation, and conversion of numbers to strings. It also
defines several macros and types, such as the NULL pointer constant and the size_t type. Some
of the most commonly used functions in stdlib.h are malloc(), calloc(), free(), atoi(), and rand().

String.h:
string.h is a standard C library header file that provides various string manipulation functions,
such as copying, concatenating, comparing, and searching strings. It also defines several
macros, such as NULL and size_t, as well as several types, such as size_t. Some of the most
commonly used functions in string.h are strcpy(), strcat(), strcmp(), strlen(), and memset().

While loop:
A while loop is a control flow statement in programming that allows the execution of a block
of code repeatedly as long as a specified condition is true.
There is evaluated before each iteration of the loop. If it is true, the statement(s) inside the
loop are executed, and the process repeats until the condition becomes false. If the condition

Switch case:
A switch case is a control flow statement in programming that allows the selection of an execution
path based on a specified expression value. It is often used as an alternative to multiple if-else
statements. its value is compared with the values specified in each case statement. If a match is found,
the statement(s) corresponding to that case are executed. The break statement is used to exit the
switch case, preventing execution of the subsequent cases. If no match is found, the default case is
executed if specified, otherwise the switch case is exited without executing any statement.
Source-Code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct book {
char title[50];
char author[50];
int book_id;
};

void add_book(struct book books[], int


*num_books) {
printf("Enter book title: ");
scanf("%s", books[*num_books].title);
printf("Enter author name: ");
scanf("%s", books[*num_books].author);
printf("Enter book ID: ");
scanf("%d", &books[*num_books].book_id);
(*num_books)++;
}

void search_book(struct book books[], int


num_books) {
int id;
printf("Enter book ID: ");
scanf("%d", &id);
for (int i = 0; i < num_books; i++) {
if (books[i].book_id == id) {
printf("Book Title: %s\n", books[i].title);
printf("Book Author: %s\n",
books[i].author);
printf("Book ID: %d\n", books[i].book_id);
return;
}
}
printf("Book not found.\n");
}
void display_books(struct book books[], int
num_books) {
for (int i = 0; i < num_books; i++) {
printf("Book Title: %s\n", books[i].title);
printf("Book Author: %s\n", books[i].author);
printf("Book ID: %d\n", books[i].book_id);
printf("\n");
}
}

int main() {
struct book books[100];
int num_books = 0;
int choice;
while (1) {
printf("1. Add Book\n");
printf("2. Search Book\n");
printf("3. Display All Books\n");
printf("4. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch(choice) {
case 1:
add_book(books, &num_books);
break;
case 2:
search_book(books, num_books);
break;
case 3:
display_books(books, num_books);
break;
case 4:
exit(0);
break;
default:
printf("Invalid Choice\n");
}
}
return 0;
}
OUTPUT

1. Add Book
2. Search Book
3. Display All Books
4. Exit
Enter your choice: 1
Enter book title: Math
Enter author name: Rd_sharma
Enter book ID: 45678
1. Add Book
2. Search Book
3. Display All Books
4. Exit
Enter your choice: 1
Enter book title: science
Enter author name: s.chand
Enter book ID: 23546
1. Add Book
2. Search Book
3. Display All Books
4. Exit
Enter your choice: 3
Book Title: Math
Book Author: Rd_sharma
Book ID: 45678
OUTPUT
Book Title: science
Book Author: s.chand
Book ID: 23546

1. Add Book
2. Search Book
3. Display All Books
4. Exit
Enter your choice: 2
Enter book ID: 45678
Book Title: Math
Book Author: Rd_sharma
Book ID: 45678
1. Add Book
2. Search Book
3. Display All Books
4. Exit
Enter your choice:
CONCLUSION
A library management system is an essential tool for
librarians to effectively manage and operate a library. It helps
to automate and streamline library processes such as
cataloguing, circulation, and reporting, allowing librarians to
spend more time on providing services to patrons. A good
library management system can also improve the overall
experience for patrons by providing them with an easy-to-use
interface to search and request books, and the system's
reporting capabilities can help the library make informed
decisions about their collections and services.
In conclusion, a library management system is a vital
investment for any library looking to improve its operations
and better serve its patrons. The implementation of a new
system can be a complex process, but with the right vendor
and a collaborative effort between library staff and the
vendor, a library management system can greatly improve the
efficiency and effectiveness of the library's operations.

You might also like