You are on page 1of 20

OBJECT ORIENTED PROGRAMMING

PROJECT BASED LAB REPORT


On

AP CITIES INFORMATION SYSTEM


Submitted in partial fulfillment of the

Requirements for the award of the Degree of

Bachelor of Technology
In
COMPUTER SCIENCE ENGINEERING
By
B. YASWANTH (150030097)
K.V. ANVESH (150030433)
Section: 3
Batch no: 17
UNDER THE GUIDENCE OF

Dr. G. SWAIN

DEPARTMENT OF COMPUTER SCIENCE ENGINEERING

K L University

Page | 1
CERTIFICATE

This is to certify that the course based project titled “AP CITIES INFORMATION SYSTEM”
being submitted by

B. YASWANTH (150030097)
K.V. ANVESH (150030433)
in partial fulfillment for the award of degree of Bachelor of Technology in COMPUTER
SCIENCE ENGINEERING is a record of bona fide work carried out by them under my guidance
during the academic year 2016-2017 and it has been found worthy of acceptance according to the
requirements of the university.

UNDER THE GUIDENCE OF


Dr. G. SWAIN

Page | 2
DECLARATION

We declare that the project work entitled “AP CITIES INFORMATION


SYSTEM” was carried out by us during OCTOBER 2016, and this work is not the
same as that of any other and has not been submitted for award of any other
degree/diploma.

Place: VIJAYAWADA Signature of the student:

Date:

Page | 3
INDEX

S.NO TITLE

1. Introduction

2. Description of the Project

3. JAVA Introduction

4. Software specifications

5. Source code

6. Conclusion

Page | 4
ACKNOWLEDGMENTS

The satisfaction that accompanies that the successful completion of any task would
be incomplete without the mention of people whose ceaseless cooperation made it
possible, whose constant guidance and encouragement crown all efforts with
success.

We are grateful to our project based lab guide Dr. G. SWAIN, Computer Science
& Engineering for the guidance, inspiration and constructive suggestions that helped
us in the completion of this project.

At the outset we thank our Head of the Department, DR.V.SRIKANTH sir for the
moral support and the excellent facilities provided. We would also like to thank all
the teaching and non-teaching staff members of Computer Science department who
have extended their full cooperation during the course of our project based labs.

We thank all our friends who helped us in sharing knowledge with us.

PROJECT BATCH: 23

B. YASWANTH (150030097)
K.V. ANVESH (150030433)

Page | 5
INTRODUCTION:

This project provides information about various major cities in Andhra Pradesh. The information
includes details like population, area, literacy rate, elevation, the district in which the city is
located, and which region the district lies in. If the city has a mayor or a municipal
commissioner, the program displays the name of the person.

The cities for which the information is available are: Guntur, Visakhapatnam, Kakinada, Tirupathi,
Chittoor, Ongole, Rajahmundry, Vijayawada, and Tenali.

DESCRIPTION OF THE PROJECT:

“AP CITIES INFORMATION SYSTEM” is a system that gives us the details of the various
cities present in the state of Andhra Pradesh. This program allows a user to know the population,
area, landmarks, etc. of the city.

The project is developed in threat free and secured object oriented system. The Java platform
provides a security architecture which is designed to allow the user to run untrusted bytecode in a
"sandboxed" manner to protect against malicious or poorly written software. This "sandboxing"
feature is intended to protect the user by restricting access to certain platform features and APIs
which could be exploited by malware, such as accessing the local filesystem, running arbitrary
commands, or accessing communication networks.

JAVA INTRODUCTION:

Java is a general-purpose computer programming language that is concurrent, class-based, object-


oriented, and specifically designed to have as few implementation dependencies as possible. It is
intended to let application developers "write once, run anywhere" (WORA), meaning that
compiled Java code can run on all platforms that support Java without the need for recompilation.
Java applications are typically compiled to bytecode that can run on any Java virtual machine
(JVM) regardless of computer architecture. As of 2016, Java is one of the most popular

Page | 6
programming languages in use, particularly for client-server web applications, with a reported 9
million developers. Java was originally developed by James Gosling at Sun Microsystems (which
has since been acquired by Oracle Corporation) and released in 1995 as a core component of Sun
Microsystems' Java platform. The language derives much of its syntax from C and C++, but it
has fewer low-level facilities than either of them.

SOFTWARE SPECIFICATIONS:

MINIMUM SOFTWARE REQUIREMENTS:

Operating System: Windows XP/7/above.

SOURCE CODE:

package andhra;
import java.util.*;
class APK
{
Scanner b=new Scanner(System.in);
}
class GUNTUR extends APK
{
Public void guntur()
{
int e;
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
e=b.nextInt();
switch(e)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF GUNTUR IS : 168.41 km^2");
System.out.println("POPULATION OF GUNTUR is : 743,354");

Page | 7
System.out.println("LOCATED IN DISTRICT : GUNTUR");
System.out.println("ELEVATION : 30m (100 ft)");
System.out.println("LITERACY : 67.40%");
System.out.println("REGION: ANDHRA");
System.out.println("Municipal Commissioner: S.Nagalakhsmi");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("BRUNDAVAN GARDENS");
System.out.println("GORENTLA BALAJI TEMPLE");
System.out.println("CHINAKAKANNI");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("GANDHI PARK");
System.out.println("NTR.MANASA SAROVAR");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}
}
class VIZAG extends APK
{
public void vizag()
{
int f;
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
f=b.nextInt();
switch(f)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");

Page | 8
System.out.println("---------------------------------------");
System.out.println("AREA OF VIZAG IS : 540.00 km^2 ");
System.out.println("POPULATION OF VIZAG is : 2,035,922");
System.out.println("LOCATED IN DISTRICT : VIZAG");
System.out.println("ELEVATION : 45m (148 ft)");
System.out.println("LITERACY : 67.70%");
System.out.println("REGION: ANDHRA");
System.out.println("MAYOR: HARI NARAYANAN");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("SIMHACHALAM APPANA TEMPLE");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("RAMAKRISHNA BEACH");
System.out.println("VIZAG ZOO");
System.out.println("VIZAG SHIP YARD");
System.out.println("BORRA CAVES");
System.out.println("KAILASA GIRI");
System.out.println("YARADA BEACH");
System.out.println("RISHIKONDA BEACH");
System.out.println("Dolphin's Nose");
System.out.println("INS Kurusura Submarine Museum");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}
}
class KAKINADA extends APK
{
public void kakinada()
{
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");

Page | 9
System.out.println("____________________________________________________________
_");
int g;
System.out.println("");
g=b.nextInt();
switch(g)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF KAKINADA IS : 31.51 km^2");
System.out.println("POPULATION OF KAKINADA : 312,538");
System.out.println("LOCATED IN DISTRICT :EAST GODAVARI");
System.out.println("ELEVATION : 25m");
System.out.println("LITERACY : 81.23% ");
System.out.println("REGION: ANDHRA");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("Kotipalli Someswara Temple");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("Haritha Coconut Country Resort");
System.out.println("Coringa Wildlife Sanctuary");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}
}
class TIRUPATHI extends APK
{
public void tirupathi()
{
int h;
System.out.println("____________________________________________________________
_");

Page | 10
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
h=b.nextInt();
switch(h)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF TRIUPATI IS : 27.44 km^2");
System.out.println("POPULATION OF TRIUPATI : 312,538");
System.out.println("LOCATED IN DISTRICT :CHITTOOR");
System.out.println("ELEVATION : 853m (2,799 ft)");
System.out.println("LITERACY : 73.23% ");
System.out.println("REGION: Rayalaseema");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("TIRUMALA BALAJI TEMPLE");
System.out.println("TIRCHANURU PADMAVATHIDEVI TEMPLE");
System.out.println("ALIVALU MAGAPURAM");
System.out.println("VARAHASWAMI TEMPLE");
System.out.println("VARDARAJULU SWAMI TEMPLE");
System.out.println("ISKAN TEMPLE");
System.out.println("Sri Kalyana Venkateswaraswami Temple");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("Sri Venkateswara National Park ");
System.out.println("Papavinasam Theertham");
System.out.println("Talakona Waterfall ");
System.out.println("Sri Venkatesvara Museum");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}

Page | 11
}
class CHITTOOR extends APK
{
public void chittoor()
{
int j;
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
j=b.nextInt();
switch(j)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF CHITTOOR IS : 95.97 km^2");
System.out.println("POPULATION OF CHITTOOR :189,332 ");
System.out.println("LOCATED IN DISTRICT :CHITTOOR");
System.out.println("ELEVATION : 333.75m (1,094.98 ft)");
System.out.println("LITERACY : 72.96% ");
System.out.println("REGION: Rayalaseema");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("Sri Kapileswaraswami Temple");
System.out.println("Vallimalai Subramanyar Temple");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("Horsley Hills");
System.out.println("Tada Falls");
System.out.println("Kailasakona Waterfalls");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;

Page | 12
}
}
}
class ONGOLE extends APK
{
public void ongole()
{
int k;
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
k=b.nextInt();
switch(k)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF ONGOLE IS : 25.00 km^2");
System.out.println("POPULATION OF ONGOLE is : 204,746");
System.out.println("LOCATED IN DISTRICT : PRAKASAM");
System.out.println("ELEVATION : 20m (70 ft)");
System.out.println("LITERACY : 83.04 %");
System.out.println("REGION: ANDHRA");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("Chennakesava Swamy Temple");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("Mallavaram Dam");
System.out.println("Chandavaram Excavation Site");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;

Page | 13
}
}
}
class RAJAHMUNDRY extends APK
{
public void rajahmundry()
{
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
int v;
v=b.nextInt();
switch(v)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF RAJAHMUNDRY IS : 44.50 km^2 ");
System.out.println("POPULATION OF RAJAHMUNDRY is : 341,831");
System.out.println("LOCATED IN DISTRICT : EAST GODAVARI");
System.out.println("ELEVATION : 14m (46 ft)");
System.out.println("LITERACY : 84.12%");
System.out.println("REGION: ANDHRA");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("ISKCON Rajahmundry, Sri Sri Radha Gopinath Temple");
System.out.println("Adurru");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println("Godavari Bridge");
System.out.println("Royal Park");
System.out.println("Pushkar Ghat");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");

Page | 14
System.out.println("---------------------------------------");
break;
}
}
}
class VIJAYAWADA extends APK
{
public void vijayawada()
{
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
int l;
l=b.nextInt();
switch(l)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF VIJAYAWADA IS : 61.88 km^2");
System.out.println("POPULATION OF VIJAYAWADA : 1,476,931");
System.out.println("LOCATED IN DISTRICT :KRISHNA");
System.out.println("ELEVATION : 23 m (75 ft)");
System.out.println("LITERACY : 81.24 %");
System.out.println("REGION: ANDHRA");
System.out.println("MAYOR: KONERU SRIDHAR");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("KANAKADURGA TEMPLE");
System.out.println("MACHAVARAM HANUMAN TEMPLE");
System.out.println("Sri Ramalingeswara Swami Vari Devasthanam");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");
System.out.println(" PVP SQUARE ");
System.out.println(" LEPL ICON ");
System.out.println("Bhavani Island Resort");
System.out.println("Prakasam Barrage");

Page | 15
System.out.println("ISKCON Vijayawada");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}
}
class TENALI extends APK
{
public void tenali()
{
System.out.println("____________________________________________________________
_");
System.out.println("1.CITY NORMAL INFORMATION ,2.PILIGRIMIC PLACE,3.FUN
SPORTS");
System.out.println("____________________________________________________________
_");
int m;
m=b.nextInt();
switch(m)
{
case 1:
System.out.println(" CITY NORMAL INFORMATION:");
System.out.println("---------------------------------------");
System.out.println("AREA OF TENALI IS : 16.58 km^2");
System.out.println("POPULATION OF TENALI : 164,937");
System.out.println("LOCATED IN DISTRICT :GUNTUR");
System.out.println("ELEVATION : 15m (49 ft)");
System.out.println("LITERACY : 82.75%");
System.out.println("REGION: ANDHRA");
System.out.println("Chairperson: K.Tulasi Das");
System.out.println("---------------------------------------");
break;
case 2:
System.out.println(" PILIGRIMIC PLACE:");
System.out.println("---------------------------------------");
System.out.println("VYKUNTAPURAM");
System.out.println("---------------------------------------");
break;
case 3:
System.out.println(" FUN SPORTS:");
System.out.println("---------------------------------------");

Page | 16
System.out.println("CHINARAVURU PARK");
System.out.println("Uppalapadu Bird Sanctuary");
System.out.println("---------------------------------------");
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}
}
class And
{
public static void main(String [] args)
{
Scanner a=new Scanner(System.in);
int i;
System.out.println("____________________________________________________________
_");
System.out.println(" ENTER THE NUMBER WHICH CITY INFORMATION REQUIRED
FOR YOU");
System.out.println(" 1.GUNTUR,2.VIZAG,3.KAKINADA");
System.out.println(" 4.TRIUPATI,5.CHITTOOR,6.ONGOLE");
System.out.println(" 7.RAJAHMUNDRY,8.VIJAYAWADA,9.TENALI");
System.out.println("____________________________________________________________
_");
APK ab=new APK();
GUNTUR ab1=new GUNTUR();
VIJAYAWADA ab8=new VIJAYAWADA();
TENALI ab9=new TENALI();
RAJAHMUNDRY ab7=new RAJAHMUNDRY();
ONGOLE ab6=new ONGOLE();
CHITTOOR ab5=new CHITTOOR();
TIRUPATHI ab4=new TIRUPATHI();
KAKINADA ab3=new KAKINADA();
VIZAG ab2=new VIZAG();
i=a.nextInt();
switch(i)
{
case 1:
ab1.guntur();
break;
case 2:
ab2.vizag();
break;

Page | 17
case 3:
ab3.kakinada();
break;
case 4:
ab4.tirupathi();
break;
case 5:
ab5.chittoor();
break;
case 6:
ab6.ongole();
break;
case 7:
ab7.rajahmundry();
break;
case 8:
ab8.vijayawada();
break;
case 9:
ab9.tenali();
break;
default :
System.out.println("---------------------------------------");
System.out.println("THIS KEY IS NOT AVILABLE:SORRY ");
System.out.println("---------------------------------------");
break;
}
}
}

Page | 18
OUTPUT:

Page | 19
CONCLUSION:
The program first displays the list of the cities along with a number for the user to choose from.
Then the program takes a number of datatype “integer” as input using Scanner and displays the
information corresponding to the city that is assigned the number. The program makes use of the
Scanner class and switch case to display the information. There are nine cases in total for the
nine cities. Thus the AP cities information system helps the user to know the details of the city
by selecting it from the menu.

Page | 20

You might also like