0% found this document useful (0 votes)
78 views30 pages

City Life: Hyderabad Tourism Project Report

This document is a project report on a website called "City Life" created by three students. The website provides relevant information about Hyderabad city, including details about hotels, restaurants, malls, tourist places, and other spots to visit. It has a simple user interface to help users find information about Hyderabad and places to visit. The main purpose is to help tourists and visitors by providing information on hotels, transportation, ticket booking, shopping, news, and other city details as a guide to the city. The project uses Java, Java Swings, and MySQL to develop the front-end and back-end of the website.

Uploaded by

Murali Dheekonda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views30 pages

City Life: Hyderabad Tourism Project Report

This document is a project report on a website called "City Life" created by three students. The website provides relevant information about Hyderabad city, including details about hotels, restaurants, malls, tourist places, and other spots to visit. It has a simple user interface to help users find information about Hyderabad and places to visit. The main purpose is to help tourists and visitors by providing information on hotels, transportation, ticket booking, shopping, news, and other city details as a guide to the city. The project uses Java, Java Swings, and MySQL to develop the front-end and back-end of the website.

Uploaded by

Murali Dheekonda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

IDP PROJECT REPORT ON

“CITY LIFE”
Submitted
In the partial fulfillment of the requirements for
The award of the degree of
BACHELOR OF INFORMATION TECHNOLOGY
In
DEPARTMENT OF INFORMATION TECHNOLOGY
By
Kunita Rao (201FA07087)
B.Sushma (201FA07024)
N.Gopi chandu(201FA07090)
(BATCH NO:14)
Submitted to:
Mrs.K.Santhi Sri
Mr.D.Madhusudhan Rao
Mrs.K.Gayathri

DEPARTMENT OF INFORMATION TECHNOLOGY


VIGNAN’S FOUNDATION FOR SCIENCE,TECHNOLOGY AND
RESEARCH UNIVERSITY

(Accrediated by NAAC”A+” grade)


Vadlamudi,Guntur

1
CERTIFICATE

This is to certify that the Minor project Report entitled “CITY LIFE” that is being
submitted by KUNITA RAO (201FA07087),B.SUSHMA (201FA07024) AND
N.GOPI CHANDU(201FA07090) in partial fulfillment for the award of
BACHELOR OF INFORMATION TECHNOLOGY degree in INFORMATION
TECHNOLOGY to the Vignan’s Foundation for Science, Technology and
Research, Deemed to be University, is a record of bona fide work carried out by
them in the IT Department.

Under The Guidance of Head of the Department

Mr.D.Madhusudhan Rao

External Examiner

2
TABLE OF CONTENTS:

CONTENTS
S.NO
PG.NO
1.
ABSTRACT 4
2.
INTRODUCTION 5

3.
SYSTEM ENVIRONMENT 6

4.
ANALYSIS 7

5.
DESIGN 10
6.
IMPLEMENTATION 16
7.
RESULTS 33
8.
TESTING 35
9.
CONCLUSION 36

3
1. ABSTRACT

City Life is the website which contains relevant information regarding Hyderabad
city. This website provides details about hotels , restaurants, malls, tourist places,
famous spots to visit. It will help the users who want to know the information
about Hyderabad city and its visiting places. This website has simple user interface
that is easily accessible by the user.The main purpose of this project to help the
tourists and other visitors to the city by providing information about hotels,
transportation facilities, air ticket booking, shopping details, city news, etc. The
CITY LIFE Java Project serves the visitors as a guide of the city.

4
2. INTRODUCTION
All the Booking details are managed manually by the office. The Registration form
verification to the different data processing are done manually. Thus, there are a lot
of repetitions which can be easily avoided. And hence there is a lot of strain on the
person who are running office and software’s are not usually used in this context.

This particular project deals with the problems on meeting the desired goal of
people for what purpose they want to go and avoids the problems which occur
when carried manually Identification of the drawbacks of the existing system leads
to the designing of computerized system that will be compatible to the existing
system with the system which is more user friendly and more GUI oriented. We
can improve the efficiency of the system, thus overcome the drawbacks of the
existing system.

5
3. SYSTEM ENVIRONMENT

SOFTWARE REQUIREMENTS:

Operating System :Windows 7,10,11

Language :JDK1.4

Other Software :Java Swings

Data Base :MY SQL

HARDWARE REQUIREMENTS:

Processor :Intel Core i3,Intel Core i5

RAM :8 GB

Hard Disk :20 GB

6
4. ANALYSIS
Existing System:

In the existing system there are various separate sites in order to know the
information about the historical places, hotels, restaurants and places. The existing
sites having various ads and pop-up’s which makes user uncomfortable

Proposed System:

In the proposed system user can find different categories available in one site.
User can know the information about different places those want to visit and can
plan his schedule based on his knowledge. Ads-Free website & straight forward.
Designed to give the feedback by liking and commenting. This website provides
short videos & images on tourist places.

SOFTWARE TOOL USED:

The whole project is divided in two parts the front end and the back end.

Front end:

The front end is designed using of Java .

JAVA:

JAVA was developed by James Gosling at Sun Microsystems Inc in the


year 1991, later acquired by Oracle Corporation. It is a simple programming
language. Java makes writing, compiling, and debugging programming easy. It
helps to create reusable code and modular programs.
Java is a class-based, object-oriented programming language and is designed to
have as few implementation dependencies as possible. A general-purpose
programming language made for developers to write once run anywhere that is
compiled Java code can run on all platforms that support Java.

It’s a build up security features that includes cryptography that is message


authentication digital signatures, codes, and advanced verification. The second one
means applying many login mechanisms with the developing the tradition security
policy and levy clear authorization access rules to the extract informations.

7
Back End:

The back end is designed using MYSQL which is used to design the databases.

MYSQL:
MySql (“My S-Q-L”,officially, but also called “My Seql”) is (as of July 2013) the
world’s second most widely used open-source relational database management
system(RDBMS). It is named after co-founder Michael Widenius daughter. My .
The SQL phrase stands for Structured Query Language. The MySQL development
project has made its source code available under the terms of the GNU General
Public License, as well as under a variety of proprietary agreements.

MODULES:

1)Administration module

2)Tourism module

1. Administration module is the overall controller of the city life project. It


updates itself as well as other modules. This module is responsible for uploading
job opportunities in the site, updating business information, authenticating the user
profiles along with the maintenance of other modules.

2. Tourism Module is designed to take care of tourist related tasks in city. It


maintains the details regarding the hotels, tourist spots, entertainment source,
ATMs, theatres, city map, etc. A tourist authenticated by the administration is the
main user of this module.

8
5. DESIGN
DATA FLOW DIAGRAM

9
10
BACKENEDTABLE

11
12
13
6. IMPLEMENTATION

CODING OF PROJECT
OPEN _HOME .JSP
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" import="java.sql.*;"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
String uid=request.getParameter("uid");
String pwd=request.getParameter("pwd");
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Connection con=DriverManager.getConnection(url,"smartcity","smartcity");
Statement stmt=con.createStatement();
System.out.println("connected");
ResultSet rs=stmt.executeQuery("Select * from login12 where userid='"+uid+"'
and

14
pwd='"+pwd+"'");
if(rs.next())
{
String user=rs.getString("userid");
String type=rs.getString("type");
HttpSession ss=request.getSession(true);
if(type.equals("student"))
{
ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Student_home.jsp");
rd.forward(request,response);
}
else if(type.equals("business"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("BP_home.jsp");
rd.forward(request,response);
}
else if(type.equals("job"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("JS_home.jsp");
rd.forward(request,response);
}
else if(type.equals("tourist"))
15
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Tourist_home.jsp");
rd.forward(request,response);
}
else if(type.equals("admin"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Admin_home.jsp");
rd.forward(request,response);
}else if(type.equals("moderator"))
{ ss.setAttribute("name",user);
RequestDispatcher rd =
request.getRequestDispatcher("Moderator_home.jsp");
rd.forward(request,response);
}
}
else
{ %>
<jsp:forward page="home1.jsp?m1=Invalid Userid and
Password"></jsp:forward>
<%
}

}
catch(Exception e)
16
{
e.printStackTrace();
}
%>
</body>
</html>
VIEW_ALERTS
<%@ page language="java" import="java.sql.*" contentType="text/html;
charset=ISO-8859-
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View Messaging</title>
</head>
<body>
<marquee direction="left" scrolldelay="1250">
<%
try
{
String str="";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Connection con=DriverManager.getConnection(url,"smartcity","smartcity");

17
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("select * from alerts");
while(rs.next()){str=rs.getString(2);
System.out.println(str);
%>
<a href="alertslink.jsp?d=<%=str %>"><%=str%></a><%
}
}
catch(Exception e)
{
e.printStackTrace();
}
%>
</marquee>
</body>
</html>
INSERT_ALERTS.JAVA
package pack;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
18
public class insertalerts extends javax.servlet.http.HttpServlet implements
javax.servlet.Servlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out=response.getWriter();
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con= DriverManager.getConnection(“jdbc:odbc:”smartcity”,”smart”) ;
Statement st=con.createStatement();
String f=request.getParameter("id");
String fn=request.getParameter("nm");
String mn=request.getParameter("description");
Int i=st.executeUpdate("insertintoalerts
values('"+f+"','"+fn+"','"+mn+"')");

}
catch(Exception e)
{
e.printStackTrace();

VIEW_INDUSTRIES :

19
<table align="center" border='1'><tr><th>company
Name</th><th>operations</th><th>pollutioncategory</th><th>Sector</th><th>E
mployees</th><th>Address</th><th>CurrentStatus</th></tr>
<%
String str=request.getParameter("id");
System.out.println(str);
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Connection con=DriverManager.getConnection(url,"smartcity","smartcity");
Statement st=con.createStatement();
System.out.println("Database connected");
ResultSet rs=st.executeQuery("select * from companydetails where id='"+str+"'");
System.out.println("query running");
while(rs.next())
{
System.out.println("ok");
String des=rs.getString(8);
System.out.println(des);
if(des.equals(str))
{
%>
<tr>
<td> <%=rs.getString(1)%>
</td><td>

20
<%=rs.getString(2)%>
</td><td><%=rs.getString(3)%>
</td><td>
<%=rs.getString(4)%></td><td>
<%=rs.getString(5)%>
</td><td><%=rs.getString(6)%>
</td><td><%=rs.getString(7)%></td></tr>
<%
}
else
{
System.out.println("fail");
break;
}
}
}
catch(Exception e)
{
e.printStackTrace();
}
%>
</table>
INDUSTRIES.JSP
<td align="left">
<h3>Some Industries In Vizag</h3>
<ul>
21
<li><a href="nag.jsp?id=1" onclick="check()">GrandBay Industries</a></li>
<li><a href="nag.jsp?id=2">Sri viska imports&exports</a></li>
<li><a href="nag.jsp?id=3">AravindGraniteIndutry</a></li>
<li><a href="nag.jsp?id=4">ArunWoods</a></li>
<li><a href="nag.jsp?id=5">APForestDevelopmentLimited</a></li>
<li><a href="nag.jsp?id=6">APRefactoriesLimited</a></li>
<li><a href="nag.jsp?id=7">BEPumps</a></li>
<li><a href="nag.jsp?id=8">BOCIndia.Ltd</a></li>
<li><a href="nag.jsp?id=9">BinduResins</a></li>
<li><a href="nag.jsp?id=10">BMR Enterprises</a></li>
<li><a href="nag.jsp?id=11">ChamundiIndustries</a></li>
<li><a href="nag.jsp?id=12">CosmicPlastics</a></li>
<li><a href="nag.jsp?id=13">CoastalCardBoard</a></li>
<li><a href="nag.jsp?id=14">ChowhanExportsLtd</a></li>
<li><a href="nag.jsp?id=15">DeccanVeneersLtd</a></li>
<li><a href="nag.jsp?id=16">EastIndiaPetrolemLtd</a></li>
<li><a href="nag.jsp?id=17">FerroScrapNigamLtd</a></li>
<li><a href="nag.jsp?id=18">GAILIndiaLtd</a></li>
<li><a href="nag.jsp?id=19">GayatriPlastics</a></li>
<li><a href="nag.jsp?id=20">GlobalOpticals</a></li>
<li><a href="nag.jsp?id=21">HindustanShipyard</a></li>
<li><a href="nag.jsp?id=22">HygradePelletsLtd</a></li>
<li><a href="nag.jsp?id=23">INS Eksila</a></li>
<li><a href="nag.jsp?id=24">ITC Limited</a></li>
<li><a href="nag.jsp?id=25">LGPolymersLtd</a></li>
</ul></td>
22
BUS_SEARCH
<%@ page language="java" import="java.sql.*;"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv ="Content-Type" content="text/html; charset=ISO-8859-1">
<title>BUS SEARCH</title>
</head>
<body>
<table
border='1'><tr><td>BusNo</td><td>Source</td><td>Destination</td><td>Time<
/td></tr>
<%
String str1=request.getParameter("src");
String str=request.getParameter("des");
System.out.println(str1);
System.out.println(str);
int i=0;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:srikanth";
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from Bussearch");

23
while(rs.next())
{
String sour=rs.getString(2);
String des=rs.getString(3);
System.out.println("ds:--->"+sour+"<---");
System.out.println("ds:--->"+des+"<---");
if((sour.equals(str1))&&(des.equals(str)))
{
%>
<tr> <td>
<%=rs.getString(1)%>
</td><td>
<%=rs.getString(2)%> </td><td>
<%=rs.getString(3)%></td><td>
<%=rs.getString(4)%></td><td>
}
}

catch(Exception e)
{
e.printStackTrace();
}
%>
</table>
24
7. RESULTS
SCREENSHOTS:

25
26
27
28
8. TESTING

UNIT TESTING:

The software units in a system are modules and routines that are assembled and
integrated to perform a specific function. Unit testing focuses first on modules,
independently of one another, to locate errors. This enables, to detect errors in
coding and logic that are contained within each module. This testing includes
entering data and ascertaining if the value matches to the type and size supported
by java. The various controls are tested to ensure that each performs its action as
required.

INTEGRATION TESTING:

Data can be lost across any interface, one module can have an adverse effect on
another, sub functions when combined, may not produce the desired major
functions. Integration testing is a systematic testing to discover errors associated
within the interface. The objective is to take unit tested modules and build a
program structure. All the modules are combined and tested as a whole. Here the
Server module and Client module options are integrated and tested. This testing
provides the assurance that the application is well integrated functional unit with
smooth transition of data.

29
9. CONCLUSION
From the above discussion we conclude that the project city life has successfully
satisfied the requirement of the users. This project helps the user to find the
popular visiting places in particular city. Users can make the bookings from their
location. This project saves lot of time in searching the places in the city to the
visitors.

30

You might also like