Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

C O N T E N T S

1. Introduction ----------------------------------------------------------------1
2. Objective & Scope of the Project------------------------------------2
3. Theoretical Background -----------------------------------------------3
4. Problem Definition & Analysis ---------------------------------------8
5. System Implementation ---------------------------------------------- 10
6.1 The Hardware Confugration: -------------------------------------- 10
6.2 The Softwares Confugration:-------------------------------------- 10
6.3 The System Confugration:---------------------------------------------10

6. System Design & Development ------------------------------------ 11


6.1 Input Design: ---------------------------------------------------------- 11
6.2 Output Design: ------------------------------------------------------- 12
6.3 Output Design:----------------------------------------------------------12

6.4 I/O Forms Design & Event Coding: ------------------------------ 13


7. System Implitation -------------------------------------------------------22
8. Software Testing ---------------------------------------------------------23
9. User Manual-------------------------------------------------------------- 24
9.1 How to install: -------------------------------------------------------- 24
9.2 Working with Software: --------------------------------------------- 24
10. References ------------------------------------------------------------- 25
11. Conclusion --------------------------------------------------------------25
1. Introduction

This program is designed for the use of Railway Reservation System and
its functioning Main Objective of this project to facilitate the transactions
through use of electronic medium. We use Java Net Beans 6.5 Software and
MySQL to programming our project .

Railway Reservation System is Mini Project software which is


helpful for students as well as the Railway authorities. In the current
system all the activities are done manually. It is very time consuming and
costly. Our Railway Reservation System deals with the various activities
related to the students.
There are mainly 3 modules in this Mini Project

• User module
• Train Adding Module
• Ticket Reservation management
In the Software we can register as a user and user has of two types,
guest and administrator. Administrator has the power to add new user and
can edit and delete a user. A guest can register as user and can edit train and
delete his trains. The administrator can add edit and delete trains from
database. All the users can see the trains and seats status.

[Type text]
2. Objective & Scope of the Project

he objective of the software project is to develop a computerized


T
riservation system to automate the functions of Raillway Reservation System.
This software project is also aimed to enhance the current record keeping
system, which will help users to retrieve the up-to-date information.

The proposed software system is expected to do the following functionality-

✓ To provide a user friendly, Graphical User Interface (GUI) based integrated


and centralized environment for Reservation activities.

✓ The proposed system should maintain all the records , and should generate
the required reports and information when required.

✓ To provide graphical and user-friendly interface to interact with a centralized


database based on client-server architecture.

✓ To identify the critical operation procedure and possibilities of simplification


using modern IT tools and practices.

In its current scope, the software enables user to retrieve and update the
information from centralized database designed with MySQL . This software does
not require much training time of the users due to limited functionality and
simplicity.

During the development of this project, Java NetBeans IDE, a powerful, open
source event-driven form-based development environment is used for modular
design and future expandability of the system.

[Type text]
3. Theoretical Background

3.1 What is Database?

Introduction and Concepts:


A database is a collection of information related to a particular subject or purpose,
such as tracking customer orders or maintaining a music collection. Using any
RDBMS application software like MS SQL Server, MySQL, Oracle, Sybase etc, you
can manage all your information from a single database file. Within the file, divide
your data into separate storage containers called tables. You may and retrieve the
data using queries.

A table is a collection of data about a specific topic, such as products or suppliers.


Using a separate table for each topic means you can store that data only once,
which makes your database more efficient and reduces data-entry errors. Table
organises data into columns (called fields) and rows (called records).

A Primary key is one or more fields whose value or values uniquely identify each
record in a table. In a relationship, a primary key is used to refer to specific record
in one table from another table. A primary key is called foreign key when it is
referred to from another table.

To find and retrieve just the data that meets conditions you specify, including data
from multiple tables, create a query. A query can also update or delete multiple
records at the same time, and perform built-in or custom calculations on your data.

[Type text]
Role of RDBMS Application Program:
A computer database works as a electronic filing system, which has a large number
of ways of cross-referencing, and this allows the user many different ways in which
to re-organize and retrieve data. A database can handle business inventory,
accounting and filing and use the information in its files to prepare summaries,
estimates and other reports. The management of data in a database system is done
by means of a general-purpose software package called a Database Management
System (DBMS). Some commercially available DBMS are MS SQL Server, MS
ACCESS, INGRES, ORACLE, and Sybase. A database management system, therefore,
is a combination of hardware and software that can be used to set up and monitor
a database, and can manage the updating and retrieval of database that has been
stored in it. Most of the database management systems have the following
capabilities:

 Creating of a table, addition, deletion, modification of records.


 Retrieving data collectively or selectively.
 The data stored can be sorted or indexed at the user's discretion and
direction.
 Various reports can be produced from the system. These may be either
standardized report or that may be specifically generated according to
specific user definition.
 Mathematical functions can be performed and the data stored in the
database can be manipulated with these functions to perform the desired
calculations.
 To maintain data integrity and database use.
The DBMS interprets and processes users' requests to retrieve information from a
database. In most cases, a query request will have to penetrate several layers of
software in the DBMS and operating system before the physical database can be
accessed. The DBMS responds to a query by invoking the appropriate subprograms,
each of which performs its special function to interpret the query, or to locate the
desired data in the database and present it in the desired order.

[Type text]
3.2 What is My SQL ?
The management of data in a database system is done by means of a general-
purpose software package called a Database Management System (DBMS). Some
commercially available RDBMS are MS SQL Server, MS ACCESS, INGRES, ORACLE,
and Sybase. MySQL, the most popular Open Source SQL database management
system, is developed, distributed, and supported by Oracle Corporation. MySQL is
named after co-founder Monty Widenius's daughter, My. The name of the MySQL
Dolphin (our logo) is “Sakila,”.
• MySQL is a database management system.
A database is a structured collection of data. It may be anything from a simple
shopping list to a picture gallery or the vast amounts of information in a
corporate network. To add, access, and process data stored in a computer
database, you need a database management system such as MySQL Server.
Since computers are very good at handling large amounts of data, database
management systems play a central role in computing, as standalone utilities,
or as parts of other applications.

• MySQL is based on SQL.


A relational database stores data in separate tables rather than putting all the
data in one big storeroom. This adds speed and flexibility.
• MySQL software is Open Source.
Open Source means that it is possible for anyone to use and modify the
software. Anybody can download the MySQL software from the Internet and
use it without paying anything.
• The MySQL Database Server is very fast, reliable, and easy to use.
If that is what you are looking for, you should give it a try. MySQL Server
also has a practical set of features developed in close cooperation with our
users. Its connectivity, speed, and security make MySQL Server highly suited
for accessing databases on the Internet.
• MySQL Server works in client/server or embedded systems.
The MySQL Database Software is a client/server system that consists of a
multi-threaded SQL server that supports different backends, several different
client programs and libraries, administrative tools, and a wide range of
application programming interfaces (APIs).
[Type text]
The Main Features of MySQL
• Written in C and C++.
• Works on many different platforms.
• Uses multi-layered server design with independent modules.
• Provides transactional and nontransactional storage engines.
• Designed to make it relatively easy to add other storage engines. This is
useful if you want to provide an SQL interface for an in-house database.
• Uses a very fast thread-based memory allocation system.
• Executes very fast joins using an optimized nested-loop join.
• Implements SQL functions using a highly optimized class library that should
be as fast as possible. Usually there is no memory allocation at all after
query initialization.
• Password security by encryption of all password traffic when you connect
to a server.
• Support for large databases. We use MySQL Server with databases that
contain 50 million records.
• MySQL client programs can be written in many languages. A client library
written in C is available for clients written in C or C++, or for any language
that provides C bindings.
• APIs for C, C++, Eiffel, Java, Perl, PHP, Python, Ruby, and Tcl are
available, enabling MySQL clients to be written in many languages.
• The Connector/ODBC (MyODBC) interface provides MySQL support for
client programs that use ODBC (Open Database Connectivity) connections .
3.3 What is NetBeans IDE ?
NetBeans started as a student project (originally called Xelfi) in the Czech
Republic in 1996. The goal was to write a Delphi-like Java IDE in Java. Xelfi was
the first Java IDE (Integrated Development Environment) written in Java, with its
first pre-releases in 1997. Xelfi was a fun project to work on, especially since Java
IDE space was uncharted territory at that time. The project attracted enough interest
that these students, once they graduated, decided that they could market it as a
commercial product. Soliciting resources from friends and relatives for a web space,
they formed a company around it.Soon after, they were contacted by Roman Stanek,
an entrepreneur who had already been involved in several startups in the Czech
Republic. He was looking for a good idea to invest in, and discovered Xelfi. He met
with the founders; they hit it off, and a business was born.

[Type text]
In the spring of 1999, NetBeans DeveloperX2 was released, supporting
Swing. The performance improvements that came in JDK 1.3, released in the fall of
1999, made NetBeans a viable choice for development tools. By the summer of
1999, the team was hard at work re-architecting DeveloperX2 into the more modular
NetBeans that forms the basis of the software today. Something else was afoot in the
summer of 1999: Sun Microsystems wanted better Java development tools, and had
become interested in NetBeans. It was a dream come true for the NetBeans team:
NetBeans would become the flagship tool set of the maker of Java itself! By the Fall,
with the next generation of NetBeans Developer in beta, a deal was struck. Sun
Microsystems had also acquired another tools company, During the acqusition, the
young developers who had been involved in open-source projects for most of their
programming careers, mentioned the idea of open-sourcing NetBeans. Fast forward
to less than six months later, the decision was made that NetBeans would be open
sourced. While Sun had contributed considerable amounts of code to open source
projects over the years, this was Sun's first sponsored open source project, one in
which Sun would be paying for the site and handling the infrastructure.

Features of NetBeans
A free, open-source Integrated Development Environment for software
developers. You get all the tools you need to create professional desktop,
enterprise, web, and mobile applications with the Java platform, as well as C/C++,
PHP, JavaScript, Groovy, and Ruby. NetBeans IDE 6.9 introduces the JavaFX
Composer, support for JavaFX SDK 1.3, OSGi interoperability, support for the PHP
Zend framework and Ruby on Rails 3.0, and more.

[Type text]
4. Problem Definition & Analysis

EXISTING SYSTEM:

S
ystem Analysis is a detailed study of the various operations performed by a system
and their relationships within and outside of the system. Here the key question is-
what all problems exist in the present system? What must be done to solve the
problem? Analysis begins when a user or manager begins a study of the program using
existing system.

During analysis, data collected on the various files, decision points and transactions
handled by the present system. The commonly used tools in the system are Data Flow
Diagram, interviews, etc. Training, experience and common sense are required for
collection of relevant information needed to develop the system. The success of the system
depends largely on how clearly the problem is defined, thoroughly investigated and
properly carried out through the choice of solution. A good analysis model should provide
not only the mechanisms of problem understanding but also the frame work of the solution.
Thus it should be studied thoroughly by collecting data about the system. Then the
proposed system should be analyzed thoroughly in accordance with the needs.
System analysis can be categorized into four parts.

✓ System planning and initial investigation


✓ Information Gathering
✓ Applying analysis tools for structured analysis
✓ Feasibility study
✓ Cost/ Benefit analysis.

In the current system we need to keep a number of records related to the trains and
want to enter the details of the trains and the seats manually. In this system only the
administrator authority views and edit trains details and add they want to enter the details
of the student. This is time consuming and has much cost.

PROPOSED SYSTEM
In our proposed system we have the provision for adding the details of the trains
by themselves. So the overhead of the railway authorities and the athorities is become less.
Another advantage of the system is that it is very easy to edit the details of the trains and
delete trains, seats when it found unnecessary. The detail of trains is added in the database
and so passenger can also view the marks whenever they want.
[Type text]
Our proposed system has several advantages

➢ User friendly interface


➢ Fast access to database
➢ Less error
➢ More Storage Capacity
➢ Search facility
➢ Look and Feel Environment
➢ Quick transaction
All the manual difficulties in managing the trains details in a railway autorities
been rectified by implementing computerization.

FEASIBILITY ANALYSIS
Whatever we think need not be feasible .It is wise to think about the feasibility of
any problem we undertake. Feasibility is the study of impact, which happens in the
organization by the development of a system. The impact can be either positive or negative.
When the positives nominate the negatives, then the system is considered feasible. Here
the feasibility study can be performed in two ways such as technical feasibility and
Economical Feasibility.
Technical Feasibility:
We can strongly says that it is technically feasible, since there will not be much
difficulty in getting required resources for the development and maintaining the system as
well. All the resources needed for the development of the software as well as the
maintenance of the same is available in the organization here we are utilizing the resources
which are available already.

Economical Feasibility:
Development of this application is highly economically feasible .The
organization needed not spend much money for the development of the system already
available. The only thing is to be done is making an environment for the development with
an effective supervision. I f we are doing so , we can attain the maximum usability of the
corresponding resources .Even after the development , the organization will not be in
condition to invest more in the organization .Therefore , the system is economically
feasible.

[Type text]
5. System Implementation

5.1 HARDWARE CONFIGURATION


Processor : Pentium IV 630MHz
RAM : 1GB
Hard Disk : 260 GB
Monitor : 15” Color monitor
Key Board : 122 Keys

5.2 SOFTWARE CONFIGURATION


Operating System : Windows NT,
Windows 98,
Windows XP.
Language : Java Net beans 6.5
Database : MySQL

5.3 SYSTEM REQUIREMENTS


This management system can be used in windows 98, Windows2000, Windows XP and
Windows NT, supported for other platform such as Apple, Macintosh and UNIX.

The system must be running Windows 98, Windows 98 or Windows NT4.0 operating system and
must meet the following hardware requirements.

➢ For Windows 95 based computers , a 486 / 66 MHz or higher


processor with 8MB
➢ For Windows 98 based computers , a 500/88MHz or higher
processor with 32 Mb of RAM
➢ For Windows NT based computers , a 488 / 66 MHz or higher
processor with 16 MB of RAM
➢ For Windows 200 based computers , a 700/850 MHz or higher
processor with 512 MB of Ram

[Type text]
6. System Design & Development

6.1 INPUT DESIGN

Input design is the process of converting user-oriented input to a computer based


format. Input design is a part of overall system design, which requires very careful attention
.Often the collection of input data is the most expensive part of the system. The main
objectives of the input design are …
1. Produce cost effective method of input
2. Achieve highest possible level of accuracy
3. Ensure that the input is acceptable to and understood by the staff.
Input Data
The goal of designing input data is to make entry easy, logical and free from errors
as possible. The entering data entry operators need to know the allocated space for each
field; field sequence and which must match with that in the source document. The format
in which the data fields are entered should be given in the input form .Here data entry is
online; it makes use of processor that accepts commands and data from the operator
through a key board. The input required is analyzed by the processor. It is then accepted or
rejected. Input stages include the following processes
• Data Recording
• Data Transcription
• Data Conversion
• Data Verification
• Data Control
• Data Transmission
• Data Correction
One of the aims of the system analyst must be to select data capture method and
devices, which reduce the number of stages so as to reduce both the changes of errors and
the cost .Input types, can be characterized as.
• External
• Internal
• Operational
• Computerized
• Interactive
Input files can exist in document form before being input to the computer. Input
design is rather complex since it involves procedures for capturing data as well as inputting
it to the computer.

[Type text]
6.2 OUTPUT DESIGN

Outputs from computer systems are required primarily to communicate the


results of processing to users. They are also used to provide a permanent copy of
these result for latter consultation .Computer output is the most important and direct
source of information to the users. Designing computer output should proceed in an
organized well throughout the manner. The right output must be available for the
people who find the system easy o use. The outputs have been defined during the
logical design stage. If not, they should defined at the beginning of the output
designing terms of types of output connect, format, response etc,
Various types of outputs are
• External outputs
• Internal outputs
• Operational outputs
• Interactive outputs
• Turn around outputs
All screens are informative and interactive in such a way that the user can full
fill his requirements through asking queries.
6.3 DATABASE DESIGN
The general theme behind a database is to handle information as an integrated
whole. A database is a collection of interrelated data stored with minimum
redundancy to serve many users quickly and effectively. After designing input
and output, the analyst must concentrate on database design or how data should
be organized around user requirements. The general objective is to make
information access, easy quick, inexpensive and flexible for other users. During
database design the following objectives are concerned:-
➢ Controlled Redundancy
➢ Data independence
➢ Accurate and integrating
➢ More information at low cost
➢ Recovery from failure
➢ Privacy and security
➢ Performance
➢ Ease of learning and use
[Type text]
6.4 I/O Form Designing & Coding:-
Login

private void usernameFocusGained(java.awt.event.FocusEventevt) {//GEN-


FIRST:event_usernameFocusGained
username.setText("");
}//GEN-LAST:event_usernameFocusGained
private void loginActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_loginActionPerformed
String email=username.getText();
String Password=password.getText();

[Type text]
try {
Connection con=NewCon.connect();
Statement st=con.createStatement();
Statement st1=con.createStatement();
st.executeUpdate("update user set logged='0'");
String sql="select * from user where email='"+email+"' and
password='"+Password+"'";
ResultSetrs=st.executeQuery(sql);
if(rs.next())
{
st1.executeUpdate("update user set logged='1' where email='"+email+"' and
password='"+Password+"'");
if(rs.getString("name").equals("administrator"))
{
JOptionPane.showMessageDialog(null, "login as administrator User");
newadd_Train().setVisible(true);
dispose();
}
else
{
new menu().setVisible(true);
dispose();
}
}
else
{ JOptionPane.showMessageDialog(null, "Invalid User");
}
}
catch(Exception ex) {
System.out.println(ex);
}
}//GEN-LAST:event_loginActionPerformed
private void login1ActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_login1ActionPerformed
new signup().setVisible(true);
dispose();

[Type text]
[Type text]
private void btn_bill_add2ActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_btn_bill_add2ActionPerformed
new reservation().setVisible(true);
dispose();
}//GEN-LAST:event_btn_bill_add2ActionPerformed
private void btn_bill_add1ActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_btn_bill_add1ActionPerformed
new menu().setVisible(true);
jLabel1.setBounds(0, 0, 1090, 600);
getContentPane().add(jPanel43);
jPanel43.setBounds(0, 0, 1100, 620);
pack();
}// </editor-fold>//GEN-END:initComponents
private void btn_add_patient2ActionPerformed(java.awt.event.ActionEventevt)
{//GEN-
evt) {//GEN-FIRST:event_btn_add_patient4ActionPerformed
new VENUE().setVisible(true);
dispose();
}//GEN-LAST:event_btn_add_patient4ActionPerformed
private void btn_add_patient5ActionPerformed(java.awt.event.ActionEventevt)
{//GEN-FIRST:event_btn_add_patient5ActionPerformed
new el().setVisible(true);
dispose();
}//GEN-LAST:event_btn_bill_add1ActionPerformed
private void btn_bill_addActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_btn_bill_addActionPerformed
String tnumber = number.getText();
DefaultTableModel model = (DefaultTableModel) train.getModel();
model.setRowCount(0);
Vector data = new Vector();
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con = (Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/railway", "root", "tiger");
dates.setText(rs.getString(8));
profession.setText(rs.getString(9));
mobile.setText(rs.getString(10));
email.setText(rs.getString(13));
phone.setText(rs.getString(11));
quali.setText(rs.getString(12));
identi.setText(rs.getString(14));
nameoffa.setText(rs.getString(16));
nameofm.setText(rs.getString(15));
[Type text]
ddno.setText(rs.getString
Statement st = (Statement) con.createStatement();
ResultSetrset = st.executeQuery("SELECT
number,name,source,destination,arrival,departure,fare,seat FROM train where
number='" + tnumber + "'");
ResultSetMetaData md = (ResultSetMetaData) rset.getMetaData();
int columns = md.getColumnCount();
System.out.println(columns);
while (rset.next()) {
Vector row = new Vector(columns);
for (inti = 1; i<= columns; i++) {
row.addElement(rset.getObject(i));
// System.out.println(rset.getObject(i));
}
jPanel43.add(btn_add_patient4);
btn_add_patient4.setBounds(820, 360, 200, 40);
btn_add_patient5.setBackground(new java.awt.Color(255, 255, 255));
btn_add_patient5.setFont(new java.awt.
.CENTER);

btn_add_patient5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTO
M);
btn_add_patient5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEventevt) {
btn_add_patient5ActionPerformed(evt);
}
});
private void initComponents() {
jPanel43 = new javax.swing.JPanel();
btn_add_patient2 = new javax.swing.JButton();
DATEAVAILABLE = new javax.swing.JLabel();
surname = new javax.swing.JTextField();
jLabel87 = new javax.swing.JLabel();
jLabel88 = new javax.swing.JLabel();
firstname = new javax.swing.JTextField();
jLabel89 = new javax.swing.JLabel();
jLabel90 = new javax.swing.JLabel();
dob =
.JLabel();
data.addElement(row);
// System.out.println(data);
// System.out.println(row);
model.addRow(row);

[Type text]
//model.addRow(new Object[]{medicinename, batchno, quantity, price,
price1});
}
rset.close();
st.close();
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println(e.getStackTrace());
}

private void btn_add_patient_clearActionPerformed(java.awt.event.ActionEventevt)


{//GEN-FIRST:event_btn_add_patient_clearActionPerformed
txt_add_patint_name.setText("");
txtarea_add_patient_address.setText("");
txt_add_contact.setText("");
txt_add_email.setText("");
txt_add_age.setText("");
// combo_add_patient_blood.set
}//GEN-LAST:event_btn_add_patient_clearActionPerformed
private void btn_add_patientActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_btn_add_patientActionPerformed
String name = txt_add_patint_name.getText();
String addre = txtarea_add_patient_address.getText();
String contactno=txt_add_contact.getText();
String email = txt_add_email1.getText();
String age=txt_add_age.getText();
String password = txt_add_email.getText();
[Type text]
String accountnumber=account.getText();
if (name.equals("")
|| addre.equals("")
|| email.equals("")) {
JOptionPane.showMessageDialog(null, "please fill all the required field");
} else {
}
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con = (Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/railway", "root", "tiger");
Statement st = (Statement) con.createStatement();
String s=("select * from user where email='"+email+"'");
ResultSetrs=st.executeQuery(s);
if(rs.next())
{
JOptionPane.showMessageDialog(null, "USER WITH THIS EMAIL ALREADY
EXIST");
}
else
{
String reaerve="";
st.executeUpdate("insert into
user(name,address,age,phone,email,password,reserved,accountnumber) values('" +
name + "','" + addre + "','" + age + "','" + contactno + "','" + email + "','" + password +
"','"+reaerve+"','"+accountnumber+"')");
JOptionPane.showMessageDialog(null, "added successfully");
new menu().setVisible(true);
dispose();
}
} catch (Exception ex) {
System.out.println(ex);

[Type text]
private void btn_add_patient_exitActionPerformed(java.awt.event.ActionEventevt)
{//GEN-FIRST:event_btn_add_patient_exitActionPerformed
dispose();
}//GEN-LAST:event_btn_add_patient_exitActionPerformed
private void addActionPerformed(java.awt.event.ActionEventevt) {//GEN-
FIRST:event_addActionPerformed
String tnumber = number.getText();
String tname = name.getText();
String tfrom = from.getText();
String tto = to.getText();
String tarrival = arrival.getText();
String tdepartur = departure.getText();
String tfare = fare.getText();
String tseat1=seat.getText();
inttseat=0;
try{
tseat=Integer.parseInt(tseat1);
}
permasddre.setText(rs.getString(20));
(rs.getString(14));
nameoffa.setText(rs.getString(16));
nameofm.setText(rs.getString(15));
ddno.setText(rs.getString(17));
dddate.setText(rs.getString(19));
catch(Exception e)
{
JOptionPane.showMessageDialog(null, "Invalid number of seats ");
}
[Type text]
try
{
Connection con = (Connection) NewCon.connect();
Statement st = (Statement) con.createStatement();
ResultSetrs=st.executeQuery("select * from train where number='"+tnumber+"'");
if(rs.next())
{
JOptionPane.showMessageDialog(null, "train number already exists");
}
else
{
Connection con = (Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/passport", "root",
"tiger");
Statement st = (Statement) con.createStatement();
int no1=(Integer.parseInt(hiden.getText()))-1;
String no=String.valueOf(no1);
hiden.setText(no);
String sql = "select * from user where id='"+no+"'";
ResultSetrs = st.executeQuery(sql);
if (rs.next()) {
firstname.setText(rs.getString(3));
(rs.getString(19));
bank.setText(rs.getString(18));
}
st.executeUpdate("insert into
train(number,name,source,destination,arrival,departure,seat,fare) values('" + tnumber +
"',"
+ "'" + tname + "','" + tfrom + "','" + tto + "','" + tarrival + "','" + tdepartur
+ "','" + tseat + "','" + tfare + "')");
JOptionPane.showMessageDialog(null, "train added");
new menu().setVisible(true);
dispose();
}
}

[Type text]
7. SYSTEM IMPLEMENTATION
Implementation is the stage in the project where the theoretical design is turned
into a working system. The implementation phase constructs, installs and operates the
new system. The most crucial stage in achieving a new successful system is that it will
work efficiently and effectively.
There are several activities involved while implementing a new project. They are
➢ End user training
➢ End user Education
➢ Training on the application software
➢ System Design
➢ Parallel Run and To New System
➢ Post implementation Review

End user Training:


The successful implementation of the new system will purely upon the involvement
of the officers working in that department. The officers will be imparted the necessary
training on the new technology
End User Education:
The education of the end user start after the implementation and testing is over.
When the system is found to be more difficult to understand and complex, more effort is
put to educate the end used to make them aware of the system, giving them lectures about
the new system and providing them necessary documents and materials about how the
system can do this.

Training of Application Software:


After providing the necessary basic training on the computer awareness, the users
will have to be trained upon the new system such as the screen flows and screen design
type of help on the screen, type of errors while entering the data, the corresponding
validation check at each entry and the way to correct the data entered. It should then cover
information needed by the specific user or group to use the system.

[Type text]
8. SOFTWARE TESTING
Is the menu bar displayed in the appropriate contested some system related features
included either in menus or tools? Do pull –Down menu operation and Tool-bars work
properly? Are all menu function and pull down sub function properly listed ?; Is it possible
to invoke each menu function using a logical assumptions that if all parts of the system
are correct, the goal will be successfully achieved .? In adequate testing or non-testing
will leads to errors that may appear few months later.
This create two problem
1. Time delay between the cause and appearance of the problem.
2. The effect of the system errors on files and records within the system
The purpose of the system testing is to consider all the likely variations to which it will
be suggested and push the systems to limits.
The testing process focuses on the logical intervals of the software ensuring that
all statements have been tested and on functional interval is conducting tests to uncover
errors and ensure that defined input will produce actual results that agree with the required
results. Program level testing, modules level testing integrated and carried out.

There are two major type of testing they are


1) White Box Testing.
2) Black Box Testing.
White Box Testing

White box sometimes called “Glass box testing” is a test case design uses the
control structure of the procedural design to drive test case.
Using white box testing methods, the following tests where made on the system
a) All independent paths within a module have been exercised once. In our system,
ensuring that case was selected and executed checked all case structures. The bugs that
were prevailing in some part of the code where fixed
b) All logical decisions were checked for the truth and falsity of the values.

Black box Testing


Black box testing focuses on the functional requirements of the software. This is
black box testing enables the software engineering to derive a set of input conditions that
will fully exercise all functional requirements for a program. Black box testing is not an
alternative to white box testing rather it is complementary approach that is likely to
uncover a different class of errors that white box methods like..
1) Interface errors
2) Performance in data structure
3) Performance errors
4) Initializing and termination errors

[Type text]
9. User Manual

7.1 How to install Software:


Hardware Requirement-
 Intel Pentium/Celeron or similar processor based PC at Client/Server end.
 128 MB RAM and 4GB HDD space (for Database) is desirable.
 Standard I/O devices like Keyboard and Mouse etc.
 Printer is needed for hard-copy reports.
 Local Area Network(LAN) is required for Client-Server Installation
Software Requirement-
 Windows 2000/XP OS is desirable.
 NetBeans Ver 5.1 or higher should be installed with JDK and JVM.
 MySQL Ver 6.1 with Pro Database must be present at machine.
Database Installation
The software project is distributed with a backup copy of a Database named pro with
required tables. Some dummy records are present in the tables for testing purposes, which
can be deleted before inserting real data. The project is shipped with pro.SQL file which
installs a database and tables in the computer system.
Note: The PC must have MySQL server with user (root) and password (kvuc) . If root
password is any other password, it can be changed by running MySQL Server Instance
Configure Wizard.
Start Program  MySQL MySQL Server MySQL Server Instance Config
Wizard
Provide current password of root and new password as “kvuc” , this will change the root
password.

To install a MySQL database from a dump file ( pro.sql) , simply follow the following steps.

Step 1: Copy the Lib.sql file in C:\Program files\Mysql\MySql server 5.1\Bin folder.
Step 2: Open MySQL and type the following command to create the dabase named pro.
mysql> create database pro;
Step 3: Open Command Window (Start Run  cmd)
Step 4: Go to the following folder using CD command of DOS.
C:\Program files\Mysql\MySql server 5.1\Bin>
Step 5: type the following command on above prompt -
C:….\bin> mysql -u root -pkvuc pro < pro.sql
This will create a Library databse with required tables.

[Type text]
10. References
In order to work on this project titled Ralway Reservation System, the following
books and literature are refered by me during the various phases of development of
the project.

(1) The Complete Reference Java 2.0

-by Shildit

(2) MySQL, Black Book


-by Steven Holzner

(3) Understanding SQL

– Gruber

(4) http://www.mysql.org/

(5) http://www.netbeans.org/

(6) Informatics Practices for +2 2nd Yr Science

-by Ranjit Kumar Hati

(7) Various Websites of Discussion Forums and software development activities.

11. CONCLUSION
Our project is only a humble venture to satisfy the needs in an Institution.
Several user friendly coding have also adopted. This package shall prove to be a
powerful package in satisfying all the requirements of the organization.
The objective of software planning is to provide a frame work that enables the
manger to make reasonable estimates made within a limited time frame at the
beginning of the software project and should be updated regularly as the project
progresses. Last but not least it is not the work that played the ways to success but
ALMIGHTY.

THANKS
[Type text]

You might also like