akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK....

33
PROJECT REPORT By: Akshit Tyagi Topic : Trip Planner in Java Technologies Used : Core Java, MySql

Transcript of akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK....

Page 1: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

PROJECT REPORT

By: Akshit Tyagi

Topic : Trip Planner in Java

Technologies Used : Core Java, MySql

Page 2: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

CONTENT

Title Page No.List of Figures viiList of Tables viiiAbbreviations and nomenclature ix

CHAPTER 1:

Introduction to the Project 1

CHAPTER 2: Tools and Technology 3

CHAPTER 3: Snapshots 3.1 Home Page 9 3.2 Signup Page 10 3.3 Registration Page 11 3.4 Logged In Page 12 3.5 Destination Page 13 3.6 Mode Option 14 3.7 Bill 15 3.8 Database Table 16CHAPTER 4: Results and Discussions 18

CHAPTER 5: Conclusion and Future Scope 20

References 21

Page 3: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

i

LIST OF FIGURES

Title Page No.Figure 2.1 JDBC 5Figure 2.2 Steps to Connect JDBC 7

Figure 3.1 The Home Page 9 Figure 3.2 The Signup Page 10 Figure 3.3 The Registration Page 11 Figure 3.4 The Login Page 12 Figure 3.5 The Destination Page 13 Figure 3.6 The Mode Option Page 14 Figure 3.7 The Bill 15

Page 4: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

ii

LIST OF TABLES

Title Page No. Table 3.1 13

Page 5: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

iii

ABBREVIATIONS AND NOMENCLATURE

WORD ABBREVIATION

Java Development Kit JDK

Java Runtime Environment JRE

Java Database Connectivity JDBC

Structured Query Language SQL

Character User Interface CUI

Page 6: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

iv

Chapter 1:Introduction to the Project

Page 7: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

The Project is based basically on JAVA programming, named “THE TRAVEL PLANNER”. The Java Features given below are simple and easy to understand.

1. Simple2. Object-Oriented3. Platform independent4. Secured5. High Performance

The database used is MySql for the project as it helps in storing the record of the users. The netBeans has been used as MySql library is not included by default in jdk.

The functionality of the project includes complete planning of destination for tour and billing for a particular customer. The purpose of this project is that the user can chose the desired destination and mode of travel by the help of which the cost estimation can be done successfully.It opens up with home page which includes to login or signup first, followed by a registration page that needs user id and password to process further. A customer can view the destination that he needs to travel, which is followed by means of mode he needs to choose. At last, when the destination and mode is finalized, the customer will get the bill for the required destination accordingly. All the user id and password are internally linked which provides ease to the user while switching over the pages and still all the information is saved statically which can be viewed in SQL. The Pages are:1.Home Page (signup or login)2.Signup 3.Registration desk 4.Logged into destination5.Means of mode 6.Bill Page

Page 8: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

2

Chapter 2:Tools and Technology

Page 9: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

The project is solely made by using JAVA as the programming language. The version of JDK and JRE used is 1.8.0_31. NetBeans is a software development platform written in Java The NetBeans IDE is primarily intended for development in Java, but also supports other languages, in particular PHP, C/C++ and besides that basic concepts of SQL is implemented. 

The scope of SQL includes : Insert data query update delete modification data access control

Java Database Connectivity (JDBC) is an application programming interface for the programming language Java, which defines how a client may access a database. JDBC allows multiple implementations to exist and be used by the same application.

The DriverManager provides a basic service for managing a set of JDBC drivers. The DriverManager class acts as an interface between user and drivers. It keeps track of the drivers that are available and handles establishing a connection between a database and the appropriate driver. The DriverManager class maintains a list of Driver classes that have registered themselves by calling the method DriverManager.registerDriver().

Commonly used methods of DriverManager class:

1) public static void registerDriver(Driver driver):is used to register the given driver with DriverManager.

2) public static void deregisterDriver(Driver driver):

is used to deregister the given driver (drop the driver from the list) with DriverManager.

3) public static Connection getConnection(String url):

is used to establish the connection with the specified url.

4) public static Connection getConnection(String url,String userName,String password):

is used to establish the connection with the specified url, username and password.

Page 10: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

4

Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database.

Figure 2.1 JDBC

Page 11: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

5

Connect to the mysql databaseFor connecting java application with the mysql database, you need to follow 5 steps to perform database connectivity.

In this example we are using MySql as the database. So we need to know following information for the mysql database:

1. Driver class: The driver class for the mysql database is com.mysql.jdbc.Driver.

2. Connection URL: The connection URL for the mysql database is jdbc:mysql://localhost:3306/mproject where jdbc is the API, mysql is the database, localhost is the server name on which mysql is running, we may also use IP address, 3306 is the port number and sonoo is the database name. We may use any database, in such case, you need to replace the sonoo with your database name.

3. Username: The default username for the mysql database is root.4. Password: Password is given by the user at the time of installing the

mysql database. In this example, we are going to use root as the password.

Page 12: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

6

Figure 2.2 Steps to connect JDBC

Page 13: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

7

Chapter 3:Snapshots

Page 14: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

Fig. 3.1 The Home Page

Page 15: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

9

Fig. 3.2 The Signup Page

Page 16: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

10

Fig. 3.3 Registration Page

Page 17: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

11

Fig. 3.4 The Logged In Page

Page 18: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

12

Fig. 3.5 The Destination Option

Page 19: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

13

Fig. 3.6 The Mode Option Page

Page 20: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

14

Fig. 3.7 The Bill

Page 21: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

15

Table 2.1 Database

Page 22: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

16

Chapter 4:Results and Discussions

Page 23: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

The Project Shows the Bill For every tour planned by the customer taking into account : user id and password destination mode of travelling bill amount

Therefore, the project deals in a complete real time environment just as what is done while Planning and organizing a tour with proper billing.The result produced is the Bill that contains the information provided by the user at the beginning of the program, the destination chosen and the bill amount that has to be paid by the customer.The program is interactive and provides a user-friendly environment that is easy and fun to handle. As well as the interface is effective in terms of showcasing a real environment as it uses the proper procedure of login into the database providing the user id and password.

Page 24: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

18

Chapter 5:Conclusion and Future Scope

Page 25: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

The project is complete and is efficient to handle any kind of inputs and any kind of events that occur such login failure, errors, billing etc.Still there is a further scope of improvement in the project.GUI can be added to the project that can be interactive, images can be included, animations can

be added, seat selection plan etc can be improved in future .The proper online payments and other advanced features can be added that are not included in

the project at this moment.Also the system can provide the customer with suggestions and specials offers taking into

accounts during his travel.The further improvements can be summarized as:

proper online payments. Offers valid. Seat selection plan.

Page 26: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

20

References

Java 2-The Complete ReferenceFifth Edition

-Herbert Schildt

www.sqlcourse.com

Page 27: akshitsproject.files.wordpress.com€¦  · Web viewWORD ABBREVIATION. Java Development Kit JDK. Java Runtime Environment JRE. Java Database ConnectivityJDBC. Structured Query LanguageSQL.

21