Professional Documents
Culture Documents
Library Management p7
Library Management p7
On
LIBRARY INFORMATION MANAGEMENT SYSTEM
Submitted in partial fulfilment of the
Bachelor of Technology
In
ELECTRONICS AND COMMUNICATION ENGINEERING
BY
K.HEMANTH N.S.S.SASANK
150040410 150040602
K L University
Green Fields, Vaddeswaram, Guntur district-522 502
2016-2017
K L University
Department of Electronics & Communication Engineering
CERTIFICATE
CERTIFICATE
This is to certify that the course project based lab reportentitled “LIBRARY
INFORMATION MANAGEMEN SYSTEM”, is a bonafide work done by
K.HEMANTH(150040410), N.S.S.SASANK(150040602) partial fulfilment for the
award of degree in BACHELOR OF TECHNOLOGYinELECTRONICS AND
COMMUNICATION ENGINEERING during the academic year 2016-2017.
PROJECT GUIDE
Dr.K.Ravindranath
K L University
Department of Electronics & Communication Engineering
We hereby declare that this project based lab report entitled “LIBRARY INFORMATION
MANAGEMEN SYSTEM” has been prepared by us in partial fulfilment of the requirement
for the award of degree “BACHELOR OF TECHNOLOGY inELECTRONICS AND
COMMUNICATION ENGINEERING” during the academic year 2016-2017.
we also declare that this project based lab report is of our own effort and it has not been
submitted to any other university for the award of any degree.
Date:
Place: Vaddeswaram
K.HEMANTH(150040410)
N.S.S.SASANK(150040602)
ACKNOWLEDGEMENTS
Our sincere thanks to K.Ravindranath in the Lab for their outstanding support through out
the project for the successful completion of the work.
We express our gratitude toDr.A.S.C.S.Sastry, Head of the Department for Electronics and
communication Engineering for providing us with adequate facilities, ways and means by
which we are able to complete this project based Lab.
We would like to place on record the deep sense of gratitude to the honourable Vice
Chancellor, K L University for providing the necessary facilities to carry the project based
Lab.
Last, but not the least, we thank all Teaching and Non-Teaching Staff of our department and
especially my classmates and my friends for their support in the completion of our project
based Lab.
NAMES ID NO.S
K.HEMANTH 150040410
N.S.S.SASANK 150040602
TABLE OF CONTENTS
ACKNOWLEDEMENTS
ABSTRACT
1 Introduction
1.1 What is LIBRARY INFORMATION MANAGEMENT SYSTEM
1.2 Problem Definition
1.3 Platform requirements
1.4 Software Requirements Specification
2 Analysis & Design
2.1 Analysis classes
2.2 Program Architectural Design
2.3 File Design
2.4 Input Design
2.5 Output Design
3 Source Code of the project
4 Results
5 Conclusion and Future Scope
6 Bibliography
ABSTRACT
The theme of the project is to show how a library is managed to the users. User can choose
any one of the option provided from the list and then we will provide all the required
information regarding the option they selected available in the list, from that information the
user can choose the prescribed ones according to their need. Libraries are one of the main
facility which we search for. But to search all the books in the library it will take us much
time. To reduce the time constraint and to save the time of the citizens of the society in this
application we are going to list out some major blocks. This application consists of
information of books in the libraries and also their specifications’.
We have used java here in order to achieve the aim of the project. In java we used concepts of
Inheritance, files, abstract classes, keywords, method over riding e.t.c.., to do the project in
the most effective way.
1. Introduction
Class BorrowerRec
intregNo;
String name;
String address;
void displayRecord();
Various Modules of Marriage Bureau system are identified and are shown
below
Serial Number Name of the Module
1 Management of Books information
2 Management of Borrowers information
3 Main module
Various functions in each module are identified and are shown below.
This system uses two files. The names of the files and the record layout are
given below
For creating a file, the system takes all inputs from keyboard and the writes to
file.
A sample input dialog for creating brides information file is shown below
For selecting different functions of the system it displays a menu and reads the
choice of user from keyboard.
Menu
1. Create Books File
2. Add more records to Books file
3. Search by Book NO;
4. Generate Report;
5. Quit
The System also takes input from files(The file design was shown earlier)
List of brides
1. bookno.: 123
bookname: ss rattan
2. brideId.: 1234
brideName: p k nag
End of List
• For searching details of bride with its bookno the search report will be
displayed as follows
Search by bookno
enter bokno: 123
1. bookno.: 123
bookName: s s rattan
packagelibrarymanagementsystem;
/**
*/
import java.io.*;
importjava.util.*;
importjava.text.DateFormat;
importjava.util.Calendar;
importjava.text.SimpleDateFormat;
classBookInfo{
intbookNo;
String bookTitle,bookAuthor;
voiddisplayBooksRecord()
System.out.println("\n");
classBorrowerRec{
intregNo;
String name,adress;
voiddisplayBorrowerInfo(){
System.out.println("RegNo.:"+regNo);
System.out.println("name:"+name);
System.out.println("adress:"+adress);
System.out.println("\n");
class LibraryManagementSystem1
intpassword,option;
inti,num,username;
int choice=0,count=0;
intsearchRegNo=0,searchBookNo=0;
String str="";
boolean flag=true;
while(true)
System.out.println("username");
username=Integer.parseInt(br.readLine());
System.out.println("password");
password=Integer.parseInt(br.readLine());
if(username==137220&&password==137220)
break;
else
}
while(flag)
System.out.println("\nMENU\n");
System.out.println("1.Books Information");
System.out.println("2.Borrowers Information");
System.out.println("3.exit\n");
option=Integer.parseInt(br.readLine());
switch(option)
//MODULE1-
case 1:
first: while(true)
System.out.println("\nMENU\n");
System.out.println("1.create");
System.out.println("2.update");
System.out.println("3.search");
System.out.println("4.records");
System.out.println("5.exit\n");
choice=Integer.parseInt(br.readLine());
switch(choice){
case 1:
FileWriterfout=new FileWriter("bookdata.txt");
num=Integer.parseInt(br.readLine());
for(i=0;i<num;i++)
record.bookNo=Integer.parseInt(br.readLine());
record.bookTitle=br.readLine();
record.bookAuthor=br.readLine();
//write to a file
fout.write(record.bookNo+"\t");
fout.write(record.bookTitle+"\t");
fout.write(record.bookAuthor+"\t");
}
fout.write("EOF");
fout.close();
break;
case 2:
while(sc1.hasNextInt())
record.bookNo=sc1.nextInt();
fw.write(record.bookNo+"\n");
record.bookTitle=sc1.next();
fw.write(record.bookTitle+"\n");
record.bookAuthor=sc1.next();
fw.write(record.bookAuthor+"\n");
num=Integer.parseInt(br.readLine());
for(i=0;i<num;i++){
record.bookNo=Integer.parseInt(br.readLine());
fw.write(record.bookNo+"\t");
System.out.println("enter book title");
record.bookTitle=br.readLine();
fw.write(record.bookTitle+"\t");
record.bookAuthor=br.readLine();
fw.write(record.bookAuthor+"\t");
fw.write("EOF");
fw.close();
while(sc2.hasNextInt())
record.bookNo=sc2.nextInt();
fout1.write(record.bookNo+"\n");
record.bookTitle=sc2.next();
fout1.write(record.bookTitle+"\n");
record.bookAuthor=sc2.next();
fout1.write(record.bookAuthor+"\n");
fout1.write("EOF");
fout1.close();
break;
case 3:
searchBookNo=Integer.parseInt(br.readLine());
case 4:
while(sc.hasNextInt())
record.bookNo=sc.nextInt();
record.bookTitle=sc.next();
record.bookAuthor=sc.next();
if(choice==4)
record.displayBooksRecord();
if(choice==3)
if(record.bookNo==searchBookNo)
record.displayBooksRecord();
str=sc.next();
if(str.equals("EOF"))
System.out.println("END OF FILE");
else
break;
case 5:
break first;
//MODULE2-
case 2:
System.out.println("BORROWERS INFORMATION");
second: while(true)
System.out.println("\nMENU\n");
System.out.println("1.create");
System.out.println("2.update");
System.out.println("3.search");
System.out.println("4.record");
System.out.println("5.exit\n");
choice=Integer.parseInt(br.readLine());
switch(choice)
case 1:
FileWriterfout=new FileWriter("borrowerinfo.txt");
num=Integer.parseInt(br.readLine());
for(i=0;i<num;i++)
System.out.println("enter id number");
record1.regNo=Integer.parseInt(br.readLine());
System.out.println("enter name");
record1.name=br.readLine();
System.out.println("enter adress");
record1.adress=br.readLine();
fout.write(record1.regNo+"\n");
fout.write(record1.name+"\n");
fout.write(record1.adress+"\n");
}
fout.write("EOF");
fout.close();
break;
case 2:
while(sc1.hasNextInt())
record1.regNo=sc1.nextInt();
fw.write(record1.regNo+"\n");
record1.name=sc1.next();
fw.write(record1.name+"\n");
record1.adress=sc1.next();
fw.write(record1.adress+"\n");
num=Integer.parseInt(br.readLine());
for(i=0;i<num;i++){
System.out.println("enter id number");
record1.regNo=Integer.parseInt(br.readLine());
fw.write(record1.regNo+"\t");
System.out.println("enter name");
record1.name=br.readLine();
fw.write(record1.name+"\t");
System.out.println("enter adress");
record1.adress=br.readLine();
fw.write(record1.adress+"\t");
fw.write("EOF");
fw.close();
while(sc2.hasNextInt())
record1.regNo=sc2.nextInt();
fout1.write(record1.regNo+"\n");
record1.name=sc2.next();
fout1.write(record1.name+"\n");
record1.adress=sc2.next();
fout1.write(record1.adress+"\n");
fout1.write("EOF");
fout1.close();
break;
case 3:
searchRegNo=Integer.parseInt(br.readLine());
case 4:
while(sc.hasNextInt())
record1.regNo=sc.nextInt();
record1.name=sc.next();
record1.adress=sc.next();
if(choice==4)
record1.displayBorrowerInfo();
if(choice==3)
if(record1.regNo==searchRegNo)
record1.displayBorrowerInfo();
str=sc.next();
if(str.equals("EOF"))
System.out.println("END OF FILE");
else
break;
case 5:
break second;
case 3:
flag=false;
break;
}
4. Results
All programs are compiled successfully. All programs are run and tested for
correctness. Results obtained are shown below
• Search by Book Id
• Generate Report
• File data
Contents of bookrec.txt are shown below
5.1 Conclusion
The project is successfully completed to the extent possible. The results of the
project are shown earlier.
5.2 Future Scope: Some more functions or modules may be added to project.
After studying and understanding Graphic User Interface (GUI) of java, the
inputs and outputs can be improved and implemented using GUI.
6 Bibliography
• Herbert Schildt, “The Complete Reference Java2”, 5th edition TMH, 2002.