0% found this document useful (0 votes)
13 views12 pages

Practice School[13]

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)
13 views12 pages

Practice School[13]

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/ 12

Practice School-I Project Report Library Management System

Project Report
on

“LIBRARY MANAGEMENT SYSTEM”

Submitted By

Saniya Gawande (CS23D002)

Samiksha Debe (CS23D001)

Section – A

Guided By

Mr. Ratnesh K. Choudhary

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

S. B. JAIN INSTITUTE OF TECHNOLOGY


MANAGEMENT AND RESEARCH, NAGPUR.
2023-2024 © S.B.J.I.T.M.R Nagpur 2023

Department of Computer Science & Engineering 1


Practice School-I Project Report Library Management System

S.B. JAIN INSTITUTE OF TECHNOLOGY, MANAGEMENT


& RESEARCH, NAGPUR.
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
SESSION 2023-2024

CERTIFICATE

This is to certify that the Project Report titled “LIBRARY MANAGEMENT SYSTEM”
submitted by Saniya Gawande and Samiksha Debe has been accepted under the guidance of
Mr. Ratnesh K. Choudhary. This Project work is Carried out for the partial fulfilment of
“Practice School-I” Course Work in III Semester of Bachelor of Technology in Computer
Science & Engineering, S. B. Jain Institute of Technology, Management & Research,
Nagpur.

Mr. Ratnesh K. Choudhary Dr. Mrudula Nimbarte


Assistant Professor Head of Department
(Project Guide)

Department of Computer Science & Engineering 2


Practice School-I Project Report Library Management System

INDEX

1. Project Description........................................................................................04
2. Source Code (Program).................................................................................05

3. Functions (Modules) Description…………….…………………………….06


4. Result (Output)..............................................................................................07

5. Conclusion………………………………………………………………….08
6. References

Department of Computer Science & Engineering 3


Practice School-I Project Report Library Management System

Project Description

 The Library Management System is a software application designed to automate and


streamline the processes involved in managing a library.

 This project aims to provide an efficient and user-friendly solution for librarians and
library users to manage and access library resources.

 The system is implemented in the C programming language and is equipped with features
that facilitate various library operations.

Department of Computer Science & Engineering 4


Practice School-I Project Report Library Management System

Source Code (Program)

// C program for the E-library


// Management System
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// Create Structure of Library


struct library {
char book_name[20];
char author[20];
int pages;
float price;
};

// Driver Code
int main()
{
// Create a instance
struct library lib[100];

char ar_nm[30], bk_nm[30];

// Keep the track of the number of


// of books available in the library
int i, input, count;

i = input = count = 0;

// Iterate the loop


while (input != 5) {

printf("\n\n********######"
"WELCOME TO E-LIBRARY "
"#####********\n");
printf("\n\n1. Add book infor"
"mation\n2. Display "
"book information\n");
printf("3. List all books of "
"given author\n");
printf(

Department of Computer Science & Engineering 5


Practice School-I Project Report Library Management System

"4. List the count of book"


"s in the library\n");
printf("5. Exit");

// Enter the book details


printf("\n\nEnter one of "
"the above: ");
scanf("%d", &input);

// Process the input


switch (input) {

// Add book
case 1:

printf("Enter book name = ");


scanf("%s", lib[i].book_name);

printf("Enter author name = ");


scanf("%s", lib[i].author);

printf("Enter pages = ");


scanf("%d", &lib[i].pages);

printf("Enter price = ");


scanf("%f", &lib[i].price);
count++;

break;

// Print book information


case 2:
printf("you have entered"
" the following "
"information\n");
for (i = 0; i < count; i++) {

printf("book name = %s",


lib[i].book_name);

printf("\t author name = %s",


lib[i].author);

Department of Computer Science & Engineering 6


Practice School-I Project Report Library Management System

printf("\t pages = %d",


lib[i].pages);

printf("\t price = %f",


lib[i].price);
}
break;

// Take the author name as input


case 3:
printf("Enter author name : ");
scanf("%s", ar_nm);
for (i = 0; i < count; i++) {

if (strcmp(ar_nm,
lib[i].author)
== 0)
printf("%s %s %d %f",
lib[i].book_name,
lib[i].author,
lib[i].pages,
lib[i].price);
}
break;

// Print total count


case 4:
printf("\n No of books in "
"brary : %d",
count);
break;
case 5:
exit(0);
}
}
return 0;
}

Department of Computer Science & Engineering 7


Practice School-I Project Report Library Management System

Function (Modules) Description

In a Library Management System (LMS) project implemented in C, various function modules are
designed to handle specific tasks and functionalities. Each module encapsulates a set of related
operations to achieve a specific goal. Below is a description of key function modules in a C-based
Library Management System.

1.User Management Module:


Description:
o Manages user-related operations, including adding, updating, and deleting user profiles.
o Assigns user roles such as librarian, student, or faculty.
Functions:
o addUser(): Adds a new user to the system. o updateUser(): Modifies user details. o
deleteUser(): Removes a user from the system.
o assignUserRole(): Sets the role of a user.

2. Book Management Module:


Description: o Handles book-related tasks, such as adding, updating, and deleting book
records. o Categorizes books based on genre, author, and publication date.
o Tracks availability and location of each book.
Functions:
o addBook(): Adds a new book to the library. o updateBook(): Modifies book details.
o deleteBook(): Removes a book from the library. o searchBook(): Finds books based on
title, author, or genre.

3. Transaction Management Module:


Description:
o Manages book transactions, including checkouts, returns, and late fee calculations.
o Maintains a transaction history for each user.
Functions:
o checkoutBook(): Records a book checkout. o returnBook(): Records a book return. o
calculateLateFees(): Computes late fees for overdue books.
o viewTransactionHistory(): Displays a user's transaction history.

Department of Computer Science & Engineering 8


Practice School-I Project Report Library Management System

4. Authentication Module:
Description: o Ensures secure access to the system by implementing user
authentication.
o Validates user credentials before allowing access to sensitive functionalities.
Functions:
o login(): Authenticates a user based on provided credentials.
o logout(): Logs out the current user.

5. File Handling Module:


Description:
o Manages reading from and writing to files for persistent data storage.
o Ensures data integrity and provides a mechanism for data retrieval.
Functions:
o readFromFile(): Reads data from a file.
o writeToFile(): Writes data to a file.

6. Interface Module:
Description: o Handles the user interface, providing a menu-driven system for user
interactions.
o Displays information, prompts, and menus to guide users through functionalities.
Functions:
o displayMenu(): Shows the main menu. o getUserInput(): Collects and validates user
input.

7. Main Module:
Description:
o Serves as the entry point of the program, orchestrating the execution flow. o Calls
functions from other modules to perform high-level tasks.
Functions:
o main(): The starting point of the program.

Department of Computer Science & Engineering 9


Practice School-I Project Report Library Management System

Result (Output)

Fig.4.1

Fig.4.2

Department of Computer Science & Engineering 10


Practice School-I Project Report Library Management System

Fig.4.3

fig.4.4

fig.4.5

Department of Computer Science & Engineering 11


Practice School-I Project Report Library Management System

Conclusion

We have analyzed the project requirements, designed and developed the project to form Library
management system in c. We have also executed the project with different input scenario and
observed the output. The software performs all tasks as per expectation.

References

1. https://www.javatpoint.com/library-management-system-in-c
2. https://www.codewithc.com/mini-project-in-c-library-management-system/
3. https://www.geeksforgeeks.org/
4. https://stackoverflow.com/
5. https://www.tutorialspoint.com/index.htm

Department of Computer Science & Engineering 12

You might also like