Major Project Report: Submitted To: Submitted by

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 80

Library Management System

Major Project Report

On

Submitted to: Submitted by:


Mr. Rajneesh Kumar Rajesh Kumar

BCA 6th Semester

Page 1
Library Management System

CERTIFICATE
Certified that this is a bonafide record of the
project work titled

E-mail Client Server


Done by

Rajesh kumar

Of BCA VI semester Computer Application in the year 2019 in


partial fulfillment of the requirements for the award of Degree
of Bachelor of Computer Application of DBRA University Agra.

Mr. Rajneesh Kumar


Project Guide

Page 2
Library Management System

ACKNOWLEDGEMENT

We take this occasion to thank God, almighty for blessing us

with his grace and taking our endeavor to a successful culmination. We

extend our sincere and heartfelt thanks to our esteemed guide, Mrs.

Rajneesh Kumar, for providing us with the right guidance and advice at

the crucial junctures and for showing me the right way. We extend our

sincere thanks to our respected Head of the College, for

Allowing us to use the facilities available. We would like to thank the

other faculty members also, at this occasion. Last but not the least, we

would like to thank our teachers and family for the support and

encouragement they have given us during the course of our work.

TABLE OF CONTENTS

ABSTRACT 5

Page 3
Library Management System

1. INTRODUCTION 6
1.1 PROJECT AIMS AND OBJECTIVES 6
1.2 BACKGROUND OF PROJECT 7
1.3 OPERATION ENVIRONMENT 8

2. SYSTEM ANALYSIS 9
2.1 SOFTWARE REQUIREMENT SPECIFICATION 9
2.2 EXISTING VS PROPOSED 15
2.3 SOFTWARE TOOL USED 16

3. SYSTEM DESIGN 20
3.1 TABLE DESIGN 20
3.2 DATA FLOW DIAGRAM’S 24
4. SYSTEM IMPLEMENTATION 30
4.1 MODULE DESCRIPTION 30
4.2 SCREEN SHOTS 80
5. SYSTEM TESTING 85
5.1 UNIT TESTING 85
5.2 INTEGRATION TESTING 87
6. CONCLUSION & FUTURE SCOPE 88
7. REFERENCES 89

ABSTRACT

Page 4
Library Management System

Library management system is a project which aims in developing a


computerized system to maintain all the daily work of library .This
project has many features which are generally not availiable in normal
library management systems like facility of user login and a facility of
teachers login .It also has a facility of admin login through which the
admin can monitor the whole system .It also has facility of an online
notice board where teachers can student can put up information about
workshops or seminars being held in our colleges or nearby colleges
and librarian after proper verification from the concerned institution
organizing the seminar can add it to the notice board . It has also a
facility where student after logging in their accounts can see list of books
issued and its issue date and return date and also the students can request
the librarian to add new books by filling the book request form.The
librarian after logging into his account ie admin account can generate
various reports such as student report , issue report, teacher report and
book report
Overall this project of ours is being developed to help the students as
well as staff
of library to maintain the library in the best way possible and also reduce
the human efforts.

Page 5
Library Management System

CHAPTER 1
INTRODUCTION

This chapter gives an overview about the aim , objectives ,background


and operation environment of the system.

1.1PROJECT 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
• A separate column for digital library
• Student login page where student can find books
issued by him/her and date of return.
• A search column to search availability of books
• A teacher login page where teacher can add any events
being organized in the college and important
suggestions regarding books.
• Online notice board about the workshop.

Page 6
Library Management System

1.2BACKGROUND 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.

In addition, report module is also included in Library Management


System. If user’s position is admin, the user is able to generate different
kinds of reports like lists of students registered, list of books, issue and
return reports.

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.

Page 7
Library Management System

1.5 OPERATION ENVIRONMENT

PROCESSOR INTEL CORE PROCESSOR OR


BETTER PERFORMANCE
OPERATING WINDOWS VISTA ,WINDOWS7,
SYSTEM UBUNTU
MEMORY 1GB RAM OR MORE

HARD DISK MINIMUM 3 GB FOR DATABASE


SPACE USAGE FOR FUTURE

Page 8
Library Management System

CHAPTER 2

SYSTEM ANALYSIS

In this chapter, we will discuss and analyze about the developing


process of Library Management System including software
requirement specification (SRS) and comparison between
existing and proposed system . The functional and non functional
requirements are included in SRS part to provide complete
description and overview of system requirement before the
developing process is carried out. Besides that, existing vs
proposed provides a view of how the proposed system will be
more efficient than the existing one.

2.1SOFTWARE REQUIREMENT SPECIFICATION


2.1.1 GENERAL DESCRIPTION

PRODUCT DESCRIPTION:
Library Management System is a computerized system
which helps user(librarian) to manage the library daily
activity in electronic format. It reduces the risk of paper
work such as file lost, file damaged and time consuming.
It can help user to manage the transaction or record more effectively
and timesaving.
Page 9
Library Management System

PROBLEM STATEMENT:
The problem occurred before having computerized system
includes:
• File lost
When computerized system is not implemented file is always
lost because of human environment.Some times due to some
human error there may be a loss of records.

• File damaged When a computerized system is not


there file is always lost due to some accdent like
spilling of water by some member on file
accidentally.Besides some natural disaster like
floods or fires may also damage the files.

Page 10
Library Management System

When there is no computerized system there is always a


difficulty in searching of records if the records are large
in number .
• Space consuming
After the number of records become large the space for
physical storage of file and records also increases if no
computerized system is implemented.
• Cost consuming
As there is no computerized system the to add each
record paper will be needed which will increase the cost
for the management of library.

2.1.2 SYSTEM OBJECTIVES


• Improvement in control and performance
The system is developed to cope up with the current
issues and problems of library .The system can add user,
validate user and is also bug free.
• Save cost
After computerized system is implemented less human
force will be required to maintain the library thus
reducing the overall cost.
• Save time
Division Of Computer Science And Engineering Page 11
Library Management System

Librarian is able to search record by using few clicks of


mouse and few search keywords thus saving his
valuable time.
• Option of online Notice board
Librarian will be able to provide a detailed description
of workshops going in the college as well as in nearby
colleges
• Lecture Notes
Teacher have a facility to upload lectures notes in a pdf
file having size not more than 10mb

2.1.3 SYSTEM REQUIREMENTS


2.1.3.1 NON FUNCTIONAL REQUIREMENTS
Product Requirements
EFFICIENCY REQUIREMENT
When a library management system will be
implemented librarian and user will easily acess library
as searching and book transaction will be very faster .

Division Of Computer Science And Engineering Page 12


Library Management System

RELIABILITY REQUIREMENT
The system should accurately performs member
registration ,member validation , report generation, book
transaction and search

USABILITY REQUIREMENT
The system is designed for a user friendly environment
so that student and staff of library can perform the
various tasks easily and in an effective way.

ORGANIZATIONAL
REQUIREMENTIMPLEMENTATIO
N REQUIREMNTS
In implementing whole system it uses html in front end
with php as server side scripting language which will be
used for database connectivity and the backend ie the
database part is developed using mysql.

DELIVERY REQUIREMENTS

Division Of Computer Science And Engineering Page 13


Library Management System

The whole system is expected to be delivered in six


months of time with a weekly evaluation by the project
guide.

2.1.3.2 FUNCTIONAL REQUIREMENTS


1. NORMAL USER

1.1 USER LOGIN


Description of feature
This feature used by the user to login into system. They are
required to enter user id and password before they are
allowed to enter the system .The user id and password will be
verified and if invalid id is there user is allowed to not enter the
system.

Division Of Computer Science And Engineering Page 14


Library Management System

Functional requirements
-user id is provided when they register
-The system must only allow user with valid id and
password to enter the system -The system performs
authorization process which decides what user level can
acess to.
-The user must be able to logout after they finished using
system.

1.2 REGISTER NEW USER


Description of feature
This feature can be performed by all users to register new user to
create account.

Functional requirements
-System must be able to verify information
-System must be able to delete information if information is
wrong

1.3 REGISTER NEW BOOK


Description of feature
This feature allows to add new books to
the library Functional requirements

Division Of Computer Science And Engineering Page 15


Library Management System

-System must be able to verify information


-System must be able to enter number of copies into table.
- System must be able to not allow two books having
same book id.

1.5 SEARCH BOOK

DESCRIPTION OF FEATURE
This feature is found in book maintenance part . we can
search book based on book id , book name , publication or
by author name.

Functional requirements
- System must be able to search the database based
on select search type
- System must be able to filter book based on
keyword enterd
- System must be able to show the filtered book in
table view

1.5 ISSUE BOOKS AND RETURN BOOKS

DESCRIPTION OF FEATURE
Division Of Computer Science And Engineering Page 16
Library Management System

This feature allows to issue and return books and also view
reports of book issued.

Functional requirements
-System must be able to enter issue information in database.
-System must be able to update number of books.
- System must be able to search if book is available or not
before issuing books -System should be able to enter
issue and return date information

1.6 EVENT ADDITION

DESCRIPTION OF FEATURE
This feature allows teacher and student to add information
about various workshops being conducted in college and
colleges nearby.

Functional requirements
-System should be able to add detailed information about
events .
-System should be able to display information on notice
board available in the homepage of site

Division Of Computer Science And Engineering Page 17


Library Management System

2.1.4 SOFTWARE AND HARDWARE REQUIREMENTS


This section describes the software and hardware requirements
of the system
2.1.4.1 SOFTWARE REQUIREMENTS
• Operating system- Windows 7 is used as the operating
system as it is stable and supports more features and is
more user friendly
• Database MYSQL-MYSQL is used as database as it
easy to maintain and retrieve records by simple queries
which are in English language which are easy to
understand and easy to write.
• Development tools and Programming language- HTML
is used to write the whole code and develop webpages
with css, java script for styling work and php for sever
side scripting.

2.1.4.2 HARDWARE REQUIREMENTS


 Intel core i5 2ndgeneration is used as a processor
because it is fast than other processors an provide
reliable and stable and we can run our pc for
longtime. By using this processor we can keep on
developing our project without any worries.
Division Of Computer Science And Engineering Page 18
Library Management System

 Ram 1 gb is used as it will provide fast reading and


writing capabilities and will in turn support in
processing

2.2EXISTING VS PROPOSED SYSTEM

i. Existing system does not have any facility of


teachers login or student login where as proposed
system will have a facility of student login as well as
teacher’s login
ii. Existing system does not have a facility of online
reservation of books whereas proposed system has a
facility of online reservation of books
iii. Existing system does not have any facility of online
notice board where description of workshops
happening in our college as well as nearby colleges
is being provided.

Division Of Computer Science And Engineering Page 19


Library Management System

iv. Existing system does not has any option of lectures


notes uploaded by teachers whereas proposed system
will have this facility
v. Existing system does not have any facility to
generate student reports as well book issue reports
whereas proposed system provides librarian with a
tool to generate reports
vi. Existing system does not has any facility for book
request and sugeestions where as in proposed system
after logging in to their accounts student can request
books as well as provide suggestions to improve
library

Division Of Computer Science And Engineering Page 20


Library Management System

4.1.1.1 Code for Main Menu //list of header files

#include "general_functions.h"
#include "core_functions.h"

int main(){
login = fopen("password.dat","rb");
if(login == NULL){
gotoxy(10,9);
printf("Database Do not exits. Be an adminstrator. Sign Up");
adminsignup();
}else{
adminsignin();
}
mainmenu();
return 0;
}

void mainmenu()
{
while(1){
system("cls");
gotoxy(20,3);

printf("\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2
MAIN MENU
\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2");
gotoxy(20,5);
printf("\xDB\xDB\xDB\xDB\xB2 1. Add Books ");

Division Of Computer Science And Engineering Page 21


Library Management System

gotoxy(20,7);
printf("\xDB\xDB\xDB\xDB\xB2 2. Delete Book");
gotoxy(20,9);
printf("\xDB\xDB\xDB\xDB\xB2 3. Search Book");
gotoxy(20,11);
printf("\xDB\xDB\xDB\xDB\xB2 4. View Book List");
gotoxy(20,13);
printf("\xDB\xDB\xDB\xDB\xB2 5. Edit Book Record ");
gotoxy(20,15);
printf("\xDB\xDB\xDB\xDB\xB2 6. Change Password");
gotoxy(20,17);
printf("\xDB\xDB\xDB\xDB\xB2 7. Close Application");
gotoxy(20,19);

printf("\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\
xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\
xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2");
gotoxy(20,21);
printf("Enter your choice:");
switch(getch()){
case '1':
addbooks();
break;
case '2':
deletebooks();
break;
case '3':
searchbooks();
break;
case '4':

Division Of Computer Science And Engineering Page 22


Library Management System

viewbooks();
break;
case '5':
editbooks();
break;
case '6':
change_password();
gotoxy(10,13);
printf("press any key to continue....");
getch();
break;
case '7':
creditNclose();
default:
gotoxy(10,23);
printf("\aWrong Entry!!Please re-entered correct option");
getch(); //holds the screen until a key is pressed
}
}
}
void addbooks(void){ //funtion that add books
system("cls");
FILE *fp;
int i, choice;
add_window();
gotoxy(20,22);
printf("Enter your choice:");
scanf("%d", &choice);
if(choice==7)
mainmenu() ;

Division Of Computer Science And Engineering Page 23


Library Management System

system("cls");
fp = fopen("Record.dat","ab+");
if(getdata(choice) == 1){
book.cat=catagories[choice-1];
fseek(fp,0,SEEK_END);
fwrite(&book,sizeof(book),1,fp);
fclose(fp);
gotoxy(21,14);
printf("The record is sucessfully saved");
gotoxy(21,15);
printf("Save any more?(Y / N):");
if(getch()=='n')
mainmenu();
else{
system("cls");
addbooks();
}
}
fclose(fp);
}
void deletebooks(){ //function that delete items from file Record.dat
FILE *ft,*fp;
system("cls");
int d,findBook = 0;
char another='y';
while(another=='y'){ //infinite loop
system("cls");
gotoxy(10,5);
printf("Enter the Book ID to delete:");
scanf("%d",&d);

Division Of Computer Science And Engineering Page 24


Library Management System

fp = fopen("Record.dat","rb+");
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id==d){
gotoxy(10,7);
printf("The book record is available");
gotoxy(10,8);
printf("Book name is %s",book.name);
gotoxy(10,9);
printf("Rack No. is %d",book.rackno);
findBook = 1;
gotoxy(10,10);
printf("Do you want to delete it?(Y/N):");
if(getch()=='y'){
ft=fopen("test.dat","wb"); //temporary file for delete
rewind(fp);
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id!=d){
fwrite(&book,sizeof(book),1,ft); //write all in tempory
file except that
} //we want to delete
}
fclose(fp);
fclose(ft);
remove("Record.dat");
rename("test.dat","Record.dat"); //copy all item from
temporary file to fp except that
//we want to delete
gotoxy(10,11);
printf("The record is sucessfully deleted");
}

Division Of Computer Science And Engineering Page 25


Library Management System

}
}
if(findBook == 0){
gotoxy(10,10);
printf("No record is found");
getch();
}
gotoxy(10,12);
printf("Delete another record?(Y/N)");
fflush(stdin);
another=getch();
}
}

void searchbooks()
{
system("cls");
printf("*****************************Search
Books*********************************");
gotoxy(20,10);
printf("\xDB\xDB\xDB\xB2 1. Search By ID");
gotoxy(20,14);
printf("\xDB\xDB\xDB\xB2 2. Search By Name");
gotoxy( 15,20);
printf("Enter Your Choice");
switch(getch())
{
case '1':
searchByID();

Division Of Computer Science And Engineering Page 26


Library Management System

break;
break;
case '2':
searchByName();
break;
default :
getch();
searchbooks();
}
}

void viewbooks(void) //show the list of book persists in library


{
int j;
FILE *fp;
system("cls");
gotoxy(1,1);
printf("*********************************Book
List*****************************");
gotoxy(2,2);
printf(" CATEGORY ID BOOK NAME AUTHOR QTY
PRICE RackNo ");
j=4;
fp=fopen("Record.dat","rb");
while(fread(&book,sizeof(book),1,fp)==1){
gotoxy(3,j);
printf("%s",book.cat);
gotoxy(16,j);
printf("%d",book.id);
gotoxy(22,j);

Division Of Computer Science And Engineering Page 27


Library Management System

printf("%s",book.name);
gotoxy(36,j);
printf("%s",book.Author);
gotoxy(50,j);
printf("%d",book.quantity);
gotoxy(57,j);
printf("%.2f",book.Price);
gotoxy(69,j);
printf("%d",book.rackno);
printf("\n\n");
j++;
}
fclose(fp);
gotoxy(35,25);
returnfunc();
}

void editbooks(void) //edit information about book


{
system("cls");
FILE *fp;
int c=0,d;
gotoxy(20,4);
printf("****Edit Books Section****");
char another='y';
while(another=='y')
{
system("cls");
gotoxy(15,6);

Division Of Computer Science And Engineering Page 28


Library Management System

printf("Enter Book Id to be edited:");


scanf("%d",&d);
fp=fopen("Record.dat","rb+");
while(fread(&book,sizeof(book),1,fp)==1)
{
if(checkid(d)==0)
{
gotoxy(15,7);
printf("The book is availble");
gotoxy(15,8);
printf("The Book ID:%d",book.id);
gotoxy(15,9);
printf("Enter new name:");scanf("%s",book.name);
gotoxy(15,10);
printf("Enter new Author:");scanf("%s",book.Author);
gotoxy(15,11);
printf("Enter new
quantity:");scanf("%d",&book.quantity);
gotoxy(15,12);
printf("Enter new price:");scanf("%f",&book.Price);
gotoxy(15,13);
printf("Enter new
rackno:");scanf("%d",&book.rackno);
gotoxy(15,14);
printf("The record is modified");
fseek(fp,ftell(fp)-sizeof(book),0);
fwrite(&book,sizeof(book),1,fp);
fclose(fp);
c=1;
}

Division Of Computer Science And Engineering Page 29


Library Management System

if(c==0)
{
gotoxy(15,9);
printf("No record found");
}
}
gotoxy(15,16);
printf("Modify another Record?(Y/N)");
fflush(stdin);
another=getch() ;
}
returnfunc();
}

Division Of Computer Science And Engineering Page 30


Library Management System

2.3SOFTWARE TOOLS USED


The whole Project is divided into more parts

2.3.1 Main Menu


Division Of Computer Science And Engineering Page 31
Library Management System

It is designed using Object Oriented Programming


Language.

Coding for Add Books

Division Of Computer Science And Engineering Page 32


Library Management System

void addbooks(void){ //funtion that add books


system("cls");
FILE *fp;
int i, choice;
add_window();
gotoxy(20,22);
printf("Enter your choice:");
scanf("%d", &choice);
if(choice==7)
mainmenu() ;
system("cls");
fp = fopen("Record.dat","ab+");
if(getdata(choice) == 1){
book.cat=catagories[choice-1];
fseek(fp,0,SEEK_END);
fwrite(&book,sizeof(book),1,fp);
fclose(fp);
gotoxy(21,14);
printf("The record is sucessfully saved");
gotoxy(21,15);
printf("Save any more?(Y / N):");
if(getch()=='n')
mainmenu();
else{
system("cls");
addbooks();
}
}
fclose(fp);
}

Division Of Computer Science And Engineering Page 33


Library Management System

Screen short For Add books

Division Of Computer Science And Engineering Page 34


Library Management System

Division Of Computer Science And Engineering Page 35


Library Management System

Division Of Computer Science And Engineering Page 36


Library Management System

Coding for delete books

void delete books(){

FILE *ft,*fp;
system("cls");
int d,findBook = 0;
char another='y';
while(another=='y'){ //infinite loop
system("cls");
gotoxy(10,5);
printf("Enter the Book ID to delete:");
scanf("%d",&d);
fp = fopen("Record.dat","rb+");
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id==d){
gotoxy(10,7);
printf("The book record is available");
gotoxy(10,8);
printf("Book name is %s",book.name);
gotoxy(10,9);
printf("Rack No. is %d",book.rackno);
findBook = 1;
gotoxy(10,10);
printf("Do you want to delete it?(Y/N):");
if(getch()=='y'){
ft=fopen("test.dat","wb"); //temporary file for delete
rewind(fp);
while(fread(&book,sizeof(book),1,fp)==1){

Division Of Computer Science And Engineering Page 37


Library Management System

if(book.id!=d){
fwrite(&book,sizeof(book),1,ft); //write all in tempory
file except that
} //we want to delete
}
fclose(fp);
fclose(ft);
remove("Record.dat");
rename("test.dat","Record.dat"); //copy all item from
temporary file to fp except that
//we want to delete
gotoxy(10,11);
printf("The record is sucessfully deleted");
}
}
}
if(findBook == 0){
gotoxy(10,10);
printf("No record is found");
getch();
}
gotoxy(10,12);
printf("Delete another record?(Y/N)");
fflush(stdin);
another=getch();
}
}

Division Of Computer Science And Engineering Page 38


Library Management System

Screen short for delete book

Division Of Computer Science And Engineering Page 39


Library Management System

Coding For Search Book

Division Of Computer Science And Engineering Page 40


Library Management System

void searchbooks()
{
system("cls");
printf("*****************************Search
Books*********************************");
gotoxy(20,10);
printf("\xDB\xDB\xDB\xB2 1. Search By ID");
gotoxy(20,14);
printf("\xDB\xDB\xDB\xB2 2. Search By Name");
gotoxy( 15,20);
printf("Enter Your Choice");
switch(getch())
{
case '1':
searchByID();
break;
break;
case '2':
searchByName();
break;
default :
getch();
searchbooks();
}
}

Division Of Computer Science And Engineering Page 41


Library Management System

Screen short for search book

Division Of Computer Science And Engineering Page 42


Library Management System

Division Of Computer Science And Engineering Page 43


Library Management System

Coding for view book list

void viewbooks(void) //show the list of book persists in library


{
int j;
FILE *fp;
system("cls");
gotoxy(1,1);
printf("*********************************Book
List*****************************");
gotoxy(2,2);
printf(" CATEGORY ID BOOK NAME AUTHOR QTY
PRICE RackNo ");
j=4;
fp=fopen("Record.dat","rb");
while(fread(&book,sizeof(book),1,fp)==1){
gotoxy(3,j);
printf("%s",book.cat);
gotoxy(16,j);
printf("%d",book.id);
gotoxy(22,j);
printf("%s",book.name);
gotoxy(36,j);
printf("%s",book.Author);
gotoxy(50,j);
printf("%d",book.quantity);
gotoxy(57,j);
printf("%.2f",book.Price);
Division Of Computer Science And Engineering Page 44
Library Management System

gotoxy(69,j);
printf("%d",book.rackno);
printf("\n\n");
j++;
}
fclose(fp);
gotoxy(35,25);
returnfunc();
}

Screen short for view book list

Division Of Computer Science And Engineering Page 45


Library Management System

Coding For Edit Book Record

Division Of Computer Science And Engineering Page 46


Library Management System

void editbooks(void) //edit information about book


{
system("cls");
FILE *fp;
int c=0,d;
gotoxy(20,4);
printf("****Edit Books Section****");
char another='y';
while(another=='y')
{
system("cls");
gotoxy(15,6);
printf("Enter Book Id to be edited:");
scanf("%d",&d);
fp=fopen("Record.dat","rb+");
while(fread(&book,sizeof(book),1,fp)==1)
{
if(checkid(d)==0)
{
gotoxy(15,7);
printf("The book is availble");
gotoxy(15,8);
printf("The Book ID:%d",book.id);
gotoxy(15,9);
printf("Enter new name:");scanf("%s",book.name);
gotoxy(15,10);
printf("Enter new Author:");scanf("%s",book.Author);
gotoxy(15,11);
printf("Enter new
quantity:");scanf("%d",&book.quantity);

Division Of Computer Science And Engineering Page 47


Library Management System

gotoxy(15,12);
printf("Enter new price:");scanf("%f",&book.Price);
gotoxy(15,13);
printf("Enter new
rackno:");scanf("%d",&book.rackno);
gotoxy(15,14);
printf("The record is modified");
fseek(fp,ftell(fp)-sizeof(book),0);
fwrite(&book,sizeof(book),1,fp);
fclose(fp);
c=1;
}
if(c==0)
{
gotoxy(15,9);
printf("No record found");
}
}
gotoxy(15,16);
printf("Modify another Record?(Y/N)");
fflush(stdin);
another=getch() ;
}
returnfunc();
}

Division Of Computer Science And Engineering Page 48


Library Management System

Screen Short for Edit Book Record

Screen short for change password

Division Of Computer Science And Engineering Page 49


Library Management System

Division Of Computer Science And Engineering Page 50


Library Management System

CHAPTER 3
SYSTEM DESIGN

3.1 TABLE DESIGN

VARIOUS TABELS TO MAINTAIN


INFORMATION
 BOOK TABLE FOR KEEPING TRACK OF BOOKS
Field Datatype Defa Key Extra
ult
Code INT(11) Not Prima Auto
Null ry increm
ent
Bookna VARCHAR( Null
me 255)
Author VARCHAR( Null
255)
Publicati VARCHAR( Null
on 255)

Division Of Computer Science And Engineering Page 51


Library Management System

Subject VARCHAR( Null


255)
No of INT(10) Null
copies

 STUDENT TABLE FOR STUDENT INFORMATION


Field Data type Defau Key Extra
lt
Libid INT(11) NOT Prima Autoincrem
NULL ry key ent
Regno INT(10) NULL
Branch VARCHAR(2 NULL
55)
Section VARCHAR(2 NULL
55)
semeste VARCHAR(2 NULL
r 55)
Section VARCHAR(2 NULL
)
yearofad INT(5) NULL
m

Division Of Computer Science And Engineering Page 52


Library Management System

 TEACHER TABLE TO KEEP TEACHER


INFORMATION
Field Data Type Defa Key Extra
ult
Tid INT(11)
NOT Prim Auto
NULL ary increm
key ent
Name VARCHAR( NULL
255)
Designat VARCHAR( NULL
ion 255)
Branch VARCHAR( NULL
255)
Contact INT(13) NULL
no
Lectures LONG NULL
BLOB

 Issue table to keep track of books issued


Field Data Defa Key Extra
Type ult
Bookid INT(1 NOT Foreign Referen
1) NULL key ces
book

Division Of Computer Science And Engineering Page 53


Library Management System

Stuid INT(1 NOT Foreign Referen


1) NULL key ces
Student
Issuedat DAT NULL
e E
Returnd DAT NULL
ate E

 STUDENT LOGIN TABLE


Field Data type Defa Key Extra
ult
Logid INT(11) NOT Foreig Refere
NUL nkey nces
L Studen
t
Userna VARCHA NUL
me R(255) L
Passwo VARCHA NUL
rd R(255) L
Numb INT(1) NUL
ooks L

 EVENT TABLE FOR EVENT INFORMATION


Field Data type Defau Ke Extr
lt y a

Division Of Computer Science And Engineering Page 54


Library Management System

Name Varchar(255) NULL


Date Date(yyyy/mm/ NULL
dd)
Time VARCHAR(255) NULL
Mname VARCHAR(255) NULL
Contactn Int(30) NULL
o.
Email VARCHAR(255) NULL
Venue varchar(255) NULL

 TEACHER LOGIN TABLE


Field DataType Defa Key Extra
ult
Logini INT(11) NOT Forei Referen
d NULL gn ces
key teacher
Userna VARCHAR( NULL
me 255)
Passwo VARCHAR( NULL
rd 255)

Division Of Computer Science And Engineering Page 55


Library Management System

3.2DATA FLOW DIAGRAMS

DATA FLOW DIAGRAM FOR TEACHER LOGIN

TEACHER
DATABASE

ENTER
ENTER USERNAME CHECK
TEACHER
URL & VALIDITY
PASSWORD

IF VALID

TEACHER
WEB SERVER LOGIN
PAGE

After entering to the home page of the website , teacher


can choose the TEACHER LOGIN option where they are
asked to enter username & password , and if he/she is a
valid user then a teacher login page will be displayed.

Division Of Computer Science And Engineering Page 56


Library Management System

DATA FLOW DIAGRAM FOR STUDENT LOGIN

STUDENT
DATABASE

ENTER
ENTER USERNAME CHECK
STUDENT
URL & VALIDITY
PASSWORD

IF VALID

STUDENT
WEB SERVER LOGIN
PAGE

Division Of Computer Science And Engineering Page 57


Library Management System

After entering to the home page of the website , student


can choose the STUDENT LOGIN option where they are
asked to enter username & password , and if he/she is a
valid user then a student login page will be displayed.

DATA FLOW DIAGRAM FOR BOOK ISSUE

LOGIN
DATABASE

IF NO.
STUDENT SELECT ENTER
IF OF UPDATE MESSAGE
BOOK BOOK SELECT
LOGIN ISSUE DETAIL BOOK
NO.
OF
“BOOK
ISSUE BOOK
PAGE AVBL ISSUED COPIES RESERVED”
LESS THAN
3

BOOK LOGIN BOOK


DATABASE TABLE DATABASE

Division Of Computer Science And Engineering Page 58


Library Management System

It is a 2nd level Data Flow Diagram where after entering


STUDENT LOGIN page he/she can select a book issue
option where after entering the book detail, he/she can
select the book issue option and if the maximum no of
books issued limit is not crossed then a request will be
sent to the librarian who will approve the book issue.

DATA FLOW DIAGRAM FOR BOOK SEARCH

Division Of Computer Science And Engineering Page 59


Library Management System

ENTER IF
SELECT
ADVANCE BOOK BOOK
HOME FOUND
SEARCH DETAIL DETAILS

BOOK
DATABASE

After the home page login there will be an option of the


book search where after entering book detail like author
name, publication, book name etc book details will be
displayed.

Division Of Computer Science And Engineering Page 60


Library Management System

DATA FLOW DIAGRAM FOR ACCOUNT CREATION

SELECT ENTER ADMIN MESSAGE


HOME VERIFY
ACCOUNT STUDENT SENT
CREATION DETAIL STUDEN TO
T STUDENT
IF ALL REG. IS IF VALID
PARTIALLY FILLED

ADMIN STUDENT
DATABASE DATABASE

After the home page login there will be an option of


CREATE AN ACCOUNT where after entering student
detail ,if all the fields are filled then a request will be sent
to the librarian who will approve him as a registered
member of the library.

Division Of Computer Science And Engineering Page 61


Library Management System

CHAPTER 4
SYSTEM IMPLEMENTATION

4.1.1Screenshot for homepage

Division Of Computer Science And Engineering Page 62


Library Management System

4.1 MODULE DESCRIPTION

For Library Management System it is divided into the following


Modules:

4.1.1Admin Module
ADMIN

STUDENT TEACHER BOOK ADDITION REPORT

Division Of Computer Science And Engineering Page 63


Library Management System

VALIDATION REGISTRATION GENERATION

The following module contains various facilities like


student validation, teacher registration, book
addition, and report generation.

4.1.2Student Module

STUDENT

Division Of Computer Science And Engineering Page 64


Library Management System

STUDENT STUDENT LOGIN ONLINE BOOK EVENT ADDITION

REGISTRATION RESERVATTION

USERNAME AND FORGOT


PASSWORD PASSWORD AUTHENTICATION

The following module contains various facilities like


student registration, student login, online book
reservation, and event addition. Any student if at any
moment forgets his password he can retrieve it from
forgot password option.

Division Of Computer Science And Engineering Page 65


Library Management System

4.1.2Screenshot for Student login

Division Of Computer Science And Engineering Page 66


Library Management System

4.1.3 Teacher Module

TEACHER

SUGGESTIONS
TEACHER LOGIN EVENT ADDITION

USERNAME AND
PASSWORDFORGOT
PASSWORD
AUTHENTICATION

Division Of Computer Science And Engineering Page 67


Library Management System

The following module contains various facilities like


teacher login, suggestions, and event addition.
Further any teacher if at any moment forgets his/her
password he/she can retrieve it from ‘forgot
password’ option.

4.1.3Screenshot for teacher’s login

4.1.4 Book Module

BOOK MAINTENANCE

Division Of Computer Science And Engineering Page 68


Library Management System

ADD NEW BOOK SEARCH BOOK

The following module contains various facilities


like add new book and search book. In the ‘add new
book’ section if any new book comes in the library
then the librarian can add its specifications.
Similarly if the user wants to search for a specific
book then he/she can use search book option to do
it.

4.1.5 Book Transaction Module

BOOK TRANSACTION

Division Of Computer Science And Engineering Page 69


Library Management System

ISSUE BOOK RETURN BOOK CHECK RESERVATION

The following module contains various facilities like


issue book, return book and check reservation.

4.1.2Screenshot for Book search

Division Of Computer Science And Engineering Page 70


Library Management System

4.1.6 Report Module

REPORT

STUDENT REPORT TEACHER REPORT BOOK REPORT TRANSACTION

REPORT

The following module contains various facilities like


student report, teacher report, book report, and
transaction report.

Code For Report Generation

CHAPTER 5
SYSTEM TESTING

Division Of Computer Science And Engineering Page 71


Library Management System

The aim of the system testing process was to determine all


defects in our project .The program was subjected to a set
of test inputs and various observations were made and
based on these observations it will be decided whether the
program behaves as expected or not.
Our Project went through two levels of testing
1.Unit testing
2.integratio
n testing
UNIT TESTING

Unit testing is undertaken when a module has been


created and succesfully reviewed .In order to test a single
module we need to provide a complete environment ie
besides the module we would require
• The procedures belonging to other modules that
the module under test calls
• Non local data structures that module accesses
• A procedure to call the functions of the module
under test with appropriate parameters
Division Of Computer Science And Engineering Page 72
Library Management System

Unit testing was done on each and every module that is


described under module description of chapter 4

1.Test For the admin module


• Testing admin login form-This form is used
for log in of administrator of the system.In this
we enter the username and password if both are
correct administration page will open other
wise if any of data is wrong it will get
redirected back to the login page and again ask
for username and password
• Student account addition- In this section the
admin can verify student details from student
academinc info and then only add student
details to main library database it contains add
and delete buttons if user click add button data

Division Of Computer Science And Engineering Page 73


Library Management System

will be added to student database and if he


clicks delete button the student data will be
deleted
• Book Addition- Admin can enter details of
book and can add the details to the main book
table also he can view the books requests .

2. Test for Student login module


• Test for Student login Form-This form is used
for log in of Student .In this we enter
thelibraryid, username and password if all
these are correct student login page will open
other wise if any of data is wrong it will get
redirected back to the login page and again ask
for libraryid, username and password.
• Test for account creation- This form is used
for new account creation when student does

Division Of Computer Science And Engineering Page 74


Library Management System

not fill the form completely it asks again to fill


the whole form when he fill the form fully it
gets redirected to page which show waiting for
conformation message as his data will be only
added by administrator after verification.
3. Test for teacher login module-
Test for teacher login form- This form is
used for logg in of teacher .In this we enter
the username and password if all these are
correct teacher login page will open other
wise if any of data is wrong it will get
redirected back to the login page and again
ask for username and password.

Division Of Computer Science And Engineering Page 75


Library Management System

INTEGRATION TESTING

In this type of testing we test various integration of the


project module by providing the input .The primary
objective is to test the module interfaces in order to
ensure that no errors are occurring when one module
invokes the other module.

Division Of Computer Science And Engineering Page 76


Library Management System

Chapter 6
CONCLUSION & FUTURE SCOPE

Division Of Computer Science And Engineering Page 77


Library Management System

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.

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

Division Of Computer Science And Engineering Page 78


Library Management System

added to this project thus making it more interactive more


user friendly and project which fulfills each users need in
the best way possible

Division Of Computer Science And Engineering Page 79


Library Management System

CHAPTER 7REFERENCES

 http://www.w3schools.com/html/html_intro.asp
 http://www.w3schools.com/css/css_background.asp
 http://www.w3schools.com/js/js_datatypes.asp
 http://www.w3schools.com/sql/sql_insert.asp
 http://www.w3schools.com/sql/sql_update.asp
 http://www.w3schools.com/php/php_forms.asp
 Fundamentals of software engineering by Rajib mall, PHIlearning
 Web development and application development by Ivan Byross BPB publications

Division Of Computer Science And Engineering Page 80

You might also like