Vous êtes sur la page 1sur 126

LIBRARY MANAGEMENT SYSTEM

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

Project Report

(LIBRARY MANAGEMENT SYSTEM)


DIPLOMA IN COMPUTER SCIENCE AND ENGG
SUBMITTED BY

BHAVNA SINGH
C S ENGG
POLYTECHNIC M I T, Atrauli, Aligarh

UNDER THE GUIDENCE OF

Mr. Pushpendra Singh

2016

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

CONTENTS

Preface...04

Certificate..05

Acknowledgement..06

Introduction..07

Objective08

Tools/Environment Used..10

Hardware Requirement Used...18

Software System Attributes.19

Software Requirement Specification.20

Design22

Design Objectives..24

Analysis and Design Report25

Feasibility Study.28

Process Logic.31

Software System Attributes32

Overall Description...34

Analysis and Design Report..39

Preliminary Investigation41

Module..46

Database Description...59

Entity Relationship Diagrams ..50

Data Flow Diagram52

Data Table57

Forms60

Coding...71

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

Conclusion & Future Scope120

Optimization of Code...121

Validation Checks122

Testing...123

Security Measure Taken..125

Cost Estimation of the Project .126

Future Scope and Future Enhancement of the Project.127

PREFACE
This is a project for LIBRARY MANAGEMENT SYSTEM. It is a part of the
fulfillment of award of C S ENGG (Computer science and engineering)
Diploma under Mahalwar Intitute of Technology. Atrauli
This project is as per the project guidelines as per given by M I T. I have
studied the system thoroughly and have tried to deal all the modules which I
found during my study.
I have developed a simple approach towards the problem solving. I have tried
to present the content in simple and easy manner. There may be possibility to
improve the current work.

BHAVNA SINGH

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

CERTIFICATE
This is to certify that the report entitled LIBRARY MANAGEMENT
SYSTEM submitted to Mahalwar Institute of Technology (Atrauli),

Aligarh in partial fulfillment of the required for the reward of the diploma
in computer science and engineering final year is an original work
carried out by BHAVNA SINGH with Roll no. 1 under my guidance. The
matter embodied in this project is a genuine work done by the student
and has not been submitted whether to this polytechnic or to any other
polytechnic/Institute for the fulfillment of the requirement of any course
of study.
(Mr. Pushpendra Singh)

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

ACKNOWLEDGEMENT
I convey my gratitude to all those who have helped me to reach a
stage where Ive immense-confidence to launch my career in the
competitive world of Information Technology.
First of all I acknowledge the role of my respected Teachers, who
have played a significant role in shaping my career. I express my
profound gratitude to the M I T Atrauli , Aligarh who have been a
source of perpetual inspiration to me and all the Teachers for gently
guiding and paving my way towards a bright future, throughout my
diploma course.
I acknowledge my Project Guide, Mr. Pushpendra Singh who guided
me frequently during project development. He was ever willing to give
all kind of support and encouragement.
This letter would be incomplete if I missed out to mention the regards of
my friends & my family members and above all grace of God, who has been
a constant source of inspiration for me from the very starting of my life.
With regards
BHAVNA SINGH

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

INTRODUCTON
As a part of curriculum in computer, I have chosen a project to study the
(LIBRARY MANAGEMENT SYSTEM), including how the system works and to
develop such system in Core Java and M S Access. I am required to present the
report for the same.
Computerization in LIBRARY MANAGEMENT SYSTEM: It is developed in
the CORE JAVA, which is a powerful programming language.
The total procedure of computerization in LIBRARY MANAGEMENT
SYSTEM is described so that the user faces least difficulties. The first and
foremost advantages of this system to be mentioned are the time consuming
factor.
I visited various libraries of university and get in to various Public Library
to get my project done.

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

OBJECTIVE
The main objective of the project LIBRARY MANAGEMENT SYSTEM is to
fulfill the requirement of the user sitting at the library counter in any college , it
also helps the higher level of library to manage their work like adding new book ,
submit book etc. The system provides a graphical user interface which can be
used without much effort. There needs a project that should be capable to
provide information. As there is a large amount of data related to a well
maintained book Information system so this becomes the main objective of this
project to generate all types of queries to suit the users need so that data can
be easily added, updated and deleted from the database of the Library.

This system gives accurate and error free calculations, is less time
consuming, is neat and clear to present.
The system has been developed in Java. So that all features are
added in this system. At the time of handling this system, it allows
multi-user environment facility.
The system is user friendly and built in Window environment.
It reduces data redundancy.
At the click of a mouse button we can get complete information
about the books, their writer, price, student, etc.
BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

Updating is very much user friendly and easy.


The burden of manual work is reduced because of the
computerization of the system.
Computerization results in a faster, reliable and efficient way of
satisfying the formation needs of the user.

BHAVNA SINGH

LIBRARY MANAGEMENT SYSTEM

TOOLS/ENVIRONMENT USED
Front End Used-JAVA
Back End Used-Microsoft

ACCESS

(RDBMS)
JAVA:INTRODUCTION:Java is the language for Internet computing & it was developed by SUN
CORP. USA.
What is JAVA?
According to SUN WHITE PAPER
Java is Simple, Object Oriented, Distributed, Dynamic, Robust,
Secure, Platform Independent, Multi Threaded, High Performance &
Interpreted Language
Java is the language for Professional Programmer, from that point of
view it is simple.
It follows all the concept of Object orientation except Multiple Inheritence.
The Object oriented concept like ABSTRACTION, ENCAPSULATION,
INHERITENCE & POLYMORPHISM features are present in java.

BHAVNA SINGH

10

LIBRARY MANAGEMENT SYSTEM

Due to presence of JVM (Java Virtual Machine) java is Platform


independent language. Platform independency means we dont
require copying source code again and again to execute it on
another machine.

CLASS LOADER of JVM makes it Distributed and Dynamic.


Due to presence of JVMs Byte Code Verifier java is Robust & Secure.
It provides support for multithreaded programming.
Abstract Window Toolkit (AWT)
The Abstract Window Toolkit (AWT) supports Graphical User
Interface (GUI) programming. AWT features include:

A rich set of user interface components;


A robust event-handling model;
Graphics and imaging tools, including shape, color, and
font classes;
Layout managers, for flexible window layouts that don't
depend on a particular window size or screen resolution;
Data transfer classes, for cut-and-paste through the native
platform clipboard.

The AWT is part of the Java Foundation Classes (JFC).


SWING
Swing is the part of the Java TM Foundation Classes (JFC)
software that implements a new set of GUI components with a
pluggable look and feel. Swing is implemented entirely in the
Java programming language, and is based on the JDK TM 1.1
Lightweight UI Framework. The pluggable look and feel lets
BHAVNA SINGH

11

LIBRARY MANAGEMENT SYSTEM

you design a single set of GUI components that can


automatically have the look and feel of any OS platform
(Microsoft Windows, SolarisTM, Macintosh).Swing components
include both 100% Pure JavaTM certified versions of the existing
AWT component set (Button, Scrollbar, Label, etc.), plus a rich
set of higher-level components (such as tree view, list box, and
tabbed panes).
JDBC
The JDBCTM API provides universal data access from the
JavaTM programming language. Using the JDBC 2.0 API, you
can access virtually any data source, from relational databases
to spreadsheets and flat files. JDBC technology also provides a
common base on which tools and alternate interfaces can be
built.
The JDBC 2.0 API includes two packages: the java.sql
package, known as the JDBC 2.0 core API, and the
javax.sql package, known as the JDBC Standard Extension.
The JavaTM 2 SDK, Standard Edition, includes the JDBC 2.0
core API and the JDBC-ODBC Bridge.
The JavaTM 2 SDK, Enterprise Edition, includes the JDBC 2.0
core API and also the JDBC 2.0 Standard Extension
JDBC Technology Drivers
To use the JDBC API with a particular database management system,
you need a JDBC technology-based driver to mediate between JDBC
technology and the database. Depending on various factors, a driver
might
be written purely in the Java programming language or in a
mixture of the Java programming language and Java TM Native
Interface (JNI) native methods.

BHAVNA SINGH

12

LIBRARY MANAGEMENT SYSTEM

The latest SDK includes the JDBC-ODBC Bridge. This JDBC


technology-based driver makes most Open Database
Connectivity (ODBC) drivers available to programmers using
the JDBC API.
Java Beans
JavaBeans extends Java platform's "write once - run
everywhere" capability to reusable component development. In
fact, JavaBeans takes interoperability a major step forward -your code runs on every OS and also within any application
environment. A Beans developer secures a future in the
emerging network software market without losing customers
that use proprietary platforms, because JavaBeans interoperate
with ActiveX, OpenDoc, and Live Connect.
RMI
Java is the master technology for distributed computing &
Remote Method Invocation (RMI) is the tool for distributed
computing by java. It supports client server architecture. It is
use to call the method from one location or from one system to
another system. The program must be written in java.
Components and Containers
Component classes are used for coordinating all aspects of a visual
control. A variety of Component methods can be used to process
events, enable or disable a control, set fonts and colors, and manage
the control's visual display. The most widely used Components will be
those simple ones that are part and parcel of creating a user interface.
These include labels, buttons, list boxes, choice and menus. However,
more sophisticated Component subclasses can be used to manage
these primitive controls. The following list shows the primitive
Component classes; these simpler classes are derived directly from
Component.

BHAVNA SINGH

13

LIBRARY MANAGEMENT SYSTEM

Primitive Component Classes


* Button
* Checkbox
* Label
* List
* Combo box
* TextComponent
* Text Area (extends TextComponent)
* Text Field (extends TextComponent)
The Component hierarchy complements these primitive controls with classes
based on the Container class. Containers are used to hold Component classes
and other Containers. Panels, Windows, Dialogs, and Applets are all notable
Container subclasses.
Panel
Panel is a visual Container that can be used to hold other components, such
as buttons, list boxes, and other Containers.
The Window, Frame, and Dialog classes are also Containers that figure
prominently. These are used to create objects that "pop up" outside the
space of the applet, giving a multidimensional feel to an otherwise "flat"
Web page.
Layouts
Layouts are an important part of AWT because they take care of a major
issue in Java: portability. By providing a level of abstraction above the
native GUI, it can hide the specifics of the underlying environment from the
developer. Layouts are key elements of the visual part of the abstraction
mechanism. By taking control of the sizing and positioning of components,
layouts free the developer from having to worry about how
to write an applet that looks good on the variety of monitor resolutions in
the field. Layouts dynamically calculate how to present a component by
looking at the native display-coordinate system at runtime; the sizing and
positioning of the components is based on this runtime information.

BHAVNA SINGH

14

LIBRARY MANAGEMENT SYSTEM

Border Layout
When a Container uses Border Layout, a Component is added through a
command of this form: add(, Component ,String direction); Direction is
one of the following Strings: "North", "South", "East", "West" and "Center".
In short, the Border Layout class uses a directional scheme to position a
component based on one of the five direction strings. A component set to the
"North" direction is set to the top of the container; one that is set to "South"
is positioned at the bottom, and so forth. The size of the components is
determined by other runtime information, such as the size of the container
(usually set by the resize () method) and the attributes of the displayed
component. The default behavior of Border Layout gives the component set
to the "Center" direction any space not used by the other components.
That the Border Layout class can display up to only five components or five
containers (corresponding to the five directions)

Flow Layout
Grid Layout
Grid Bag Layout
Card Layout

BHAVNA SINGH

15

LIBRARY MANAGEMENT SYSTEM

SQLServer (RDBMS):-

Some of the merits of using SQLServer (RDBMS) are as under:

Centralization of database.
Client Server Technology.
Security.
Normalization of Data Base.
Relationship.
Transaction Processor.
It gives some internet related features.

BHAVNA SINGH

16

LIBRARY MANAGEMENT SYSTEM

HARDWARE REQUIREMENT
Configuration:

CPU type

Micro processor -

Intel, Celeron, AMD


500 MHZ (minimum)
(For better performance above 500 MHz)

CD- Drive

CD-ROM
(Backup)

RAM-

128MB (min.)

Hard disk

10GB (min.)

Printer

DeskJet, Laser

Software Requirement:

SQL Server

JAVA

Platform: Window 95/98/2000/XP/Window 7


BHAVNA SINGH

17

LIBRARY MANAGEMENT SYSTEM

SOFTWARE SYSTEM ATTRIBUTES


To solve actual problems in an industry setting, a software engineer or a team of
engineers must incorporate a development strategy that encompasses the
process, methods, and tools layers. The strategy is often referred to as a process
model or a software-engineering paradigm. A process model for software
engineering is chosen based on the nature of the project and application, the
methods and tools to be used, and the controls and deliverables that are
required.
There are numbers of paradigm available:
The Linear Sequential Model
The Prototype Model
The RAD Model
The incremental Model
The Spiral Model
The WINWIN Spiral Model
The Component- based development Model
The Concurrent Development Model
The Formal Methods Model
The Fourth Generation Techniques Model
The Model, which has been applied in my Project, is the Rapid Application
Development (RAD) Model. For the same reason Visual Basic is used as the
programming tool because it provides us with the components that have already
been made and we can use the as it is. This reduces the time and cost incurred
on completing the project.

BHAVNA SINGH

18

LIBRARY MANAGEMENT SYSTEM

SOFTWARE REQUIREMENT
SPECIFICATION
The Software Requirements Specification is produced at the culmination of the
analysis task. The function and performance allocated to software as part of
system engineering are refined by establishing a complete information
description, a detailed functional description, a representation of system
behavior, an indication of performance requirement and design constraints,
appropriate validation criteria, and other information pertinent to requirement.
The Introduction to software requirements specification states the goals and
objectives of the software, describing it in the context of the computer based
system.
The Information Description provides a detailed description of the problem that
the software must solve. Information content, flow, and structure are
documented.
A Description of each function required to solve the problem is presented in the
Functional Description.
Validation Criteria is probably the most important and, ironically, the most often
neglected section of the Software requirement Specification.
Software Specifications can be used for different purposes. Here are there major
uses.

Statement of user needs:


A main purpose of the product specification is to define the need of the products
user. Some times, the specification may be a part of a contract sign between the
producer and the user. It could also form part of the user manuals. A users
BHAVNA SINGH

19

LIBRARY MANAGEMENT SYSTEM

needs are sometimes not clearly understood by the developer. If this is the case,
a careful analysis involving much interaction with the user should be devoted to
reaching a clear statement of requirements, in order to avoid possible
misunderstandings.

Sometimes, at the beginning of a project, even the user has no clear idea of what
exactly the desired product is. Think, for instance, of user interfaces. A user with
no previous experience with computer products may not appreciate the
difference between, say, menu driven interaction and a command line interface.
Even an exact formulation of system functions and performance may be missing
an initial description produced by an inexperienced user.

A statement of the requirements for the implementation:


Specifications are also used as a reference point during product implementation.
In fact, the ultimate goal of the implementation is to build a product that needs
specification. Thus the implementers use specifications during design to make
design decisions and during the verification activity to check that the
implementation compiles with the specifications.

BHAVNA SINGH

20

LIBRARY MANAGEMENT SYSTEM

DESIGN
Software Design is the first of three technical activities design, Code
generation, and test that are required to build and verify the software. Each
activity transforms information in a manner that ultimately results in validated
computer software.
The Design task produces a data design, an architectural design, an interface
design and component design.
The Design of an information system produces the details that clearly describes
how a system will meet the requirements identified during system analysis. The
system design process is not a step by step adherence of clear procedures and
guidelines. When I started working on system design, I face different types of
problems; many of these are due to constraints imposed by the user or limitation
of hardware and software available. Some time it was quite difficult to enumerate
the complexity of the problems and solutions thereof since the variety of likely
problems is so great and no solutions are exactly similar however the following
consideration I kept in mind during Design phase.

BHAVNA SINGH

21

LIBRARY MANAGEMENT SYSTEM

DESIGN OBJECTIVES
The primary objective of the design is to deliver the requirements as specified in
the feasibility report. These are the some of the objective, which I kept in mind.

Practicality: The system is quite stable and can be operated by the


people with average intelligence.

Efficiency: I tried to involve accuracy, timeliness and comprehensiveness


of the system output.

Cost: It is desirable to aim for the system with a minimum cost subject to
the condition that it must satisfy all the requirement.

Flexibility: I have tried that the system should be modifiable depending


on the changing needs of the user. Such modifications should not entail
extensive reconstructing or recreation of software. It should also be
portable to different computer systems.

Security: This is very important aspect which I followed in this designing


phase and tried to covers the areas of hardware reliability, fallback
procedures, and physical security of data.

Constraints
These are the following constraints:
Hardware
Software
Budget
Time Scale
Interface with other System
Operations
Throughout the design process I considered and specify the requirement of each
of these operational areas.
BHAVNA SINGH

22

LIBRARY MANAGEMENT SYSTEM

User raising Input


Data preparation
Data Validation
Processing
Output Handling
Action on Output

BHAVNA SINGH

23

LIBRARY MANAGEMENT SYSTEM

ANALYSIS AND DESIGN REPORT


SYSTEM ANALYSIS
System Analysis and Design refers to the process of examining a business
situation with the intent of improving it through better procedures and methods.
System Analysis is a process of gathering and interpreting facts, diagnosing
problems and using the information to recommend improvement to the system. In
brief we can say Analysis specifies what system should do. System Analysis is a
management technique, which helps us in designing a new system or improving
an existing system.

The basic procedure that will be used by the software is to first input the
information about all the courses being conducted by the college. Then all the
information about any new students who joins the college is stored. Once this is
done all the other information that needs to be stored about the student namely
the marks, attendance details and any other information about the student is also
stored. All this information is input in the following manner

BHAVNA SINGH

24

LIBRARY MANAGEMENT SYSTEM

Analysis of the project:


1) Preliminary Investigation:
2) Feasibility Study:

The First Step in the System Development Life Cycle is the Preliminary
Investigation to determine the feasibility of the system. The purpose of the
preliminary investigation is to evaluate project requests. It is not a design
study nor does it include the collection of details to describe the business
system in all respect. Rather, it is the collecting of the information that
helps committee members to evaluate the merits of the project request and
make an informed judgment about the feasibility of the proposed project.

The Preliminary investigation should accomplish the following Objectives.


Clarify and understand the project request.
Determine the size of the project
Assess costs and benefits of alternative approaches
Determine the technical and operational feasibility of alternative
approaches.
Report the findings to management; with recommendations outlining
the acceptance or rejection of the proposal.

Conducting the Investigation


The data that the analysts collect during preliminary investigations are
gathered

through

three

primary

methods:

reviewing

organization

documents, on-site observations and conducting interviews.


BHAVNA SINGH

25

LIBRARY MANAGEMENT SYSTEM

Reviewing Organization Documents


The analyst conducting the investigation first learns about the organization
involved in, or affected by the project. In LIC management system, it is
necessary to know how the department works and who are the persons
directly associated with inventory system.

On -site Observation
Another important technique to collect data is on-site observation. The
purpose of the On-site observation is to get as close as possible
to the real system being studied. During On-site Observation,
office environment can be seen, workload, method of work and
facilities provided by the organization to the users can be studied

Conducting Interviews
Interviews allow learning more about the nature of the Project request and
reasons for submitting it. Interviews should provide details that further
explain the project and show whether assistance is merited economically,
operationally and technically.

BHAVNA SINGH

26

LIBRARY MANAGEMENT SYSTEM

FEASIBILITY STUDY
An Important outcome of the preliminary investigation is the determination that
the system requested is feasible. There are 3 aspects in the feasibility study.

TECHNICAL FEASIBILITY
This is concerned with specifying equipment and software that will successfully
satisfy the user requirement. The technical needs of the system may vary
considerably, but might include:
The facility to produce outputs in a given time.
Response time under certain conditions.
Ability to process a certain volume of transaction at a particular speed.
Facility to communicate data to distant location.
In examining technical feasibility, configuration of the system is given more
importance than the actual make of hardware. The configuration should given the
complete picture about the systems requirements like how many workstations
are required, how these units are interconnected so that they could operate and
communicate smoothly. What speeds of input and output should be achieved at
particular quality of printing. This can be used be used as a basis for the tender
document against which dealers and manufactures can later make their
equipment bids. Specific hardware and software products can then be evaluated
keeping in view with the logical needs.
At the feasibility stage it is desirable that two or three different configurations will
be pursued that satisfy the key technical requirements but which represent
different levels of ambitions and cost. Investigation of these technical alternatives
BHAVNA SINGH

27

LIBRARY MANAGEMENT SYSTEM

can be aided by approaching a range of suppliers for preliminary discussions.


Out of all types of feasibility, technical feasibility generally is the most difficult to
determine.

OPERATIONAL FEASIBILITY
It is mainly related to human organizational and political aspects. The points to
be considered are:
What changes will be brought with the system?
What organizational structures are distributed?
What new skills will be required? Do existing staff members have these skills? If
not, can they be trained in due course of time?
Generally project will not be rejected simply because of operational infeasibility
but such considerations are likely to critically affect the nature and scope of the
eventual recommendations. This feasibility study is carries out by a small group
of people who are familiar with information system techniques, who understand
the parts of the business that are relevant to the project and are skilled in system
analysis and design process.
As far as this project is concerned the changes which we have to be brought
depends upon whether we are going to build a new project or we going to modify
some establishment in the late one first of all we have make a network
environment i.e. establishment of a server is must. Then our focus goes towards
workstations. Keeping in view of their hardware requirements like network
interface card etc.
Regarding this project distribution of organizational structures is also essential
because of security concerns, as there are different departments having their
particular tasks I have already mentioned earlier like a system administrator
BHAVNA SINGH

28

LIBRARY MANAGEMENT SYSTEM

should have the authentication to provide different access permission to its


clients.
There is also another clause to check what skills are required?
By means to say whether the existing staff is capable

ECONOMIC FEASIBILITY
Economic analysis is the most frequently used technique for evaluating the
effectiveness of a proposed system. More commonly known as cost/benefit
analysis; the procedure is to determine the benefits and savings that expected
from a proposed system and compare them with costs. If benefits outweigh
costs, a decision is taken to design and implement the system. Otherwise, further
justification or alternative in the proposed system will have to be made if it is to
have a chance of being approved. This is an ongoing effort that improves in
accuracy at each phase of the system life cycle.

This feasibility also depends upon quality of staff hired and the proposed duration
of time taken in this project sometimes it might be possible due to extension of
time duration may fall the project under loss. The study of feasibility changes
from phase to phase of the project development.
In this project although this feasibility study dosent matter much in the case new
setup of project because we start according to client specification but on the
other hand if we have to modify over existing system we must take care of our
BHAVNA SINGH

29

LIBRARY MANAGEMENT SYSTEM

existing resources and must analyze specially the working condition of hardware
like server quality etc.

BHAVNA SINGH

30

LIBRARY MANAGEMENT SYSTEM

PROCESS LOGIC
This project consists of many inputs and outputs. Each and every input can be
converted into output. In registration form, firstly passenger is registered. After
fulfillment of the form the passenger gets a ticket which is its registration ID. Then
all the information of the passenger is sent to the test form with respective test
type. The test report of a particular passenger is maintained here and can be
directly stored in the disk. Whenever the passenger wants its report detail, simply
printout is taken after inputting the registration ID of the passenger.

BHAVNA SINGH

31

LIBRARY MANAGEMENT SYSTEM

Software System Attributes:


Reliability:
Reliability is a major consideration when using any
application. Thus when making this module, considerable attention was paid
to reliability.

Security:
No software store or organization is safe if I do not intend about
security. Security is a very cautious propaganda in very aspects of an
organization or PNR software store. I have given a lot of security features in
software store. Firstly I have given a password system so that genuine
personality can access the system. We have also given a constraint on the
database so that if anyone can implement wrongly on the database these will
show invalid results. The use of trigger in database is that if I fire trigger
between certain times, then it will do action on that certain time only. We
have also given exe file so that no one can see the coding.

BHAVNA SINGH

32

LIBRARY MANAGEMENT SYSTEM

Maintainability:
Any application needs to be maintained once it is use.
Thus features of this module have been made such that they future
maintenance is easy and additional features can be added at any point of
time.

Portability:
Portability is an important aspect in software applications.
Now whenever the clients want to shift from one platform to another, either
the application would work, or it would have to be modified. Now, this
application would work on any system that supports ODBC, has Oracle and
Windows OS.

BHAVNA SINGH

33

LIBRARY MANAGEMENT SYSTEM

Overall Descriptions
Product Perspective:
System Interfaces:
The product at hand here interacts with the
various applications. VB being the GUI interacts with M S Access through
ODBC.
User Interfaces:
This system supports graphical user interface (GUI).
Hardware Interfaces:
There is no special hardware needed by this
project and a normal system with 32 MB ram is sufficient.

Software Interfaces:
Though this product is standalone, it needs several
software packages to interact with each other. The user interface will be
implemented by using Visual Basic, and the database management system
will be implemented using SQL Server.
Communications interfaces:
There is only single user and there is not a
client server model so that no communication interface is required.
Memory Constraints:
The memory required for this software is up to
1 GB.

Operations
A relational database management can perform the following basic
BHAVNA SINGH

34

LIBRARY MANAGEMENT SYSTEM

operations.
Create or delete tables.
Update, insert or delete rows.
Add or delete columns.
Copy data from one table into another.
Retrieve or query a table into another.
Print, recognize, or read a table or row.

Site Adaptation Requirements:


For this software site adaptation requirements is not applicable because this
software is not online software.
Product functions:
This system will have the following functions:
Information about Student account
Information about issue Book.
Information about Book stock.
Information about return Book.

BHAVNA SINGH

35

LIBRARY MANAGEMENT SYSTEM

User Characteristics:
This provides flexibility to the user to get knowledge
about the typical issues of Library Management System related problems.
User can obtain various queries only from the product software. Basically,
there is only one user.
1) Administrator
Role
Programmer Responsibilities:
Designing front end screens
.Coding for accessing and modifying the
Database.
Working with Data Reports.
Testing the application.
Constraints:
1. The client site of this software system should be platform independent
because I should not constrain our users to use special platform.
2. The system must be safe and secured to keep clients information
secured.

BHAVNA SINGH

36

LIBRARY MANAGEMENT SYSTEM

Regulatory policies:
The enterprise using this system has to make
policies to restrict access of people to this module; otherwise serious errors
would occur as the cash shown would not tally. Hence, some policies are
needed to control the usage of the system in order to prevent any form of
unauthorized usage.
Hardware limitations:
For this software CPU (p4), 3 GB memory in Hard disk and at least 128
MB RAM is required.

Interfaces to other applications

The user does not interface to other application. He is only interacting


with one application at one time.
Parallel operation:
No parallel operation does in this software. Only one operation does
through out the operation at same time.
Higher-order language requirements:
No other higher order language is requiring for this software.
Safety and security considerations:
BHAVNA SINGH

37

LIBRARY MANAGEMENT SYSTEM

For the safety of the system, a password is required for access to the
database. Without this password, access to the database is prohibited, and
hence database remains secure.
Now only one forms of user is possible: a.) Administrator

Assumptions and Dependencies:


1. My assumption is that manager group is illiterate about computers
and web designing. So, a Friendly user interface is must for manager group
so that they can update or validate the data easily. A friendly user manual can
also be provided to managerial group.
2. I assume Windows, M s Access and CORE java will be available with
the computer

BHAVNA SINGH

38

LIBRARY MANAGEMENT SYSTEM

ANALYSIS AND DESIGN REPORT


Analysis of the project
Steps to be followed during Analysis and Design:
Preliminary investigation
(1) Fact finding
(2) Feasibility analysis
Reported problem objectives
(1) System goals
(2) Problem specification
Several level of DFD
Data dictionary
Analysis for system design
(1) ERD (Entity relationship diagram)
(2) Input screen and validation check

BHAVNA SINGH

39

LIBRARY MANAGEMENT SYSTEM

Preliminary Investigation:
Fact Finding:
Through the Preliminary Investigation, I have made an effort to
prepare a strategic plan for the development of project. The purpose of the
preliminary investigation is to evaluate project requirements. I collect the
information that helps committee members to evaluate the merits of the
project requirement and make an informed judgment about the feasibility of
the proposed project.
Feasibility analysis
Every project is feasible if it is given unlimited resources and infinite
time. Unfortunately, the development of a computer-based is more likely to
be plagued by a scarcity of resources and difficult delivery dates. It is both
necessary and prudent to evaluate the feasibility of a project at the earliest
possible time. Months or years of efforts, thousands or lakhs of rupees and
untold professional embarrassment can be averted if an ill conceived system
is recognized early in the definition phase. Feasibility refers to process of
evaluating alternative systems through cost-benefit analysis so that the most
feasible and desirable system can be selected for development. The
feasibility study of this system is undertaken from four angles:
BHAVNA SINGH

40

LIBRARY MANAGEMENT SYSTEM

Technical
Economic
Operational
Schedule

Technical feasibility:
The proposed system is easily developed using the existing software and
hardware.
Economic feasibility:
A project is called economically feasible if it can run by using existing
resources and does not require any additional software and hardware. The
cost of developing the system, including all phases should be calculated. The
cost of developing the system should be minimum. The proposed system is
economically feasible mainly because it is developed using existing software
and hardware.
Operational feasibility:
The proposed system is developed after discussions with the user of the
system. The

BHAVNA SINGH

41

LIBRARY MANAGEMENT SYSTEM

Organization will use this system to identify equipments , faults, and


provide information regarding diagnosis and corrective methods. This is
meant to increase the productivity in long run.

Schedule feasibility:
Schedule feasibility is a consideration of the time frame for the completion
of the project. Planning the project in terms of time is very important. If the
project is not planned properly it will have a negative impact on the
development of the system. Taking this criterion into consideration, the
system is planned efficiently from which it is evident that the development
can be completed in the allotted period. Hence the system satisfies schedule
feasibility.

BHAVNA SINGH

42

LIBRARY MANAGEMENT SYSTEM

Management
Policies
Goals
Objectives

Observation
Information
gathering

Work Flow
Schedules
Fee information

Interview
Job
About system

Source of information gathering

BHAVNA SINGH

43

LIBRARY MANAGEMENT SYSTEM

Reported Problem Objectives:


-- System Goals:

Student account information

Book stock Information

Book issue Information

Book return information

-- Problem Specification:
One of the most difficult tasks of system analysis is developing a
clear and in depth under standing of the problem being investigated,
without which it becomes impossible to specify the request for the
proposed project with any accuracy. Several majors problem routinely
experienced by the organization personal are:
Lack of coordination between sections.
Lack of information on the status of resources.
Lack of information on scheduling required resources.
Poor internal control of database.
Difficulty of monitoring complaint from external

BHAVNA SINGH

44

LIBRARY MANAGEMENT SYSTEM

MODULE
Details of module
There will be two modules for the project. One for the Student database maintenance and other for the
Books.

Module 1:

The input is Student file and the processes are

(a) Open registration form


(b) Input student details
(c) Generate system date
(d) Update student master file
(e) Close registration form

The output is:

Refer to again main form.

Module 2:

The input to details of the stock generated by the lab and the processes are

(a) Open the Book detail file


(b) Input the requirements

BHAVNA SINGH

45

LIBRARY MANAGEMENT SYSTEM

(c) Generate system date


(d) Update the master file
(e) Close the Book(Issue) form.

The output is

(a) Generation of the issues form


(b) Updating of Book detail.

Process logic:
This project consists of many inputs and outputs. Each and every input can be converted into output. In
registration form, firstly patient is registered. After fulfillment of the form the patient gets a control number
which is its registration ID. Then all the information of the Book is sent to the issue form with respective
test type. The Issue report of a particular Book is maintained here and can be directly stored in the disk.
Whenever the Student want its report detail, simply printout is taken after inputting the registration ID of
the Book.
Similarly, is for the stock of item. The stock is checked and whenever it goes down by a
certain amount then a valid request for the items are maintained. The requirement report is generated and
sent the individual Student who Issue the particular Book. After delivery the database is updated.

Report generation
INPUT AND OUTPUT
Input file 1: This file will have the information about Book.
Input: Student Enrolment No.
Output: All the information related to the Student.
Input file 2: This file will have all the information about test.
Input: Author & Book name.
Output: It will display the required information about Book.

BHAVNA SINGH

46

LIBRARY MANAGEMENT SYSTEM

Input file 3: This file will have the records about items in the Library .
Input: required items
Output: It will generate a requirement form of items which are going short.

Input file 4: This file will contain error handling technique.


Input: Any invalid data.
Output: Display the error message.

BHAVNA SINGH

47

LIBRARY MANAGEMENT SYSTEM

Database Description
Schema Diagram
Book
BookID
BookName
Type
Writer
Price
Quantity

BHAVNA SINGH

STUDENT
StudentID
Name
Enrolment No
Address
City
State
Pin Code
Contact

Issue Book
Issue ID
Issue Date
StudentName
Enrolment no
Year
Course
Book ID
Book Name
Type
Writer
Stock

Return Book
Return ID
Return Date
Issue ID
Issue Date
StudentName
Enrolment no
Year
Course
Book ID
Book Name
Type
Writer
Stock

48

LIBRARY MANAGEMENT SYSTEM

Entity-Relationship Diagram
No of
Students.

L.Name
*
LIBRARY
No.
of
Book
s

HA
S

Stud id

S.name

Course
City

STUDENTS
Contac
t

Addres
s
Name of
Book

Name of
Book
ISSUE
DETAILS

RETURN
DETAILS

Writer

Writer
Book Type

Qt
y

Qty

Book ID
Book Type

BHAVNA SINGH

MR
P

49

LIBRARY MANAGEMENT SYSTEM

Data Flow Diagram

BHAVNA SINGH

50

LIBRARY MANAGEMENT SYSTEM

DFD AT 0 LEVEL:-

BHAVNA SINGH

51

LIBRARY MANAGEMENT SYSTEM

DFD AT LEVEL-1:-

BHAVNA SINGH

52

LIBRARY MANAGEMENT SYSTEM

DFD AT LEVEL-2:-

BHAVNA SINGH

53

LIBRARY MANAGEMENT SYSTEM

DFD AT LEVEL-3:-

BHAVNA SINGH

54

LIBRARY MANAGEMENT SYSTEM

Data Table
The proposed data dictionary for the project is:
Table: Login Table
Name
UserName
Password

Type
varchar(30)
varchar(15)

Table: Book
Name
BookID
BookName
Type
Writer
Price
Quantity

Type
int
varchar(20)
varchar(20)
varchar(20)
int
int

Table: Student
Name
StudentID
StudentName
EnrolmentNo
Year
Course
Address
City
BHAVNA SINGH

Type
int
varchar(20)
int
int
varchar(20)
varchar(50)
varchar(20)
55

LIBRARY MANAGEMENT SYSTEM

State
PinCode
Contact

varchar(20)
int
varchar(20)

Table: Issue Book


Name

Type

IssueID
IssueDate
StudentID
StudentName
Enrolmeno
Year
Course
BookID
BookName
Type
Writer

int
varchar(20)
int
varchar(20)
int
int
varchar(20)
int
varchar(25)
varchar(20)
varchar(20)

Table: Return Book


Name

Type

ReturnID
ReturnDate
IssueID
IssueDate
BookID
BookName
Type
Writer
StudentID
StudentName

int
varchar(20)
int
varchar(20)
int
varchar(20)
varchar(20)
varchar(20)
int
varchar(20)

BHAVNA SINGH

56

LIBRARY MANAGEMENT SYSTEM

EnrolmentNo
Year
Course

BHAVNA SINGH

int
int
varchar(15)

57

LIBRARY MANAGEMENT SYSTEM

FOR
M
BHAVNA SINGH

58

LIBRARY MANAGEMENT SYSTEM

SPLASH SCREEN

BHAVNA SINGH

59

LIBRARY MANAGEMENT SYSTEM

BHAVNA SINGH

60

LIBRARY MANAGEMENT SYSTEM

LOGIN FORM

BHAVNA SINGH

61

LIBRARY MANAGEMENT SYSTEM

HOME PAGE

BHAVNA SINGH

62

LIBRARY MANAGEMENT SYSTEM

ADD BOOK DETAL

BHAVNA SINGH

63

LIBRARY MANAGEMENT SYSTEM

MODIFY BOOK DETAL

BHAVNA SINGH

64

LIBRARY MANAGEMENT SYSTEM

ADD STUDENT DETAIL

BHAVNA SINGH

65

LIBRARY MANAGEMENT SYSTEM

MODIFY STUDENT DETAIL

BHAVNA SINGH

66

LIBRARY MANAGEMENT SYSTEM

ISSUE BOOK DETAL

BHAVNA SINGH

67

LIBRARY MANAGEMENT SYSTEM

MODIFY ISSUE BOOK DETAL

BHAVNA SINGH

68

LIBRARY MANAGEMENT SYSTEM

RETURN BOOK DETAIL

BHAVNA SINGH

69

LIBRARY MANAGEMENT SYSTEM

CODI
NG
BHAVNA SINGH

70

LIBRARY MANAGEMENT SYSTEM

SPLASH SCREEN
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author BHAVNA SINGH
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class splesh extends JFrame implements ActionListener
{
Timer tm;
public splesh()
{
super("Library Management System");
JLabel j1=new JLabel("LMS");
JLabel j2=new JLabel("LIBRARY MANAGEMENT ");
JLabel j3=new JLabel("SYSTEM");
JLabel j4=new JLabel("Under The Guidence Of");
JLabel j5=new JLabel("Mr. Pushpendra Sir");
JLabel j6=new JLabel("Developed By");
JLabel j7=new JLabel("Bhavna Singh");
JLabel j8=new JLabel("Roll no 01ss");
j2.setFont(new Font("Algerian",Font.BOLD,28));
j3.setFont(new Font("Algerian",Font.BOLD,28));
j5.setFont(new Font("Times New Roman",Font.BOLD,18));
j7.setFont(new Font("Times New Roman",Font.BOLD,18));
j1.setFont(new Font("Times New Roman",Font.BOLD,32));
setBackground(Color.cyan);
j1.setForeground(Color.blue);
j2.setForeground(Color.red);
j3.setForeground(Color.red);
setLayout(null);
BHAVNA SINGH

71

LIBRARY MANAGEMENT SYSTEM

j2.setBounds(90,70,400,38);
j1.setBounds(200,140,100,35);
j3.setBounds(180,105,400,38);
j4.setBounds(10,340,200,20);
j5.setBounds(10,360,250,20);
j6.setBounds(300,335,200,20);
j7.setBounds(300,355,200,20);
j8.setBounds(300,375,200,20);
add(j1);add(j2);add(j3);add(j4);add(j5);add(j6);add(j7);add(j8);
Timer tm=new Timer(4000,this);
tm.start();
setVisible(true);
setSize(500,450);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocation(300,150);
//setResizeable(false);
}
public void actionPerformed(ActionEvent ae)
{
try
{
dispose();
new Login();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
tm.stop();
}
public static void main(String [] agr)
{
new splesh();
}
}

BHAVNA SINGH

72

LIBRARY MANAGEMENT SYSTEM

LOGIN
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.border.*;
class Login extends JFrame implements ActionListener
{
JTextField tuname;
JPasswordField tpassword;
JButton bok,bcancel;
JLabel l1,luname,lpassword;
Connection con;
Statement stm;
ResultSet rs;
public Login()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Login )");
l1=new JLabel("LOGIN");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
tuname=new JTextField(20);
tpassword=new JPasswordField(20);
luname=new JLabel("User Name");
lpassword=new JLabel("Password");
bok=new JButton("OK");
bok.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
setLayout(null);
l1.setBounds(100,15,300,20);
luname.setBounds(55,60,100,20);
BHAVNA SINGH

73

LIBRARY MANAGEMENT SYSTEM

lpassword.setBounds(55,90,100,20);
tuname.setBounds(135,60,120,20);
tpassword.setBounds(135,90,120,20);
bok.setBounds(85,120,75,20);
bcancel.setBounds(165,120,75,20);

add(l1);add(luname);add(lpassword);add(tuname);add(tpassword);add(bok);add(bcancel)
;
setVisible(true);
setSize(375,225);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

public void actionPerformed(ActionEvent ae)


{
String s1=tuname.getText();
String s2=tpassword.getText();
if(ae.getSource()==bok)
{
try
{
rs=stm.executeQuery("select * from login where
UserName='"+s1+"'");
while(rs.next())
BHAVNA SINGH

74

LIBRARY MANAGEMENT SYSTEM

{
if(s1.equals(rs.getString(1)) &&
s2.equals(rs.getString(2)))
{
new Windowform();
dispose();
}
else
{
JOptionPane.showMessageDialog(null,"Wromg Entry Try Again");
tuname.setText("");
tpassword.setText("");
}
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
if(ae.getSource()==bcancel)
{
dispose();
}
}

public static void main(String args[])


{
new Login();
}
}

BHAVNA SINGH

75

LIBRARY MANAGEMENT SYSTEM

ADD BOOK DETAIL


import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
class Addbook extends JFrame implements ActionListener
{
JLabel l1,lbid,lbname,ltype,lwriter,lprice,lquantity;
JTextField tbid,tbname,ttype,twriter,tprice,tquantity;
//JPasswordField tpassword;
JButton bsave,bcancel,bexit;
Connection con;Statement stm;
ResultSet rs;
public Addbook()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Add Book Detail )");
l1=new JLabel("ADD BOOK DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
lbid=new JLabel("Book ID");
lbname=new JLabel("Book Name");
ltype=new JLabel("Type");
lwriter=new JLabel("Writer");
lprice=new JLabel("Price");
lquantity=new JLabel("Quantity");
tbid=new JTextField(20);
tbname=new JTextField(20);
ttype=new JTextField(20);
twriter=new JTextField(20);
tprice=new JTextField(20);
tquantity=new JTextField(20);
bsave=new JButton("Save");
BHAVNA SINGH

76

LIBRARY MANAGEMENT SYSTEM

bsave.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);
setLayout(null);
l1.setBounds(100,15,300,20);
lbid.setBounds(50,60,100,20);
lbname.setBounds(50,90,100,20);
ltype.setBounds(50,120,100,20);
lwriter.setBounds(50,150,100,20);
lprice.setBounds(50,180,100,20);
lquantity.setBounds(50,210,100,20);
tbid.setBounds(130,60,100,20);
tbname.setBounds(130,90,200,20);
ttype.setBounds(130,120,200,20);
twriter.setBounds(130,150,200,20);
tprice.setBounds(130,180,80,20);
tquantity.setBounds(130,210,80,20);
bsave.setBounds(100,300,75,20);
bcancel.setBounds(200,300,75,20);
bexit.setBounds(300,300,75,20);
add(l1);add(lbid);add(lbname);add(ltype);add(lwriter);add(lprice);add(lquantity);
add(tbid);add(tbname);add(ttype);add(twriter);add(tprice);add(tquantity);
add(bsave);add(bcancel);add(bexit);
setVisible(true);
setSize(500,400);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
String qr,str="";
int x=0;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
BHAVNA SINGH

77

LIBRARY MANAGEMENT SYSTEM

stm=con.createStatement();
qr="select * from Addbook";
rs=stm.executeQuery(qr);
while(rs.next())
{
x=Integer.parseInt(rs.getString(1));
}
if(x==0)
{
tbid.setText("1");
}
else
{
if(x>0)
{
/*x=x+1;
String str3=(String)x;
tbid.setText(str3);
*/}
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void empty()
{
tbid.setText("");
tbname.setText("");
ttype.setText("");
twriter.setText("");
tprice.setText("");
tquantity.setText("");
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==bsave)
{
String qr;
BHAVNA SINGH

78

LIBRARY MANAGEMENT SYSTEM

try
{
qr="insert into Addbook values("+tbid.getText()
+",'"+tbname.getText()+"','"+ttype.getText()+"','"+twriter.getText()+"',"+tprice.getText()
+","+tquantity.getText()+")";
stm.executeUpdate(qr);
JOptionPane.showMessageDialog(null,"Information Saved
Successfully!!!!!!");
empty();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
String s1=tbname.getText();
}
if(ae.getSource()==bexit)
{
dispose();
}
//if(Cancel.equals(ae.getActionCommand()))
if(ae.getSource()==bcancel)
{
empty();
}
}
public static void main(String args[])
{
new Addbook();
}
}
MODIFY BOOK DETAIL
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import java.util.*;
class ModifyBookDetail extends JFrame implements ActionListener, ItemListener
{
JLabel l1,lbid,lbname,ltype,lwriter,lprice,lquantity;
JTextField tbid,tbname,ttype,twriter,tprice,tquantity;
BHAVNA SINGH

79

LIBRARY MANAGEMENT SYSTEM

JComboBox cbid;
JButton bupdate,bdelete,bcancel,bexit;
int val;String temp;
Connection con;Statement stm;
ResultSet rs;
public ModifyBookDetail()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Modify Book
Detail )");
l1=new JLabel("MODIFY Book DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
lbid=new JLabel("Book ID");
lbname=new JLabel("Book Name");
ltype=new JLabel("Type");
lwriter=new JLabel("Writer");
lprice=new JLabel("Price");
lquantity=new JLabel("Quantity");
//cbid=new JComboBox("");
tbid=new JTextField(20);
tbname=new JTextField(20);
ttype=new JTextField(20);
twriter=new JTextField(20);
tprice=new JTextField(20);
tquantity=new JTextField(20);
bupdate=new JButton("Update");
bupdate.addActionListener(this);
bdelete=new JButton("Delete");
bdelete.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);

BHAVNA SINGH

80

LIBRARY MANAGEMENT SYSTEM

setLayout(null);
l1.setBounds(100,15,400,20);
lbid.setBounds(90,60,100,20);
lbname.setBounds(90,90,100,20);
ltype.setBounds(90,120,100,20);
lwriter.setBounds(90,150,100,20);
lprice.setBounds(90,180,100,20);
lquantity.setBounds(90,210,100,20);
//cbid.setBounds(170,60,100,20);//Set Combo Box
tbname.setBounds(170,90,200,20);
ttype.setBounds(170,120,200,20);
twriter.setBounds(170,150,200,20);
tprice.setBounds(170,180,80,20);
tquantity.setBounds(170,210,80,20);
bupdate.setBounds(80,300,75,20);
bdelete.setBounds(180,300,75,20);
bcancel.setBounds(280,300,75,20);
bexit.setBounds(380,300,75,20);
add(l1);add(lbid);add(lbname);add(ltype);add(lwriter);add(lprice);add(lquantity);
//add(cbid);
add(tbname);add(ttype);add(twriter);add(tprice);add(tquantity);
add(bupdate);add(bdelete);add(bcancel);add(bexit);
setVisible(true);
setSize(550,400);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
String qr,qr1;
qr="select * from Addbook";
rs=stm.executeQuery(qr);
Vector v=new Vector();
//qr1="select * from Book";

BHAVNA SINGH

81

LIBRARY MANAGEMENT SYSTEM

//Vector v1=new Vector();


while(rs.next())
{
v.add(rs.getString(1));
}
cbid=new JComboBox(v);
add(cbid);
cbid.setBounds(170,60,100,20);
cbid.addItemListener(this);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void itemStateChanged(ItemEvent ie)
{
temp=(String)cbid.getSelectedItem();
val=Integer.parseInt(temp);
getdata();
}
public void getdata()
{
try
{
String qr;
qr="select * from Addbook
where BookID=("+""+val+""+")";
rs=stm.executeQuery(qr);
//JOptionPane.showMessage
Dialog(null,rs.getString(2));
while(rs.next())
{
tbname.setText(rs.getString(2));
ttype.setText(rs.getString(3));
twriter.setText(rs.getString(4));
BHAVNA SINGH

82

LIBRARY MANAGEMENT SYSTEM

tprice.setText(rs.getString(5));
tquantity.setText(rs.getString(6));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void empty()
{
tbname.setText("");
ttype.setText("");
twriter.setText("");
tprice.setText("");
tquantity.setText("");
}
public void actionPerformed(ActionEvent ae)
{
String qr;
if(ae.getSource()==bupdate)
{
try
{
qr="update Addbook set
BookID='"+val+"',BookName='"+tbname.getText()+"',Type='"+ttype.getText()
+"',Writer='"+twriter.getText()+"',Price='"+tprice.getText()
+"',Quantity='"+tquantity.getText()+"' where BookID='"+val+"'";
rs=stm.executeQuery(qr);
JOptionPane.showMessageDialog(null,"Data Modified
SuccessFully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
String s1=tbname.getText();
BHAVNA SINGH

83

LIBRARY MANAGEMENT SYSTEM

}
if(ae.getSource()==bexit)
{
dispose();
}
if(ae.getSource()==bdelete)
{
try
{
qr="delete from Addbook where BookID="+val+"";
rs=stm.executeQuery(qr);
JOptionPane.showMessageDialog(null,"Data Deleted
SuccessFully");
}
catch(Exception e)
{
//JOptionPane.showMessageDialog(null,e.getMessage());
}
}
if(ae.getSource()==bcancel)
{
empty();
}
}

public static void main(String args[])


{
new ModifyBookDetail();
}
}
ADD STUDENT DETAIL
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
class AddStudentDetail extends JFrame implements ActionListener
{
BHAVNA SINGH

84

LIBRARY MANAGEMENT SYSTEM

JLabel l1,lsid,lenrolno,lname,lbyear,lcourse,laddress,lcity,lstate,lpincode,lcontact;
JTextField
tsid,tenrolno,tname,tbyear,tcourse,taddress,tcity,tstate,tpincode,tcontact;
//JPasswordField tpassword;
JButton bsave,bcancel,bexit;
Connection con;Statement stm;
ResultSet rs;
public AddStudentDetail()
{
setTitle("LIBRARY MANAGEMENT SYSTEM(Add Student Detail)");
l1=new JLabel("ADD STUDENT DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
lsid=new JLabel("Student ID");
lname=new JLabel("Name");
lenrolno=new JLabel("Enrollment No.");
lbyear=new JLabel("Batch Year");
lcourse=new JLabel("Course");
laddress=new JLabel("Address");
lcity=new JLabel("City");
lstate=new JLabel("State");
lpincode=new JLabel("Pin Code");
lcontact=new JLabel("Contact No.");
tsid=new JTextField(20);
tenrolno=new JTextField(20);
tname=new JTextField(20);
tbyear=new JTextField(20);
tcourse=new JTextField(20);
taddress=new JTextField(20);
tcity=new JTextField(20);
tstate=new JTextField(20);
tpincode=new JTextField(20);
tcontact=new JTextField(20);
bsave=new JButton("Save");
BHAVNA SINGH

85

LIBRARY MANAGEMENT SYSTEM

bsave.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);
setLayout(null);
l1.setBounds(120,15,500,20);
lsid.setBounds(90,80,100,20);
lenrolno.setBounds(90,140,100,20);
lname.setBounds(90,110,100,20);
lbyear.setBounds(90,170,100,20);
lcourse.setBounds(90,200,100,20);
laddress.setBounds(90,230,100,20);
lcity.setBounds(90,260,100,20);
lstate.setBounds(90,290,100,20);
lpincode.setBounds(90,320,100,20);
lcontact.setBounds(90,350,100,20);
tsid.setBounds(180,80,100,20);
tenrolno.setBounds(180,140,100,20);
tname.setBounds(180,110,220,20);
tbyear.setBounds(180,170,80,20);
tcourse.setBounds(180,200,220,20);
taddress.setBounds(180,230,220,20);
tcity.setBounds(180,260,120,20);
tstate.setBounds(180,290,120,20);
tpincode.setBounds(180,320,120,20);
tcontact.setBounds(180,350,120,20);
bsave.setBounds(150,420,75,20);
bcancel.setBounds(250,420,75,20);
bexit.setBounds(350,420,75,20);

add(l1);add(lsid);add(lenrolno);add(lname);add(lbyear);add(lcourse);add(laddress);add(lc
ity);add(lstate);add(lpincode);add(lcontact);

BHAVNA SINGH

86

LIBRARY MANAGEMENT SYSTEM

add(tsid);add(tenrolno);add(tname);add(tbyear);add(tcourse);add(taddress);add(tcity);add
(tstate);add(tpincode);add(tcontact);
add(bsave);add(bcancel);add(bexit);
setVisible(true);
setSize(600,500);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try
{
String qr,str="";
int x=0;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
qr="select * from Student";
rs=stm.executeQuery(qr);
while(rs.next())
{
x=Integer.parseInt(rs.getString(1));
}
if(x==0)
{
tsid.setText("1");
}
else
{
if(x>0)
{
/*x=x+1;
String str3=(String)x;
tbid.setText(str3);
*/}
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
BHAVNA SINGH

87

LIBRARY MANAGEMENT SYSTEM

}
}
public void empty()
{
tsid.setText("");
tname.setText("");
tenrolno.setText("");
tbyear.setText("");
tcourse.setText("");
taddress.setText("");
tcity.setText("");
tstate.setText("");
tpincode.setText("");
tcontact.setText("");
}
public void actionPerformed(ActionEvent ae)
{
String qr;
if(ae.getSource()==bsave)
{
try
{
qr="insert into Student values("+tsid.getText()
+",'"+tname.getText()+"',"+tenrolno.getText()+","+tbyear.getText()
+",'"+tcourse.getText()+"','"+taddress.getText()+"','"+tcity.getText()+"','"+tstate.getText()
+"',"+tpincode.getText()+","+tcontact.getText()+")";
stm.executeUpdate(qr);
JOptionPane.showMessageDialog(null,"Information Saved
Successfully!!!!!!");
empty();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
String s1=tname.getText();
}
//if(Cancel.equals(ae.getActionCommand()))
BHAVNA SINGH

88

LIBRARY MANAGEMENT SYSTEM

if(ae.getSource()==bcancel)
{
empty();
}
if(ae.getSource()==bexit)
{
dispose();
}
}

public static void main(String args[])


{
new AddStudentDetail();
}
}
MODIFY STUDENT DETAIL
import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import java.util.*;
class ModifyStudentDetail extends JFrame implements ActionListener, ItemListener
{
JLabel l1,lsid,lenrolno,lname,lbyear,lcourse,laddress,lcity,lstate,lpincode,lcontact;
JTextField tenrolno,tname,tbyear,tcourse,taddress,tcity,tstate,tpincode,tcontact;
JComboBox cstid;
JButton bupdate,bdelete,bcancel,bexit;
int val;
Connection con;Statement stm;
ResultSet rs;
public ModifyStudentDetail()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Modify Student
Detail )");
l1=new JLabel("MODIFY STUDENT DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
BHAVNA SINGH

89

LIBRARY MANAGEMENT SYSTEM

lsid=new JLabel("Student ID");


lenrolno=new JLabel("Enrollment No.");
lname=new JLabel("Name");
lbyear=new JLabel("Batch Year");
lcourse=new JLabel("Course");
laddress=new JLabel("Address");
lcity=new JLabel("City");
lstate=new JLabel("State");
lpincode=new JLabel("Pin Code");
lcontact=new JLabel("Contact No.");
//cstid=new JComboBox();
tenrolno=new JTextField(20);
tname=new JTextField(20);
tbyear=new JTextField(20);
tcourse=new JTextField(20);
taddress=new JTextField(20);
tcity=new JTextField(20);
tstate=new JTextField(20);
tpincode=new JTextField(20);
tcontact=new JTextField(20);

bupdate=new JButton("Update");
bupdate.addActionListener(this);
bdelete=new JButton("Delete");
bdelete.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);
setLayout(null);
l1.setBounds(100,15,500,20);
lsid.setBounds(90,80,100,20);
lenrolno.setBounds(90,110,100,20);
lname.setBounds(90,140,100,20);
BHAVNA SINGH

90

LIBRARY MANAGEMENT SYSTEM

lbyear.setBounds(90,170,100,20);
lcourse.setBounds(90,200,100,20);
laddress.setBounds(90,230,100,20);
lcity.setBounds(90,260,100,20);
lstate.setBounds(90,290,100,20);
lpincode.setBounds(90,320,100,20);
lcontact.setBounds(90,350,100,20);
//cstid.setBounds(180,80,100,20);//Set Combo Box
tenrolno.setBounds(180,110,100,20);
tname.setBounds(180,140,220,20);
tbyear.setBounds(180,170,80,20);
tcourse.setBounds(180,200,220,20);
taddress.setBounds(180,230,220,20);
tcity.setBounds(180,260,120,20);
tstate.setBounds(180,290,120,20);
tpincode.setBounds(180,320,120,20);
tcontact.setBounds(180,350,120,20);

bupdate.setBounds(110,420,75,20);
bdelete.setBounds(210,420,75,20);
bcancel.setBounds(310,420,75,20);
bexit.setBounds(410,420,75,20);

add(l1);add(lsid);add(lenrolno);add(lname);add(lbyear);add(lcourse);add(laddress);add(lc
ity);add(lstate);add(lpincode);add(lcontact);
add(tenrolno);add(tname);add(tbyear);add(tcourse);add(taddress);add(tcity);add(tstate);ad
d(tpincode);add(tcontact);
add(bupdate);add(bdelete);add(bcancel);add(bexit);
setVisible(true);
setSize(600,500);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
BHAVNA SINGH

91

LIBRARY MANAGEMENT SYSTEM

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
String qr,qr1;
qr="select * from Student";
rs=stm.executeQuery(qr);
Vector v=new Vector();
while(rs.next())
{
v.add(rs.getString(1));
}
cstid=new JComboBox(v);
add(cstid);
cstid.setBounds(180,80,100,20);
cstid.addItemListener(this);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void itemStateChanged(ItemEvent ie)
{
String temp;
temp=(String)cstid.getSelectedItem();
val=Integer.parseInt(temp);
getdata();
}
public void getdata()
{
try
{
String qr;
qr="select * from Student where StudentID=("+""+val+""+")";
rs=stm.executeQuery(qr);
//JOptionPane.showMessageDialog(null,rs.getString(2));
while(rs.next())
{
tname.setText(rs.getString(2));
tenrolno.setText(rs.getString(3));
BHAVNA SINGH

92

LIBRARY MANAGEMENT SYSTEM

tbyear.setText(rs.getString(4));
tcourse.setText(rs.getString(5));
taddress.setText(rs.getString(6));
tcity.setText(rs.getString(7));
tstate.setText(rs.getString(8));
tpincode.setText(rs.getString(9));
tcontact.setText(rs.getString(10));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void empty()
{
//stid.setText("");
tname.setText("");
tenrolno.setText("");
tbyear.setText("");
tcourse.setText("");
taddress.setText("");
tcity.setText("");
tstate.setText("");
tpincode.setText("");
tcontact.setText("");
}
public void actionPerformed(ActionEvent ae)
{
String qr;
if(ae.getSource()==bupdate)
{
try
{
JOptionPane.showMessageDialog(null,rs.getString(1));
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
BHAVNA SINGH

93

LIBRARY MANAGEMENT SYSTEM

String s1=tname.getText();
}
if(ae.getSource()==bdelete)
{
try
{
qr="delete from Student where StudentID="+val+"";
stm.executeQuery(qr);
JOptionPane.showMessageDialog(null,"Data Deleted
SuccessFully");
empty();
}
catch(Exception e)
{
//
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
if(ae.getSource()==bcancel)
{
empty();
}
if(ae.getSource()==bexit)
{
dispose();
}
}

public static void main(String args[])


{
new ModifyStudentDetail();
}
}

BHAVNA SINGH

94

LIBRARY MANAGEMENT SYSTEM

ISSUE BOOK DETAIL


import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.border.*;
import java.util.*;
class IssueBookDetail extends JFrame implements ActionListener,ItemListener
{
JLabel
l1,l2,l3,liid,lidate,lstid,lstname,lstrno,lstbatchyear,lstcourse,lbid,lbname,lbtype,lbwriter;
JTextField
tiid,tidate,tstid,tstname,tstrno,tstbatchyear,tstcourse,tbid,tbname,tbtype,tbwriter;
JComboBox cstid,cbid;
JButton bsave,bcancel,bexit;
JPanel stu,book;
Border bd;
int val,val1;
String temp,temp1;
Connection con;
Statement stm;
ResultSet rs,rs1,rs2;
public IssueBookDetail()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Issue Book Detail )");
Border bd=BorderFactory.createLineBorder(Color.blue,2);
stu=new JPanel();
book=new JPanel();
stu.setBorder(bd);
book.setBorder(bd);
add(stu);
add(book);
stu.setBounds(70,170,250,160);
book.setBounds(350,170,250,160);
l1=new JLabel("ISSUE BOOK DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
//l1.setBackground(Color.red);
l2=new JLabel("Student Information");
l2.setForeground(Color.blue);
BHAVNA SINGH

95

LIBRARY MANAGEMENT SYSTEM

l2.setFont(new Font("Arial Rounded MT Bold",Font.BOLD,14));


l3=new JLabel("Book Information");
l3.setForeground(Color.blue);
l3.setFont(new Font("Arial Rounded MT Bold",Font.BOLD,14));
liid=new JLabel("Issue ID");
lidate=new JLabel("Issue Date");
//Student Information
lstid=new JLabel("Student ID");
lstname=new JLabel("Name");
lstrno=new JLabel("Enorlment No.");
lstbatchyear=new JLabel("BatchYear");
lstcourse=new JLabel("Course");
//Book Information
lbid=new JLabel("Book ID");
lbname=new JLabel("Book Name");
lbtype=new JLabel("Type");
lbwriter=new JLabel("Writer");
tiid=new JTextField(20);
tidate=new JTextField(20);
tstname=new JTextField(20);
tstrno=new JTextField(20);
tstbatchyear=new JTextField(20);
tstcourse=new JTextField(20);
cbid=new JComboBox();
tbname=new JTextField(20);
tbtype=new JTextField(20);
tbwriter=new JTextField(20);
bsave=new JButton("Save");
bsave.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);
setLayout(null);
BHAVNA SINGH

96

LIBRARY MANAGEMENT SYSTEM

stu.setLayout(null);
l1.setBounds(180,15,500,20);
l2.setBounds(70,150,150,20);
l3.setBounds(370,150,150,20);
liid.setBounds(220,60,100,20);
lidate.setBounds(220,90,100,20);
tiid.setBounds(300,60,130,20);
tidate.setBounds(300,90,130,20);
lstid.setBounds(10,10,100,20);
lstname.setBounds(10,40,100,20);
lstrno.setBounds(10,70,100,20);
lstbatchyear.setBounds(10,100,100,20);
lstcourse.setBounds(10,130,100,20);
tstname.setBounds(100,40,140,20);
tstrno.setBounds(100,70,120,20);
tstbatchyear.setBounds(100,100,100,20);
tstcourse.setBounds(100,130,140,20);
setLayout(null);
book.setLayout(null);
lbid.setBounds(10,10,100,20);
lbname.setBounds(10,40,100,20);
lbtype.setBounds(10,70,100,20);
lbwriter.setBounds(10,100,100,20);
tbname.setBounds(80,40,150,20);
tbtype.setBounds(80,70,150,20);
tbwriter.setBounds(80,100,150,20);
bsave.setBounds(180,380,75,20);
bcancel.setBounds(280,380,75,20);
bexit.setBounds(380,380,75,20);

add(l1);add(l2);add(l3);add(liid);add(lidate);stu.add(lstid);stu.add(lstname);stu.add(lstrno
);stu.add(lstbatchyear);
BHAVNA SINGH

97

LIBRARY MANAGEMENT SYSTEM

stu.add(lstcourse);book.add(lbid);book.add(lbname);book.add(lbtype);book.add(lbwriter)
;
add(tiid);add(tidate);stu.add(tstname);stu.add(tstrno);stu.add(tstbatchyear);
stu.add(tstcourse);book.add(tbname);book.add(tbtype);book.add(tbwriter);
add(bsave);add(bcancel);add(bexit);
setVisible(true);
setSize(700,500);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
int x=0;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
String qr,qr1,qr2;
qr="select * from
IssueBook";
rs=stm.executeQuery(qr);
while(rs.next())
{
x=Integer.parseInt(rs.getString(1));
}
if(x==0)
{
tiid.setText("");
}
else
{
if(x>0)
{
/*x=x+1;
String str3=(String)x;
tbid.setText(str3);
*/}
}
BHAVNA SINGH

98

LIBRARY MANAGEMENT SYSTEM

qr1="select * from Student";


rs=stm.executeQuery(qr1);
Vector v=new Vector();
while(rs.next())
{
v.add(rs.getString(1));
}
cstid=new JComboBox(v);
stu.add(cstid);
cstid.setBounds(100,10,100,20);
cstid.addItemListener(this);
//book id combo value
qr2="select * from AddBook";
rs=stm.executeQuery(qr2);
Vector v1=new Vector();
while(rs.next())
{
v1.add(rs.getString(1));
}
cbid=new JComboBox(v1);
book.add(cbid);
cbid.setBounds(80,10,100,20);//Set ComboBox
cbid.addItemListener(this);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void itemStateChanged(ItemEvent ie)
{
if(ie.getSource()==cstid)
{
temp=(String)cstid.getSelectedItem();
val=Integer.parseInt(temp);
getdata();
BHAVNA SINGH

99

LIBRARY MANAGEMENT SYSTEM

}
if(ie.getSource()==cbid)
{
temp1=(String)cbid.getSelectedItem();
val1=Integer.parseInt(temp1);
getbook();
}
}
public void getdata()
{
try
{
String qr,qr1;
qr1="select * from Student where
StudentID=("+""+val+""+")";
rs=stm.executeQuery(qr1);
//JOptionPane.showMessageDialog(null,rs.getStrin
g(2));
while(rs.next())
{
tstname.setText(rs.getString(2));
tstrno.setText(rs.getString(3));
tstbatchyear.setText(rs.getString(4));
tstcourse.setText(rs.getString(5));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void getbook()
{
String qr2;
try
{
qr2="select * from AddBook where BookID=("+""+val1+""+")";
rs=stm.executeQuery(qr2);
//JOptionPane.showMessageDialog(null,rs.getString(2));
while(rs.next())
{
BHAVNA SINGH

100

LIBRARY MANAGEMENT SYSTEM

tbname.setText(rs.getString(2));
tbtype.setText(rs.getString(3));
tbwriter.setText(rs.getString(4));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void empty()
{
tiid.setText("");
tidate.setText("");
//cstid.getText("");
tstname.setText("");
tstrno.setText("");
tstbatchyear.setText("");
tstcourse.setText("");
//cbid.setText("");
tbname.setText("");
tbtype.setText("");
tbwriter.setText("");
}
public void actionPerformed(ActionEvent ae)
{
String qr;
if(ae.getSource()==bsave)
{
try
{
qr="insert into AddBook values("+tiid.getText()
+",'"+tidate.getText()+"',"+temp+",'"+tstname.getText()+"',"+tstrno.getText()
+","+tstbatchyear.getText()+",'"+tstcourse.getText()+"',"+temp1+",'"+tbname.getText()
+"','"+tbtype.getText()+"','"+tbwriter.getText()+"')";
stm.executeUpdate(qr);
JOptionPane.showMessageDialog(null,"Information Saved
Successfully!!!!!!");
empty();

BHAVNA SINGH

101

LIBRARY MANAGEMENT SYSTEM

}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
String s1=tbname.getText();
}
if(ae.getSource()==bcancel)
{
empty();
}
if(ae.getSource()==bexit)
{
dispose();
}
}

public static void main(String args[])


{
new IssueBookDetail();
}
}

MODIFY ISSUE BOOK DETAIL


import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.border.*;
import java.util.*;
class ModifyIssueBookDetail extends JFrame implements ActionListener, ItemListener
{
JLabel
l1,l2,l3,liid,lidate,lstid,lstname,lstrno,lstyear,lstbranch,lbid,lbname,lbtype,lbwriter,lbstock
;
JTextField
tidate,tstid,tstname,tstrno,tstyear,tstcourse,tbid,tbname,tbtype,tbwriter,tbstock;
JComboBox ciid,cstid,cbid;
JButton bupdate,bcancel,bexit;
BHAVNA SINGH

102

LIBRARY MANAGEMENT SYSTEM

JPanel stu,book;
Border bd;
int val,val1,val2;
String temp,temp1,temp2;
ResultSet rs,rs1,rs2;
Connection con;Statement stm;
//ResultSet rs;
public ModifyIssueBookDetail()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Modify Issue Book
Detail )");
Border bd=BorderFactory.createLineBorder(Color.blue,3);
stu=new JPanel();
book=new JPanel();
stu.setBorder(bd);
book.setBorder(bd);
add(stu);
add(book);
stu.setBounds(70,170,250,160);
book.setBounds(350,170,250,160);
l1=new JLabel("MODIFY ISSUE BOOK DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
//l1.setBackground(Color.red);
l2=new JLabel("Student Information");
l2.setForeground(Color.blue);
l2.setFont(new Font("Arial Rounded MT Bold",Font.BOLD,14));
l3=new JLabel("Book Information");
l3.setForeground(Color.blue);
l3.setFont(new Font("Arial Rounded MT Bold",Font.BOLD,14));
liid=new JLabel("Issue ID");
lidate=new JLabel("Issue Date");
//Student Information
lstid=new JLabel("Student ID");
lstname=new JLabel("Name");
lstrno=new JLabel("Roll No.");
lstyear=new JLabel("Year");
lstbranch=new JLabel("Course");
//Book Information
BHAVNA SINGH

103

LIBRARY MANAGEMENT SYSTEM

lbid=new JLabel("Book ID");


lbname=new JLabel("Book Name");
lbtype=new JLabel("Type");
lbwriter=new JLabel("Writer");
lbstock=new JLabel("Stock");
ciid=new JComboBox();
tidate=new JTextField(20);
cstid=new JComboBox();
tstname=new JTextField(20);
tstrno=new JTextField(20);
tstyear=new JTextField(20);
tstcourse=new JTextField(20);
cbid=new JComboBox();
tbname=new JTextField(20);
tbtype=new JTextField(20);
tbwriter=new JTextField(20);
tbstock=new JTextField(20);
bupdate=new JButton("Update");
bupdate.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);
setLayout(null);
stu.setLayout(null);
l1.setBounds(160,15,500,20);
l2.setBounds(70,150,150,20);
l3.setBounds(350,150,150,20);
liid.setBounds(220,60,100,20);
lidate.setBounds(220,90,100,20);

BHAVNA SINGH

104

LIBRARY MANAGEMENT SYSTEM

tidate.setBounds(300,90,130,20);
lstid.setBounds(10,10,100,20);
lstname.setBounds(10,40,100,20);
lstrno.setBounds(10,70,100,20);
lstyear.setBounds(10,100,100,20);
lstbranch.setBounds(10,130,100,20);
cstid.setBounds(100,10,100,20);//Set ComboBox
tstname.setBounds(100,40,140,20);
tstrno.setBounds(100,70,120,20);
tstyear.setBounds(100,100,100,20);
tstcourse.setBounds(100,130,140,20);
//

setLayout(null);
book.setLayout(null);
lbid.setBounds(10,10,100,20);
lbname.setBounds(10,40,100,20);
lbtype.setBounds(10,70,100,20);
lbwriter.setBounds(10,100,100,20);
lbstock.setBounds(10,130,100,20);
cbid.setBounds(80,10,100,20);//Set ComboBox
tbname.setBounds(80,40,150,20);
tbtype.setBounds(80,70,150,20);
tbwriter.setBounds(80,100,150,20);
tbstock.setBounds(80,130,80,20);
bupdate.setBounds(180,380,75,20);
bcancel.setBounds(280,380,75,20);
bexit.setBounds(380,380,75,20);

add(l1);add(l2);add(l3);add(liid);add(lidate);stu.add(lstid);stu.add(lstname);stu.add(lstrno
);stu.add(lstyear);
stu.add(lstbranch);book.add(lbid);book.add(lbname);book.add(lbtype);book.add(lbwriter)
;book.add(lbstock);
add(tidate);stu.add(cstid);stu.add(tstname);stu.add(tstrno);stu.add(tstyear);

BHAVNA SINGH

105

LIBRARY MANAGEMENT SYSTEM

stu.add(tstcourse);book.add(cbid);book.add(tbname);book.add(tbtype);book.add(tbwriter)
;book.add(tbstock);
add(bupdate);add(bcancel);add(bexit);
setVisible(true);
setSize(700,500);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
int x=0;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
String qr,qr1,qr2;
qr="select * from IssueBook";
rs=stm.executeQuery(qr);
Vector v=new Vector();
while(rs.next())
{
v.add(rs.getString(1));
}
ciid=new JComboBox(v);
add(ciid);
ciid.setBounds(300,60,130,20);
ciid.addItemListener(this);

qr1="select * from Student";


rs=stm.executeQuery(qr1);
Vector v1=new Vector();
while(rs.next())
{
v1.add(rs.getString(1));

BHAVNA SINGH

106

LIBRARY MANAGEMENT SYSTEM

}
cstid=new JComboBox(v1);
stu.add(cstid);
cstid.setBounds(100,10,100,20);
cstid.addItemListener(this);
//book id combo value
qr2="select * from IssueBook";
rs=stm.executeQuery(qr2);
Vector v2=new Vector();
while(rs.next())
{
v2.add(rs.getString(1));
}
cbid=new JComboBox(v2);
book.add(cbid);
cbid.setBounds(80,10,100,20);//Set ComboBox
cbid.addItemListener(this);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void itemStateChanged(ItemEvent ie)
{
if(ie.getSource()==ciid)
{
temp=(String)ciid.getSelectedItem();
val=Integer.parseInt(temp);
getiid();
}
if(ie.getSource()==cstid)
{
temp1=(String)cstid.getSelectedItem();
val1=Integer.parseInt(temp1);
getdata();
}
if(ie.getSource()==cbid)
BHAVNA SINGH

107

LIBRARY MANAGEMENT SYSTEM

{
temp2=(String)cbid.getSelectedItem();
val2=Integer.parseInt(temp2);
getbook();
}
}
public void getiid()
{
try
{
String qr;
qr="select * from Student where
StudentID=("+""+val+""+")";
rs=stm.executeQuery(qr);
//JOptionPane.showMessageDialog(null,rs.getStrin
g(2));
while(rs.next())
{
tidate.setText(rs.getString(2));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void getdata()
{
try
{
String qr1;
qr1="select * from Student where
StudentID=("+""+val1+""+")";
rs=stm.executeQuery(qr1);
//JOptionPane.showMessageDialog(null,rs.getStrin
g(2));
while(rs.next())
{
tstname.setText(rs.getString(2));
tstrno.setText(rs.getString(3));
tstyear.setText(rs.getString(4));
BHAVNA SINGH

108

LIBRARY MANAGEMENT SYSTEM

tstcourse.setText(rs.getString(5));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void getbook()
{
String qr2;
try
{
qr2="select * from Book where BookID=("+""+val2+""+")";
rs=stm.executeQuery(qr2);
//JOptionPane.showMessageDialog(null,rs.getString(2));
while(rs.next())
{
tbname.setText(rs.getString(2));
tbtype.setText(rs.getString(3));
tbwriter.setText(rs.getString(4));
tbstock.setText(rs.getString(6));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void empty()
{
//tiid.setText("");
tidate.setText("");
//cstid.getText("");
tstname.setText("");
tstrno.setText("");
tstyear.setText("");
tstcourse.setText("");
//cbid.setText("");
tbname.setText("");
tbtype.setText("");
BHAVNA SINGH

109

LIBRARY MANAGEMENT SYSTEM

tbwriter.setText("");
tbstock.setText("");
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==bupdate)
{
try
{
//rs=stm.executeQuery("select password from login where
username="+"'"+tbid.getText()+"'");
JOptionPane.showMessageDialog(null,rs.getString(1));
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
String s1=tbname.getText();
}
if(ae.getSource()==bexit)
{
dispose();
}
}

public static void main(String args[])


{
new ModifyIssueBookDetail();
}
}

BHAVNA SINGH

110

LIBRARY MANAGEMENT SYSTEM

RETURN BOOK DETAIL


import javax.swing.*;
import java.util.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.border.*;
class ReturnBookDetail extends JFrame implements ActionListener, ItemListener
{
JLabel
l1,l2,l3,lrid,lrdate,liid,lidate,lbid,lbname,lbtype,lbwriter,lstid,lstname,lstrno,lstyear,lstcour
se;
JTextField
trid,trdate,tidate,tbid,tbname,tbtype,tbwriter,tstid,tstname,tstrno,tstyear,tstcourse;
JComboBox ciid;
JButton bsave,bcancel,bexit;
JPanel stu,book;
Border bd;
int val;
String temp;
Connection con;Statement stm;
ResultSet rs;
public ReturnBookDetail()
{
setTitle("LIBRARY MANAGEMENT SYSTEM ( Return Book Detail )");
Border bd=BorderFactory.createLineBorder(Color.blue,2);
stu=new JPanel();
book=new JPanel();
stu.setBorder(bd);
book.setBorder(bd);
add(stu);
add(book);
book.setBounds(70,170,250,160);
stu.setBounds(350,170,250,160);
l1=new JLabel("RETURN BOOK DETAIL");
l1.setForeground(Color.red);
l1.setFont(new Font("Algerian",Font.BOLD,30));
//l1.setBackground(Color.red);
l2=new JLabel("Book Information");
BHAVNA SINGH

111

LIBRARY MANAGEMENT SYSTEM

l2.setForeground(Color.blue);
l2.setFont(new Font("Arial Rounded MT Bold",Font.BOLD,14));
l3=new JLabel("Student Information");
l3.setForeground(Color.blue);
l3.setFont(new Font("Arial Rounded MT Bold",Font.BOLD,14));
lrid=new JLabel("Return ID");
lrdate=new JLabel("Return Date");
liid=new JLabel("Issue ID");
lidate=new JLabel("Issue Date");
ciid=new JComboBox();
//cbid=new JComboBox();
//cstid=new JComboBox();
//ciid.addItem("");
//Book Information
lbid=new JLabel("Book ID");
lbname=new JLabel("Book Name");
lbtype=new JLabel("Type");
lbwriter=new JLabel("Writer");
//Student Information
lstid=new JLabel("Student ID");
lstname=new JLabel("Name");
lstrno=new JLabel("Enrolment No.");
lstyear=new JLabel("Year");
lstcourse=new JLabel("Course");
trid=new JTextField(20);
trdate=new JTextField(20);
tidate=new JTextField(20);
tbid=new JTextField(20);
tbname=new JTextField(20);
tbtype=new JTextField(20);
tbwriter=new JTextField(20);
tstid=new JTextField(20);
tstname=new JTextField(20);
tstrno=new JTextField(20);
BHAVNA SINGH

112

LIBRARY MANAGEMENT SYSTEM

tstyear=new JTextField(20);
tstcourse=new JTextField(20);
bsave=new JButton("Save");
bsave.addActionListener(this);
bcancel=new JButton("Cancel");
bcancel.addActionListener(this);
bexit=new JButton("Exit");
bexit.addActionListener(this);
setLayout(null);
l1.setBounds(180,15,500,20);
l2.setBounds(70,150,150,20);
l3.setBounds(350,150,150,20);
lrid.setBounds(220,60,100,20);
lrdate.setBounds(220,90,100,20);
liid.setBounds(120,120,100,20);
lidate.setBounds(380,120,100,20);
trid.setBounds(300,60,130,20);
trdate.setBounds(300,90,130,20);
tidate.setBounds(450,120,100,20);
//Set ComboBox
stu.setLayout(null);
lstid.setBounds(10,10,100,20);
lstname.setBounds(10,40,100,20);
lstrno.setBounds(10,70,100,20);
lstyear.setBounds(10,100,100,20);
lstcourse.setBounds(10,130,100,20);
tstid.setBounds(100,10,100,20);//Set ComboBox
tstname.setBounds(100,40,140,20);
tstrno.setBounds(100,70,120,20);
tstyear.setBounds(100,100,100,20);
BHAVNA SINGH

113

LIBRARY MANAGEMENT SYSTEM

tstcourse.setBounds(100,130,140,20);
setLayout(null);
book.setLayout(null);
lbid.setBounds(10,10,100,20);
lbname.setBounds(10,40,100,20);
lbtype.setBounds(10,70,100,20);
lbwriter.setBounds(10,100,100,20);
tbid.setBounds(80,10,100,20);//Set ComboBox
tbname.setBounds(80,40,150,20);
tbtype.setBounds(80,70,150,20);
tbwriter.setBounds(80,100,150,20);
bsave.setBounds(180,380,75,20);
bcancel.setBounds(280,380,75,20);
bexit.setBounds(380,380,75,20);
add(l1);add(l2);add(l3);add(lrid);add(lrdate);add(liid);add(lidate);
book.add(lbid);book.add(lbname);book.add(lbtype);book.add(lbwriter);
book.add(tbid);book.add(tbname);book.add(tbtype);book.add(tbwriter);
stu.add(lstid);stu.add(lstname);stu.add(lstrno);stu.add(lstyear);stu.add(lstcourse);
stu.add(tstid);stu.add(tstname);stu.add(tstrno);stu.add(tstyear);stu.add(tstcourse);
//add(ciid);
add(trid);add(trdate);add(tidate);
add(bsave);add(bcancel);add(bexit);
setVisible(true);
setSize(700,500);
setLocation(250,100);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);
//setResizeable(false);
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver
(*.mdb)};DBQ=D:\\lms.mdb");
stm=con.createStatement();
BHAVNA SINGH

114

LIBRARY MANAGEMENT SYSTEM

String qr;
qr="select * from IssueBook";
rs=stm.executeQuery(qr);
Vector v=new Vector();
while(rs.next())
{
v.add(rs.getString(1));
}
ciid=new JComboBox(v);
add(ciid);
ciid.setBounds(170,120,100,20);
ciid.addItemListener(this);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void itemStateChanged(ItemEvent ie)
{
temp=(String)ciid.getSelectedItem();
val=Integer.parseInt(temp);
getdata();
}
public void getdata()
{
try
{
String qr;
qr="select * from IssueBook where IssueID=("+""+val+""+")";
rs=stm.executeQuery(qr);
//JOptionPane.showMessageDialog(null,rs.getString(2));
while(rs.next())
{
tidate.setText(rs.getString(2));
tstid.setText(rs.getString(3));
tstname.setText(rs.getString(4));
tstrno.setText(rs.getString(5));
tstyear.setText(rs.getString(6));
BHAVNA SINGH

115

LIBRARY MANAGEMENT SYSTEM

tstcourse.setText(rs.getString(7));
tbid.setText(rs.getString(8));
tbname.setText(rs.getString(9));
tbtype.setText(rs.getString(10));
tbwriter.setText(rs.getString(11));
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
public void empty()
{
trid.setText("");
trdate.setText("");
tidate.setText("");
tstid.setText("");
tstname.setText("");
tstrno.setText("");
tstyear.setText("");
tstcourse.setText("");
tbid.setText("");
tbname.setText("");
tbtype.setText("");
tbwriter.setText("");
}
public void actionPerformed(ActionEvent ae)
{
String qr;
if(ae.getSource()==bsave)
{
try
{
qr="insert into ReturnBook values("+trid.getText()
+",'"+trdate.getText()+"',"+temp+",'"+tidate.getText()+"',"+tbid.getText()
+",'"+tbname.getText()+"','"+tbtype.getText()+"','"+tbwriter.getText()+"',"+tstid.getText()
+",'"+tstname.getText()+"',"+tstrno.getText()+","+tstyear.getText()
+",'"+tstcourse.getText()+"')";
BHAVNA SINGH

116

LIBRARY MANAGEMENT SYSTEM

stm.executeUpdate(qr);
JOptionPane.showMessageDialog(null,"Information Saved
Successfully!!!!!!");
empty();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
String s1=tbname.getText();
}
if(ae.getSource()==bcancel)
{
empty();
}
if(ae.getSource()==bexit)
{
dispose();
}
}

public static void main(String args[])


{
new ReturnBookDetail();
}
}

BHAVNA SINGH

117

LIBRARY MANAGEMENT SYSTEM

CONCLUSION & FUTURE SCOPE


The proposed system is useful for getting the information related to Library
Management System. In manual system a lot of paper work is done by
user .User collects the personal information as well as information related to
resume with paper and pen, after marking he has to update the personal
records of the students and the books. To minimize this problem we have
developed software.
But in proposed system with a single click all the records of students
and the books are available from a single place. User enters the name of the
book and the list of writers who is the author of book at the single click. This
helps us to save our time and cost too. Developed system does not required
extra efforts for record management . This package is useful in college level.
CODE EFFICIENCY
In an effort to maintain computational efficiency and to allow the eventual
adaptation of the algorithm to face tracking applications, intense optimization of
the code has been performed. Although further development is in progress, the
algorithm is currently fast and compact enough to run interactively on most
generic platforms.
Note, first, the sequential hierarchical search which proceeds from large scales to
small scales. This allows a rapid convergence if the face is dominant in the
image. Furthermore, the algorithm does not always flow through the complete
loop. It stops as soon as one of the modules reports a failure and loops back to
an earlier stage. For example, we do not search for a mouth if no eyes are found.
In this case, no time is wasted in the mouth module.
Additionally, we utilized special programming techniques to reduce the run-time.
The 3D-normalization algorithm is also extremely efficient and uses look-up
tables and minimal calculations for increased speed. The 10 normalizations and
DFFS calculations required for nose-localization also utilize small mug-shot
images and increase efficiency.
BHAVNA SINGH

118

LIBRARY MANAGEMENT SYSTEM

OPTIMIZATION OF CODE
We propose a method to enable aggressive, inter procedural optimization in a
setting where code can be replaced at runtime. Code replacement involves both
introducing a new module into the system and reallocating old code. Code
purging reallocates replaced code, which is required in long running systems.
Our approach, module merging, is simple and practical: we merge code modules
and insert code to check for code replacement at the appropriate points. We
show how to preserve the behavior of code purging. The net result is that merged
modules preserve the original code replacement behavior, while enabling
optimization across code replacement boundaries.

BHAVNA SINGH

119

LIBRARY MANAGEMENT SYSTEM

VALIDATION CHECKS
At the culmination of integration testing, software is completely assembled as a
package, interfacing errors have been uncovered and corrected, and a final
series of software test - Validation Testing - may begin. Validation can be defined
in many ways, but a simple is that validation succeeds when software functions
in a manner that can be reasonably expected by the customer.
Validation is an important characteristic of a good project because many times it
has been seen that running project may come to a halt stage or just because of
ignorance of validation invalid or insufficient data may get enter in the database.
In this project I adopted many level of validations like in any entry form user is not
supposed to leave any field blank.
As there is a form for students there are some fields which are mandatory like
phone no, email id etc. and some fields are optional because it might be possible
that customer does not have any middle name mean to say any unessential field
which is not required in data storage.
Then in the second level of validation I check individual fields like the Name can
not be numeric, Phone number should not contain any alphabet, if by mistake
any alphabets are entered then the message appears that phone number should
be in Digits and in the same context I applied the third level of validation that the
phone number should be between 7 to 10 digits and if user entered data in the
number form but not between in this range then the message splash that the
number should between 7 to 10 digits.
Similarly in the Age field it has been checked that it should not contain any
alphabets. Other fields have also been validated which can be found out in the
coding.

BHAVNA SINGH

120

LIBRARY MANAGEMENT SYSTEM

TESTING
It should be clear in mind that the philosophy behind is to find errors. Test cases
are devised with this purpose in mind. A test case is a set of data that the system
will process as normal input. There are two general strategies for testing
Software: Code Testing and Specification Testing. In code Testing, The analyst
develops the cases to execute every instructions and path in the program. Under
specification testing, the analyst examines the program specification and then
writes test data to determine how the program operates under specific
conditions.

Levels of tests
Unit Testing: In unit testing the analyst tests the programs making up a system.
For this reason, unit testing is sometimes called program testing. Unit Testing
gives stress on the modules independently of one another, to find errors. LIC
Management system consists of modules to handle registration, modify or
retrieve data and to respond to different types of inquiries or prints reports. The
test cases needed for unit testing should exercise each condition and option.
System Testing: The important and essential part of the system development
phase, after designing and developing the software is system testing. It can not
be said that every program or system design is perfect and because of lack of
communication between the user and the designer, some error is there in the
software development.
System Testing consists of the following five steps:
Program Testing
String Testing
System Testing
System Documentation
BHAVNA SINGH

121

LIBRARY MANAGEMENT SYSTEM

User Acceptance testing.

Special System Tests


There are other 6 tests that fall under special category. They are:
Peak Load Test: It determines whether the system will handle the volume
of activities that occur when the system is at the peak of its processing
demand.
Storage Testing: It determines the capacity of the system to store
transaction data on a disk or in other files.
Performance Time testing; It determines the length of time system used
by the system to process transaction data.
Recovery Testing: This testing determines the ability of user to recover
data or restart system after failure.
Procedure Testing: It determines the clarity of documentation on
operation and use of system by having users does exactly what manuals
request.
Human Factors Testing; It determines how the users will use the system
when processing data or preparing reports.

BHAVNA SINGH

122

LIBRARY MANAGEMENT SYSTEM

SECURITY MEASURES TAKEN


This is the most important task, which should be done with much care no need to
say why this is so crucial. The security measures starts right from the selection of
operating system in that case for server UNIX is best choice because it provides
best security in its peer OS as we know this project is very versatile and there are
variety of users who uses systems according to their needs so authentication is
an major task which has to perform by the system administrator as I have already
mentioned that there are different type of access permission like viewing the
records modifying etc.
Another security measure I took in this project is username and password
provide to selected staff so that no unidentified person can not access the
system.
Then I switch the concept of file sharing which is an essential service in these
types of companies. The person holding the same position can share particular
type of file.
Similarly there are different modes of file
E.g.
Read only mode
Write only mode
Execute mode

BHAVNA SINGH

123

LIBRARY MANAGEMENT SYSTEM

COST ESTIMATION OF THE


PROJECT
Unlike traditional engineering disciplines where one has to budget for material
the raw material used in software is mainly the engineers brainpower.
Thus the cost of a software project is directly proportional to the number of
engineers need for the project. The problem of predicating how many engineers
and other resources are needed for a given software project is known as
software cost estimation.
Forecasting how many engineers will be needed is a difficult problem that is
intimately tied to the problem of how to estimate the productivity of software
engineers.
There are two parts to the forecasting problem:
Estimating the difficulty of the task
Estimating how many tasks each engineer can solve.
Clearly, to estimate difficulty of the task, one must know what the task is i.e. ,
what the requirements are. But, it is often difficult to specify the software
requirements completely.
It was precisely such difficulties that motivated me to look at the evolutionary
process as a alternative to the traditional water fall model.
Incomplete and imprecise requirement hinders accurate cost estimation. The
clearer and more complete the requirements, the easier it is to determine the
resources required. But even when the requirements are clearer, estimating the
number of engineers needed is a formidable task with inherit difficulties.
The best approach is to develop the resource requirements incrementally,
revising current estimates, as more information becomes available.

BHAVNA SINGH

124

LIBRARY MANAGEMENT SYSTEM

FUTURE SCOPE AND FUTURE


ENHANCEMENT OF THE PROJECT
As Most of the library works through Computer therefore this software is
useful for library. The purpose of computerization is basic need for
organizations

at this time because it is helpful to decrease the lot of

mistakes which are comes through manual work and reduce the calculation
graph, thats why such modification & improvement is nothing but
Computerization in India.
This project focuses on how we can maintain the information of books. At
this time project is developed only for Single User and my future scope is to
add all operations regarding Multi User so as to connect all library counters
with each other to find out the any transaction and records of any book and
also we can find out the Current information of any book.

BHAVNA SINGH

125

Vous aimerez peut-être aussi