You are on page 1of 29

PROJECT REPORT

ON
SOFTWARE
FOR
DISPENSARY

Submitted to
BEANT COLLEGE
OF
ENGINEERING & TECHNOLOGY
GURDASPUR
For
BTECH(CSE)-VI

Submitted By:- Project Guide:-


Sarvada Shriya (1099/15) Mrs. Sandeep
Univ. Roll No: 1501380
Rohini (1087/15)
Univ. Roll No: 1501368
Saloni Thakur (1095/15)
Univ. Roll No: 1501376
SOFTWARE
ON
ONLINE TUTORIALS AND EXAMS

Tools Used

Front End:- JAVA


Back End:- MYSQL
INTRODUCTION TO JAVA
JAVA was developed by Sun Microsystems Inc in 1991, later acquired by
Oracle Corporation. It was developed by James Gosling and Patrick
Naughton. It is a simple programming language. Writing, compiling and
debugging a program is easy in java. It helps to create modular programs and
reusable code.
Java Virtual Machine (JVM)
This is generally referred as JVM. Before, we discuss about JVM lets see the
phases of program execution. Phases are as follows: we write the program,
then we compile the program and at last we run the program.
1) Writing of the program is of course done by java programmer like you and
me.
2) Compilation of program is done by javac compiler, javac is the primary
java compiler included in java development kit (JDK). It takes java program
as input and generates java bytecode as output.
3) In third phase, JVM executes the bytecode generated by compiler. This is
called program run phase.
So, now that we understood that the primary function of JVM is to execute the
bytecode produced by compiler. Each operating system has different JVM,
however the output they produce after execution of bytecode is same
across all operating systems. That is why we call java as platform
independent language.
BYTECODE
As discussed above, javac compiler of JDK compiles the java source code into
bytecode so that it can be executed by JVM. The bytecode is saved in a .class
file by compiler.
JAVA DEVELOPMENT KIT(JDK)
While explaining JVM and bytecode, I have used the term JDK. Let’s discuss
about it. As the name suggests this is complete java development kit that
includes JRE (Java Runtime Environment), compilers and various tools like
JavaDoc, Java debugger etc.
In order to create, compile and run Java program you would need JDK
installed on your computer.
JAVA RUNTIME ENVIRONMENT(JRE)
JRE is a part of JDK which means that JDK includes JRE. When you have
JRE installed on your system, you can run a java program however you won’t
be able to compile it. JRE includes JVM, browser plugins and applets support.
When you only need to run a java program on your computer, you would only
need JRE.
These are the basic java terms that confuses beginners in java. For complete
java glossary refer this link:
https://docs.oracle.com/javase/tutorial/information/glossary.html

MAIN FEATURES OF JAVA


Java is a platform independent language
Compiler(javac) converts source code (.java file) to the byte code(.class file).
As mentioned above, JVM executes the bytecode produced by compiler. This
byte code can run on any platform such as Windows, Linux, Mac OS etc.
Which means a program that is compiled on windows can run on Linux and
vice-versa. Each operating system has different JVM, however the output they
produce after execution of bytecode is same across all operating systems. That
is why we call java as platform independent language.
Java is an Object Oriented language
Object oriented programming is a way of organizing programs as collection of
objects, each of which represents an instance of a class.
4 main concepts of Object Oriented programming are:
 Abstraction
 Encapsulation
 Inheritance
 Polymorphism
Simple
Java is considered as one of simple language because it does not have
complex features like Operator overloading, Multiple inheritance, pointers and
Explicit memory allocation.
Robust Language
Robust means reliable. Java programming language is developed in a way that
puts a lot of emphasis on early checking for possible errors, that’s why java
compiler is able to detect errors that are not easy to detect in other
programming languages. The main features of java that makes it robust are
garbage collection, Exception Handling and memory allocation.
Secure
We don’t have pointers and we cannot access out of bound arrays (you get
ArrayIndexOutOfBoundsException if you try to do so) in java. That’s why
several security flaws like stack corruption or buffer overflow is impossible to
exploit in Java.
Java is distributed
Using java programming language we can create distributed applications.
RMI(Remote Method Invocation) and EJB(Enterprise Java Beans) are used
for creating distributed applications in java. In simple words: The java
programs can be distributed on more than one systems that are connected to
each other using internet connection. Objects on one JVM (java virtual
machine) can execute procedures on a remote JVM.
Multithreading
Java supports multithreading. Multithreading is a Java feature that allows
concurrent execution of two or more parts of a program for maximum
utilisation of CPU.
Portable
Java code that is written on one machine can run on another machine. The
platform independent byte code can be carried to any platform for execution
that makes java code portable.
Tools/Platform

Hardware and Software Used

For developing software for dispensary, Different tools have been used.
They are:

Microsoft Windows 7

JDK 1.6

Netbeans 7.1.1

MYSQL
PROBLEM DEFINITION

In any dispensary, there are multiple types of records to be mainained. They


include record of doctors, medicines, employees and patients.
The records of patients and medicines have to be stored in database on day to
day basis. Keeping all such records is manually a tough job. A number of files
are to be maintained which may cause data redundancy, data inconsistency
and unorganized way of keeping records.
This may result in wrong information to the dispensary owners and managers.
So it is important to maintain clear and organized data for accurate
information of the all modules and other aspects of the software.
For this purpose we have to software which could be accessed by doctors and
dispensary managers to manange different types of records.
REQUIREMENT ANALYSIS

Requirements analysis is a task that bridges the gap between


system-level resource allocation and design. Requirements analysis
involves four areas of effort:

 Problem Recognition,
 Evaluation and Synthesis,
 Modeling,
 Specification and Review.

Requirement analysis is the process of discovering, refining, modeling and


specifying on the basis of understanding the problem by customer interviews
and observations of the problem.
Requirement analysis is concerned with identifying the basic functions of the
software components along with hardware and software system. Emphasis is
placed on what the software has to do along with constraints under which it
will perform its functions.
A need was felt for software that should be configured in the near future with
the changing needs of the dispensary. The system should also provide
flexibility to configure its components without much extra effort and the
system should have clearly defined interfaces.
FEASIBILITY STUDY

Feasibility study is conducted to select the best system that meets


performance requirements. This entails an identification description, an
evaluation of the candidate systems, and the selection of the best system
for the job.

Before the commencement of the development of any software and carrying


out its requirement analysis, there are some points, which are to be
considered. For feasibility analysis, important points are:

Economic Feasibility:
It is important that the system that should be built in place of the existing
system should be economically feasible. It should be built keeping in view
that it should cover most of the user needs and with minimum expenditure. If
the software that we are going to develop requires lot of financial support
then it is possible that we may have to drop the project. When it is to be
modified later, it must not incur costs so high that its feasibility becomes a
distant dream.

Technical Feasibility:
When we develop any software it should be made clear what type of
software and hardware support will be required and will it be available. It
can happen at some moment that during the development of our project we
may require some hardware and software resources which are not provided
to us then one gets into dilemma. So before starting any software we must
check its technical feasibility.
Operational Feasibility:
By operationally feasible we want to make clear whether the requirements of
the user can be put into our software then does it give us accurate results and
meet the standards that have been specified in requirements specifications.
SYSTEM ANALYSIS
System analysis means understanding entire system by studying the various
operations performed and their relationships within the system, an
examination of a business activity with a view to identifying problem
area & recommending alternative solutions.

EXISTING SYSTEM
In a dispensary, the dispensary management has to keep record of doctors,
employees, patients and medicines that are to be managed properly. To keep
manual record of all such things is a tough job. A number of files are to be
maintained. It may cause redundancy and inconsistency of data. Moreover, it
may lead to improper and an unorganized way of maintaining records. So it
is required to maintain a clear and organized data for the accurate
information of the dispensary.

To understand the entire working of the existing system we may follow two-
way approach as:

Studying the documents and the tables that are generated.


Discussing with concerned persons.

On the basis of collected information and documents, general direction


of flow of data and information has been carried out. The system study
comprised of detailed investigations regarding each and every aspect of the
procedures being carried out.
SCOPE OF THE SOLUTION

The proposed system aims at satisfying the needs of the organization in


an effective manner as well as attempting to overcome the shortcomings of
the existing system. The proposed system has the following objectives.

Providing Adequate Security of Data: In the existing system, since


records are maintained manually in different registers, no provision of
security is available in the existing system. So a provision of adequate
security is the current requirement, which is fulfilled by the proposed
system.
Making a User Friendly System: The proposed system aims at
providing a user friendly system by providing the various facilities for
adding, updating, deleting, searching and listing records related to the
doctors, employees, medicines and patients
Making Data Retrieval Fast: Since the proposed system does not
involve record maintenance in different registers, so the procedure of data
retrieval become very fast as compared to the manual procedure of
retrieving the information.
Keeping Necessary Storage of Data for Reference: The proposed
system aims at providing the necessary storage of data which might be
required for further reference at some later stage.
More Reliability and Reduced Paper Work: Since the most of the
work is done on the computer in the proposed system, it aims at providing
more reliability of data and also paper work is reduced to a great extent.
Minimize Redundancy Through Normalization of Data: The
proposed system aims at minimizing redundancy through normalization of
data.
Reducing the Cost of Maintaining the System: The proposed system
aims at reducing the cost of maintenance of the system, as now the
information related to the various aspects is not stored in different
registers but on just one system.
Providing Validations for Data Integrity: The proposed system aims
at providing validations for the purpose of maintaining data integrity.
SYSTEM DESIGN

Software Requirements Specification refine the function and


performance allocated as a part of software engineering by establishing
a complete information description, a detailed functional and behavioral
description, an indication of performance requirements and design
constraints, appropriate validation criteria and other date pertinent to
requirements.

System Requirements Specification


(SRS):

SRS is the starting point of software development activity. As


system grows more complex, it becomes evident that the goal of entire
system can’t be easily comprehended. Hence the needs for the
“Requirements Analysis” phase arises.
Requirements analysis necessarily involves what some people have
in their minds. The SRS is the means of translating the ideas of the
minds of clients (the input) into a formal document (the output of the
SRS phase).
Functional

Requiremen
t
Functional Requirements
Functional requirements SRS
Performance
specify which output should
Design
be produced from
Requirement Document Constraint
the given inputs. They describe the relationship between
s
the input and output
of the system. For each functional requirement, the detailed description of all
External
Interfaces
the data inputs and their source, the unit of measure and range of valid input
must be specified.
All the operations to be performed on the input data to obtain the
output should be specified. This includes specifying the validation check on
output and the output data, parameters affected by the operations or other
logical operations that must be used to transform the inputs into
corresponding outputs. It must clearly state what the system should do in
abnormal situations like invalid input or error during computation.
Performance Requirements
This part of SRS specifies the performance constraints on the
software system. All the requirements related to the performance
characteristics of the system must be clearly specified. There are two
types of performance requirements.

 Static Requirement:
Static Requirements are those that do not impose constraints on
the execution characteristics of the system.
 Dynamic Requirement:
Dynamic requirement specifies constraints on the execution
behavior of the system.

Design Constraints
There are number of factors in the client’s environments that may restrict
the choice of the designer. Such factors include standards that must be
followed, resource limits, operating environments, reliability and security
environments and policy that may have impact on the design of the
system.
External Interface Requirements
All the possible interactions between the people, hardware and other
software should be clearly specified. For hardware interface requirements,
the SRS should specify the logical characteristics of each interface
between the software product and hardware component.
DESIGN

Software is actually a multistep process that focuses on four distinct


attributes of a program: data structure, software architecture, interfaces
representation and procedural details. The design process translates the
requirements into a representation of the software that can be accessed for
quality.
It is the most creative and challenging phase of the SDLC. It
refers to the technical specifications that will be applied to the system. The
first step is to design the output format. Sample of the output are prepared.
Second step is to design the set of the inputs that are to given for the
processing. The important question that should answer in this phase is”

What is the system and how to solve the problem?

It mainly includes three things:

Tables
ER Diagrams
DFD’s
DATABASE DESIGN

Databases are used to store the information in the form of the records. To
create a database we can use database systems like MySQL, oracle and
access. I have used MySQL in my project. Various data tables used in the
project and their fields and width of the fields are mentioned below:

Tables:
Table Name: Medicines
Field Name Data Type Constraint
Medicineno Int Primary key
Medicinename Varchar(50)
Manufacturer Varchar(50)
Dayofmanufacture Varchar(5)
Monthofmanufacture Varchar(5)
Yearofmanufacture Varchar(5)
Dayofexpiry Varchar(5)
Monthofexpiry Varchar(5)
Yearofexpiry Varchar(5)
Noofitems Int
Costperitem Float
Totalcost Float

Table Name: Doctor


Field Name Data Type Constraint
Doctorid Int Primary key
Doctorname Varchar(100)
Designation Varchar(50)
Qualification Varchar(50)
Experience Varchar(30)
Address Varchar(100)
Phoneno Varchar(20)
Emailid Varchar(50)
Dayofjoining Varchar(5)
monthofjoining Varchar(5)
yearofjoining Varchar(5)
salary Float

Table Name: Employee


Field Name Data Type Constraint
Empid Int Primary key
Empname Varchar(100)
Designation Varchar(50)
Qualification Varchar(50)
Address Varchar(100)
Phoneno Varchar(20)
Dayofjoining Varchar(5)
Monthofjoining Varchar(5)
Yearofjoining Varchar(5)
Salary Float
Doctorid Int

Table Name: Patient


Field Name Data Type Constraint
Patientid Int Primary key
Patientname Varchar(100)
Disease Varchar(100)
Medicines Varchar(150)
Datetime Varchar(50)
Amount Float
Doctorid Int
ER Diagrams:
Data Flow Diagrams (DFD):

Data Flow Diagram is the way of expressing system requirements in a


graphical form. A DFD also known as BUBBLE CHART has a purpose of
clarifying system requirements and identifying major transformations that
will become the program in this system design.

DFD Symbols:-

A square defines a source of destination or system data.

An arrow identifies the data flow or data in motion. It is a pipeline


through which information flows.

A circle or bubble represents a process transform incoming data


flow in to outgoing data flow.
Add
Medicine

Add record of new


medicine
Modify, Modify
record of Medicine
existing
List See list of all
Medicine medicine
Medicine medicines
s

Delete record
of existing
Search a given medicine
medicine from
database
Delete
Medicine
Search
Medicine
Add
Doctor

Add record of new


Doctor
Modify, Modify
record of Doctor
existing
List See list of all
Doctor Doctor
Doctors Doctors

Delete record
of existing
Search a given Doctor
Doctor from
database
Delete
Doctor
Search
Doctor
Add
Employe
e
Add record of new
Employee
Modify, Modify
record of Employe
existing e
List See list of all
Employee Employee
Employe Employees
e

Delete record
of existing
Search a given Employee
Employee from
database
Delete
Employe
Search e
Employe
e
PROJECT STRUCTURE
Module Name PURPOSE
LOGIN FORM TO LOG ON TO SOFTWAR
MENU FORM THIS FORM SHOWS LIST OF MENUS
AND THEIR OPTIONS
ADDMEDICINE FORM THIS FORM IS USED TO ADD RECORD
OF NEW MEDICINE
MODIFYMEDICINE FORM THIS FORM IS USED TO MODIFY
RECORD OF EXISTING MEDICINE
DELETEMEDICINE FORM THIS FORM IS USED TO DELETE
RECORD OF EXISTING MEDICINE
SEARCHMEDICINE FORM THIS FORM IS USED TO SEARCH
RECORD OF EXISTING MEDICINE
LISTMEDICINES FORM THIS FORM IS USED TO SHOW LIST
OF ALL MEDICINES
ADDDOCTOR FORM THIS FORM IS USED TO ADD RECORD
OF NEW DOCTOR
MODIFYDOCTOR FORM THIS FORM IS USED TO MODIFY
RECORD OF EXISTING DOCTOR
DELETEDOCTOR FORM THIS FORM IS USED TO DELETE
RECORD OF EXISTING DOCTOR
SEARCHDOCTOR FORM THIS FORM IS USED TO SEARCH
RECORD OF EXISTING DOCTOR
LISTDOCTORS FORM THIS FORM IS USED TO SHOW LIST
OF ALL DOCTORS
ADDEMPLOYEE FORM THIS FORM IS USED TO ADD RECORD
OF NEW EMPLOYEE
MODIFYEMPLOYEE FORM THIS FORM IS USED TO MODIFY
RECORD OF EXISTING EMPLOYEE
DELETEEMPLOYEE FORM THIS FORM IS USED TO DELETE
RECORD OF EXISTING EMPLOYEE
SEARCHEMPLOYEE FORM THIS FORM IS USED TO SEARCH
RECORD OF EXISTING EMPLOYEE
LISTEMPLOYEES FORM THIS FORM IS USED TO SHOW LIST
OF ALL EMPLOYEES
ADDPATIENT FORM THIS FORM IS USED TO ADD RECORD
OF NEW PATIENT
MODIFYPATIENT FORM THIS FORM IS USED TO MODIFY
RECORD OF EXISTING PATIENT
DELETEPATIENT FORM THIS FORM IS USED TO DELETE
RECORD OF EXISTING PATIENT
SEARCHPATIENT FORM THIS FORM IS USED TO SEARCH
RECORD OF EXISTING PATIENT
LISTPATIENTS FORM THIS FORM IS USED TO SHOW LIST
OF ALL PATIENTS
BIBILIOGRAPHY

1. Complete Reference to Java

Softwares
1. www.r4r.com

2. www.w3schools.com

3. www.tutorialspoint.com

4. www.javatpoint.com

You might also like