You are on page 1of 22

 Introduction

 1.1 PROJECT AIMS


AND OBJECTIVES
 The project aims and
objectives that will be
achieved after completion of
this project are
 discussed in this
subchapter. The aims and
objectives are as follows:
 Online book issue

 Request column for


librarian for providing new


books
 Student login page where

student can find books issued


by him/her and date of return.
 A search column to

search availability of books


 1.1 PROJECT AIMS
AND OBJECTIVES
 The project aims and
objectives that will be
achieved after completion of
this project are
 discussed in this
subchapter. The aims and
objectives are as follows:
 Online book issue

 Request column for

librarian for providing new


books
 Student login page where

student can find books issued


by him/her and date of return.
 A search column to

search availability of books


 1.1 PROJECT AIMS
AND OBJECTIVES
 The project aims and
objectives that will be
achieved after completion of
this project are
 discussed in this
subchapter. The aims and
objectives are as follows:
 Online book issue

 Request column for


librarian for providing new


books
 Student login page where

student can find books issued


by him/her and date of return.
 A search column to

search availability of books


 1.1 PROJECT AIMS
AND OBJECTIVES
 The project aims and
objectives that will be
achieved after completion of
this project are
 discussed in this
subchapter. The aims and
objectives are as follows:
 Online book issue

 Request column for


librarian for providing new


books
 Student login page where

student can find books issued


by him/her and date of return.
 A search column to

search availability of books


 1.1 PROJECT AIMS
AND OBJECTIVES
 The project aims and
objectives that will be
achieved after completion of
this project are
 discussed in this
subchapter. The aims and
objectives are as follows:
 Online book issue

 Request column for


librarian for providing new


books
 Student login page where

student can find books issued


by him/her and date of return.
 A search column to

search availability of books


 1.1 PROJECT AIMS
AND OBJECTIVES
 The project aims and
objectives that will be
achieved after completion of
this project are
 discussed in this
subchapter. The aims and
objectives are as follows:
 Online book issue

 Request column for

librarian for providing new


books
 Student login page where

student can find books issued


by him/her and date of return.
 A search column to

search availability of books


 Library
Management System
 CHAPTER 1
 INTRODUCTION
 This chapter gives an
overview about the aim,
objectives, background and
 operation environment of
the system
Project Aim and Objectives
The project aims and objectives that will be achieved after completion of this
project are discussed in this subchapter. The aims and objectives are as follows:
 Online book issue
 Request column for librarian for providing new books
 Student login page where student can find books issued by him/her and date
of return.
 A search column to search availability of books
Background of Project
Library Management System is an application which refers to library systems
which are generally small or medium in size. It is used by librarian to manage the
library using a computerized system where he/she can record various transactions
like issue of books, return of books, addition of new books, addition of new
students etc. Books and student maintenance modules are also included in this
system which would keep track of the students using the library and also a detailed
description about the books a library contains. With this computerized system there
will be no loss of book record or member record which generally happens when a
non-computerized system is used. All these modules are able to help librarian to
manage the library with more convenience and in a more efficient way as
compared to library systems which are not computerized.
Librarian:
Librarian is a person who manages the library. Librarian has the permission that he
can access the database. There are some tasks which are performed by the
Librarian like:
· Addition of a new book.
· Modification of the book.
· Deletion of the book.
· Searching of the book.
· Managing User

System Requirements
We will focus on the following set of requirements while designing the Library
Management System:

1. Any library member should be able to search books by their title, author,
subject category as well by the publication date.
2. Each book will have a unique identification number and other details
including a rack number which will help to physically locate the book.
3. There could be more than one copy of a book, and library members should
be able to check-out and reserve any copy. We will call each copy of a book,
a book item.
4. The system should be able to retrieve information like who took a particular
book or what are the books checked-out by a specific library member.
5. There should be a maximum limit (5) on how many books a member can
check-out.
6. There should be a maximum limit (10) on how many days a member can
keep a book.
7. The system should be able to collect fines for books returned after the due
date.
8. Members should be able to reserve books that are not currently available.
9. The system should be able to send notifications whenever the reserved books
become available, as well as when the book is not returned within the due
date.
10.Each book and member card will have a unique barcode. The system will be
able to read barcodes from books and members’ library cards.
System Analysis of Library Management System Project
1. Existing System
Various problems of physical system are described below: -
· If one is not very careful then there is a possibility of issuing more than
one book to a user.
· There is a possibility of issuing a book to a user, whose membership is
not there.
· When a user requests for a book, one has to physically check for the
presence of a book in the library
· Answering management query is a time-consuming process.
· Daily keeping a manual record of changes taking place in the library such
as book being issued, book being returned etc can become cumbersome if
the library size is bigger.
2. Proposed System
The LIBRARY MANAGEMENT SYSTEM is a software application which avoids
more manual hours in taking the book, that need to spend in record keeping and
generating reports. Maintaining of user details is complex in manual system in
terms of agreements, royalty and activities. This all have to be maintained in
ledgers or books. Co-coordinators needs to verify each record for small
information also.
· Easy search of book in the online library.
· Avoid the manual work.
· User need not go to the library for Issue any kind of book, he can renewal
the book online.

 Implementation:
Implementation is the stage where the theoretical design is turned into a
working system. The most crucial stage in achieving a new successful system and
in giving confidence on the new system for the users that it will work efficiently
and effectively. The system can be implemented only after thorough testing is done
and if it is found to work according to the specification. It involves careful
planning, investigation of the current system and its constraints on implementation,
design of methods to achieve the changeover and an evaluation of change over
methods a part from planning. Two major tasks of preparing the implementation
are education and training of the users and testing of the system. The more
complex the system being implemented, the more involved will be the systems
analysis and design effort required just for implementation The implementation
phase comprises of several activities. The required hardware and software
acquisition is carried out. The system may require some software to be developed.
For this, programs are written and tested. The user then changes over to his new
fully tested system and the old system is discontinued.

 Coding
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<conio.h>
#include<string.h>

void addBook();
void booksList();
void del();
void issueBook();
void issueList();

struct books{
int id;
char bookName[50];
char authorName[50];
char date[12];
}b;

struct student{
int id;
char sName[50];
char sClass[50];
int sRoll;
char bookName[50];
char date[12];
}s;

FILE *fp;

int main(){

int ch;

while(1){
system("cls");
printf("<== Library Management System ==>\n");
printf("1.Add Book\n");
printf("2.Books List\n");
printf("3.Remove Book\n");
printf("4.Issue Book\n");
printf("5.Issued Book List\n");
printf("0.Exit\n\n");
printf("Enter your choice: ");
scanf("%d", &ch);

switch(ch){
case 0:
exit(0);

case 1:
addBook();
break;

case 2:
booksList();
break;

case 3:
del();
break;

case 4:
issueBook();
break;
case 5:
issueList();
break;

default:
printf("Invalid Choice...\n\n");

}
printf("Press Any Key To Continue...\n");
getch();
}

return 0;
}

void addBook(){
char myDate[12];
time_t t = time(NULL);
struct tm tm = *localtime(&t);
sprintf(myDate, "%02d/%02d/%d", tm.tm_mday, tm.tm_mon+1,
tm.tm_year + 1900);
strcpy(b.date, myDate);

fp = fopen("books.txt", "ab");

printf("Enter book id: ");


scanf("%d", &b.id);

printf("Enter book name: ");


fflush(stdin);
gets(b.bookName);

printf("Enter author name: ");


fflush(stdin);
gets(b.authorName);

printf("Book Added Successfully\n\n");

fwrite(&b, sizeof(b), 1, fp);


fclose(fp);
}

void booksList(){

system("cls");
printf("<== Available Books ==>\n\n");
printf("%-10s %-30s %-20s %s\n\n", "Book id", "Book Name", "Author",
"Date");

fp = fopen("books.txt", "rb");
while(fread(&b, sizeof(b), 1, fp) == 1){
printf("%-10d %-30s %-20s %s\n", b.id, b.bookName, b.authorName,
b.date);
}

fclose(fp);
}

void del(){
int id, f=0;
system("cls");
printf("<== Remove Books ==>\n\n");
printf("Enter Book id to remove: ");
scanf("%d", &id);

FILE *ft;

fp = fopen("books.txt", "rb");
ft = fopen("temp.txt", "wb");

while(fread(&b, sizeof(b), 1, fp) == 1){


if(id == b.id){
f=1;
}else{
fwrite(&b, sizeof(b), 1, ft);
}
}
if(f==1){
printf("\n\nDeleted Successfully.");
}else{
printf("\n\nRecord Not Found !");
}

fclose(fp);
fclose(ft);

remove("books.txt");
rename("temp.txt", "books.txt");

void issueBook(){

char myDate[12];
time_t t = time(NULL);
struct tm tm = *localtime(&t);
sprintf(myDate, "%02d/%02d/%d", tm.tm_mday, tm.tm_mon+1,
tm.tm_year + 1900);
strcpy(s.date, myDate);

int f=0;
system("cls");
printf("<== Issue Books ==>\n\n");

printf("Enter Book id to issue: ");


scanf("%d", &s.id);

//Check if we have book of given id


fp = fopen("books.txt", "rb");

while(fread(&b, sizeof(b), 1, fp) == 1){


if(b.id == s.id){
strcpy(s.bookName, b.bookName);
f=1;
break;
}
}

if(f==0){
printf("No book found with this id\n");
printf("Please try again...\n\n");
return;
}

fp = fopen("issue.txt", "ab");
printf("Enter Student Name: ");
fflush(stdin);
gets(s.sName);

printf("Enter Student Class: ");


fflush(stdin);
gets(s.sClass);

printf("Enter Student Roll: ");


scanf("%d", &s.sRoll);

printf("Book Issued Successfully\n\n");

fwrite(&s, sizeof(s), 1, fp);


fclose(fp);
}

void issueList(){
system("cls");
printf("<== Book Issue List ==>\n\n");

printf("%-10s %-30s %-20s %-10s %-30s %s\n\n", "S.id", "Name",


"Class", "Roll", "Book Name", "Date");

fp = fopen("issue.txt", "rb");
while(fread(&s, sizeof(s), 1, fp) == 1){
printf("%-10d %-30s %-20s %-10d %-30s %s\n", s.id, s.sName, s.sClass,
s.sRoll, s.bookName, s.date);
}

fclose(fp);
}
 Result
In this research, there are several considerations in the results of the digital
library system development as follows: (1) there are three levels of users in this
digital library application, namely super admin, operator, and library user; (2)
currently, the contents of the digital library are still in the form of electronic
books, journals, and scientific articles; and (3) there are two methods that can
be used by librarians, namely Borrow and Download. This subsection describes
three user levels, namely super admin, operator, and library. 1. Super Admin
This is a level user who has access to all the features in the system. Super admin
is responsible for monitoring the digital library to make sure that the digital
library is run properly. In addition, the super admin has the authority to manage
digital library content and change features in the application and manage the
maintenance process. 2. Operators The operator level has several functions that
can be used in managing the contents of the system, such as managing the
collections, managing the borrowing process, and viewing statistics. 3. Library
users The library level is the general level for users who register themselves in
the application. The application will ask for some data for user identification.
The library features are similar to the library's authority in general, such as
borrowing books, download books, and searching for books. The operator and
super admin can carry out the management of the digital library. In the current
system development, either operator or super admin has one different feature,
namely the user management feature, where it is only found in the super admin
view. Meanwhile, the rest features are the same for both the super admin and
operator. The following are the features of the digital library system
 Conclusion
This website provides a computerized version of library management system
which will benefit the students as well as the staff of the library. It makes entire
process online where student can search books, staff can generate reports and do
book transactions. It also has a facility for student login where student can login
and can see status of books issued as well request for book or give some
suggestions. It has a facility of teacher’s login where teachers can add lectures
notes and also give necessary suggestion to library and also add info about
workshops or events happening in our college or nearby college in the online
notice board.

 Future Scope
There is a future scope of this facility that many more features such as online
lectures video tutorials can be added by teachers as well as online assignments
submission facility , a feature Of group chat where students can discuss various
issues of engineering can be added to this project thus making it more interactive
more user friendly and project which fulfills each users need in the best way
possible.

You might also like