You are on page 1of 43

USCSP603 TOURISM APPLICATION Roll no:25

PROJECT REPORT ON

TOURISM APPLICATION

(UNDER THE PARTIAL FULFILMENT OF B.Sc. DEGREE COURSE IN


COMPUTER SCIENCE )

SUBMITTED BY:

Mr/Miss. Venkatesh Nadar

Guided by

Mr/Mrs.Saloni Bhushan

Mr/Mrs.Rajesh Yadav

DEPARTMENT OF COMPUTER SCIENCE

V.K.K MENON COLLEGE OF COMMERCEAND ECONOMICS

&

SHARAD SHANKAR DIGH COLLEGE OF SCIENCE

BHANDUP (EAST), MUMBAI-400042

UNIVERSITY OF MUMBAI

2021-2022

Dept.of CS VKKM 2021-22 Page 1


USCSP603 TOURISM APPLICATION Roll no:25

CERTIFICATE
V.K KRISHNA MENON COLLEGE OF COMMERCE AND
ECONOMICS AND
SHARAD SHANKAR DIGHE COLLEGE OF SCIENCE
BHANDUP EAST, MUMBAI - 400042

This is to certify that Mr/Miss VENKATESH NADAR_______________________


Seat No _____25__________ has successfully completed the PROJECT titled TOURISM
APP___________________________________________________________________
for partial fulfillment of Bachelor of Computer Science (SEM-V) of University of Mumbai in
academic year 2020 -2021 under the guidance of

___________________________________
_____________________________________
_____________________________________

DATE: HEAD OF THE DEPARTMENT

PROJECT GUIDE EXAMINER

INDEX

Dept.of CS VKKM 2021-22 Page 2


USCSP603 TOURISM APPLICATION Roll no:25

Sr No. Topics Page No.


1 ACKNOLEDGEMENT 03

2 OVERVIEW 5-7
ABSTRACT 8-10
UNDERTAKING 11-15
OBJECTIVE
INTRODUCTION
REQUIREMENT SPECIFICATION
FEASIBILITY STUDY
3 SYSTEM DESIGN
ER DAIGRAM
ACTIVITY DAIGRAM
SEQUENCE DAIGRAM
4 CODE IMPLEMENTATION 16-20
5 RESULT 21-25
TABLE 26-29
SCREENSHOT 30-36

6 FUTURESCOPE 37-72
7 REFERENCE AND BIBLIOGRAPHY 73-110

Dept.of CS VKKM 2021-22 Page 3


USCSP603 TOURISM APPLICATION Roll no:25

ACKNOWLEDGEMENT
It gives a great pleasure and pride as I presented my project on “TripoTripy Travels”.
I would like to take this opportunity to express a deep sense of thanks &gratitude to my
project guide Dr Saloni Bhusan & Mr Rajesh Yadav for guiding me immensely through
the course of project They always evinced keen interest in my work. Their constructive
advice and constant motivation have been responsible for the completion of my project, Last
but not the least, I would like to thank my family and friends for encouragement and support
they have given me during the course of time

Dept.of CS VKKM 2021-22 Page 4


USCSP603 TOURISM APPLICATION Roll no:25

OVERVIEW
Trip Planning has always been a primitive part of any journey and often seen to be messed up
with when the travelers, themselves try to plan their trips which not only wrests most of their
time but also self-handling accommodation and other responsibilities doesn’t let them enjoy
Nirvana of the place.
Here is where comes “TripoTripyTravels”, we at TripoTripyTravels not only help you with
planning your trip but also provide you with an Itinerary which sets you free of your Planning
responsibilities and lets you enjoy your Vacation without worrying for Hotels and bookings.
Users can book their trips within just a few clicks.
The Application been developed upon Java for making the interface user friendly. Also
recognizing current social media trends .The logic and Data support is provided by Java and
Mysql for making the Application more responsive and elegant.

Dept.of CS VKKM 2021-22 Page 5


USCSP603 TOURISM APPLICATION Roll no:25

ABSTRACT
Tours and travel is a project where a user may search and apply for a package. The system
allows the user to check various tours packages and choose his package accordingly. The
software system checks for user choice and then queries the database for various available
packages to that destination. The system then loads all that data and puts those choices in
front of the user. The user can now choose various packages as per his desire. When the user
chooses the type of package option, the system also allows the user to book the package of
the destination for the desire date. Thus this software system automates the working of a
travel agency and allows users to check and book his holidays online through this
Application. This system also helps to keep the records of the tour agent.

Dept.of CS VKKM 2021-22 Page 6


USCSP603 TOURISM APPLICATION Roll no:25

UNDERTAKING

This is to declare that the project entitled “TRIPOTRIPY TRAVELS” is an original work
done by the undersigned, in partial fulfilment of the requirement for the degree “Bachelor of
Science in Computer Science ” at CS Department, V. K. Krishna Menon College. All the
analysis design and System developed have been accomplished by the undersigned.
Moreover, this project has not been submitted to any other College or University.

Dept.of CS VKKM 2021-22 Page 7


USCSP603 TOURISM APPLICATION Roll no:25

OBJECTIVES

Accommodation: i.e. hotels, bed & breakfasts, guest houses, self-catering/serviced


apartments, camping and home stay

 Transport services: e.g. rail, road, water, air networks and rental
 Guided tours and tourist guides: Travel agencies and other reservation services,
including tour operators and destination management companies (see travel trade
section)
 Cultural services: e.g. museums, attractions
 Sports and recreational activities: river drafting
 Retail

Dept.of CS VKKM 2021-22 Page 8


USCSP603 TOURISM APPLICATION Roll no:25

INTRODUCTION
The most important part of the Online tours and travel project is its tour packages and
customization. The database consists of a list of tours and their packages. The system
promises to build 3 different areas for demonstrating its functionality appropriately. Our
proposed system will consist of a user registration and login module for new users to register
and login to the system. The user may then view various tours packages available. Users may
choose the destination and package as and when needed. The user can plan and book a fully
customizable trip with various packages available. After successful booking user can make
payment via a demo credit card. These are different modules or the functions which we are
going to use in our project. So it’s convenient for the user to use the proposed system without
confusion. And the modules are as follows:
 User Registration and login: User has to first create an account in the system by
registering themselves and then can login into the system for accessing the services.
 Tour Package selection: It has three packages for all tours that include stay, food and
travelling and user may select any one of them according to the kind of facility they
want.
 Credit Card Payment: They can make payment online via credit card.

Dept.of CS VKKM 2021-22 Page 9


USCSP603 TOURISM APPLICATION Roll no:25

REQUIREMENT SPECIFICATION
Hardware and Software Requirements
Hardware Requirements
Processor : Intel(R) Pentium(R) CPU N3540 @ 2.16GHz, 2159 Mhz, 4 Core(s),
4 Logical Processor(s)
Installed Physical Memory (RAM) :2.00 GB
Hard disk :256 GB
Software Requirements
Operating System : Windows 10
Front End : XML
Back End : Java

Dept.of CS VKKM 2021-22 Page 10


USCSP603 TOURISM APPLICATION Roll no:25

FEASIBILITY STUDY
Feasibility analysis is an important phase in Software development process. It enables the
developer to have an assessment of the product being developed. Feasibility study should be
performed on the basis of various criteria and parameters. The various feasibility studies are:
▪ Economic Feasibility. ▪ Operational Feasibility. ▪ Technical Feasibility.
1. Economical Feasibility: It refers to the benefits or outcomes we are deriving from the
product as compared to the total cost we are spending for developing the product. If the
benefits are more or less same as older system then it is not feasible to develop the product.
2. Operational Feasibility: It refers to the feasibility of the product to be operational. Some
products may work very well at design and implementation but may fail in real time
environment. It includes study of additional human resource required and their technical
expertise.
3. Technical Feasibility: A technical feasibility study assesses the details of how you intend
to deliver a product or service to customers. Think materials, labor, transportation, where
your business will be located, and the technology that will be necessary to bring all this
together.

ER DAIGRAM: -

Dept.of CS VKKM 2021-22 Page 11


USCSP603 TOURISM APPLICATION Roll no:25

ACTIVITY DAIGRAM: -

Dept.of CS VKKM 2021-22 Page 12


USCSP603 TOURISM APPLICATION Roll no:25

Sequence diagram:

Dept.of CS VKKM 2021-22 Page 13


USCSP603 TOURISM APPLICATION Roll no:25

Dept.of CS VKKM 2021-22 Page 14


USCSP603 TOURISM APPLICATION Roll no:25

CODE IMPLEMENTATION

1. RegisterActivity.java

package com.example.myproject;

import androidx.annotation.NonNull;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.text.TextUtils;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.ProgressBar;

import android.widget.TextView;

import android.widget.Toast;

import com.google.android.gms.tasks.OnCompleteListener;

import com.google.android.gms.tasks.Task;

import com.google.firebase.auth.AuthResult;

import com.google.firebase.auth.FirebaseAuth;

public class RegisterActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_register);

EditText inputname=findViewById(R.id.email);

EditText inputemail=findViewById(R.id.inputEmail);

Dept.of CS VKKM 2021-22 Page 15


USCSP603 TOURISM APPLICATION Roll no:25

EditText inputpassword=findViewById(R.id.inputpassword);

EditText phonenumber=findViewById(R.id.inputphone);

TextView btn=findViewById(R.id.alreadyhaveaccount);

Button register=findViewById(R.id.inputregister);

ProgressBar progressbar=findViewById(R.id.progressBar);

FirebaseAuth fAuth=FirebaseAuth.getInstance();

if (fAuth.getCurrentUser() !=null){

startActivity(new Intent(RegisterActivity.this,HomeActivity.class));

finish();

register.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

String email= inputemail.getText().toString().trim();

String password= inputpassword.getText().toString().trim();

if(TextUtils.isEmpty(email)){

inputemail.setError("Email is Required.");

return;

if(TextUtils.isEmpty(password)){

inputpassword.setError("Email is Required.");

return;

if(password.length() < 6){

inputpassword.setError("Password Must be >=6 Characters");

Dept.of CS VKKM 2021-22 Page 16


USCSP603 TOURISM APPLICATION Roll no:25

return;

progressbar.setVisibility(View.VISIBLE);

fAuth.createUserWithEmailAndPassword(email,password).addOnCompleteListener(new
OnCompleteListener<AuthResult>() {

@Override

public void onComplete(@NonNull Task<AuthResult> task) {

if(task.isSuccessful()){

Toast.makeText(RegisterActivity.this,"User Regitered
Successfully.",Toast.LENGTH_SHORT).show();

startActivity(new Intent(RegisterActivity.this,HomeActivity.class));

}else{

Toast.makeText(RegisterActivity.this,"Error!"+task.getException().getMessage(),Toast.L
ENGTH_SHORT).show();

});

});

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(RegisterActivity.this,LoginActivity.class));

});}}

Dept.of CS VKKM 2021-22 Page 17


USCSP603 TOURISM APPLICATION Roll no:25

2. LoginActivity.java

package com.example.myproject;

import androidx.annotation.NonNull;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.text.TextUtils;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.ProgressBar;

import android.widget.TextView;

import android.widget.Toast;

import com.google.android.gms.tasks.OnCompleteListener;

import com.google.android.gms.tasks.Task;

import com.google.firebase.auth.AuthResult;

import com.google.firebase.auth.FirebaseAuth;

public class LoginActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_login);

EditText email=findViewById(R.id.email);

Button login=findViewById(R.id.inputlogin);

EditText pass=findViewById(R.id.inputpassword);

Dept.of CS VKKM 2021-22 Page 18


USCSP603 TOURISM APPLICATION Roll no:25

ProgressBar progress=findViewById(R.id.progressBar2);

FirebaseAuth fAuth=FirebaseAuth.getInstance();

TextView btn=findViewById(R.id.inputSignup);

login.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

String memail = email.getText().toString().trim();

String mpassword = pass.getText().toString().trim();

if (TextUtils.isEmpty(memail)) {

email.setError("Email is Required.");

return;

if (TextUtils.isEmpty(mpassword)) {

pass.setError("Email is Required.");

return;

if (mpassword.length() < 6) {

pass.setError("Password Must be >=6 Characters");

return;

progress.setVisibility(View.VISIBLE);

fAuth.signInWithEmailAndPassword(memail,
mpassword).addOnCompleteListener(new OnCompleteListener<AuthResult>() {

@Override

public void onComplete(@NonNull Task<AuthResult> task) {

if (task.isSuccessful()) {
Dept.of CS VKKM 2021-22 Page 19
USCSP603 TOURISM APPLICATION Roll no:25

Toast.makeText(LoginActivity.this, "User Login Successfully.",


Toast.LENGTH_SHORT).show();

startActivity(new Intent(getApplicationContext(), HomeActivity.class));

} else {

Toast.makeText(LoginActivity.this, "Error!" +
task.getException().getMessage(), Toast.LENGTH_SHORT).show();

});

});

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(LoginActivity.this,RegisterActivity.class));

});

3. HomeActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

Dept.of CS VKKM 2021-22 Page 20


USCSP603 TOURISM APPLICATION Roll no:25

public class HomeActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_home);

Button him=findViewById(R.id.himachal);

him.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,HimachalActivity.class));

});

Button ker=findViewById(R.id.kerela);

ker.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,KerelaActivity.class));

});

Button utt=findViewById(R.id.uttar);

utt.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,UttarActivity.class));

Dept.of CS VKKM 2021-22 Page 21


USCSP603 TOURISM APPLICATION Roll no:25

});

Button ban=findViewById(R.id.banglore);

ban.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,BangloreActivity.class));

});

Button sik=findViewById(R.id.sikkim);

sik.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,Sikkim.class));

});

Button rajas=findViewById(R.id.rajasthan);

rajas.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,RajasthanActivity.class));

});

Button kedar=findViewById(R.id.kedarnath);

kedar.setOnClickListener(new View.OnClickListener() {

@Override

Dept.of CS VKKM 2021-22 Page 22


USCSP603 TOURISM APPLICATION Roll no:25

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,KedarnathActivity.class));

});

Button in=findViewById(R.id.inter);

in.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HomeActivity.this,InternationActivity.class));

});

4. BangloreActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class BangloreActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_banglore);

Dept.of CS VKKM 2021-22 Page 23


USCSP603 TOURISM APPLICATION Roll no:25

Button ban=findViewById(R.id.btnban);

ban.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(BangloreActivity.this,Banbook.class));

});

5. UttarActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class UttarActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_uttar);

6. Sikkim.java

package com.example.myproject;

Dept.of CS VKKM 2021-22 Page 24


USCSP603 TOURISM APPLICATION Roll no:25

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class Sikkim extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_sikkim);

7. RajasthanActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class RajasthanActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_rajasthan);

Dept.of CS VKKM 2021-22 Page 25


USCSP603 TOURISM APPLICATION Roll no:25

8. KerelaActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class KerelaActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_kerela);

9. InternationActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class InternationActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

Dept.of CS VKKM 2021-22 Page 26


USCSP603 TOURISM APPLICATION Roll no:25

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_internation);

10. HimachalActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class HimachalActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_himachal);

Button him=findViewById(R.id.btnhim);

him.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

startActivity(new Intent(HimachalActivity.this,BookingActivity.class));

});

Dept.of CS VKKM 2021-22 Page 27


USCSP603 TOURISM APPLICATION Roll no:25

11. KedarnathActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

public class KedarnathActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_kedarnath);

12. Banbook.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

import com.google.auto.value.AutoValue;

public class Banbook extends AppCompatActivity {

Dept.of CS VKKM 2021-22 Page 28


USCSP603 TOURISM APPLICATION Roll no:25

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_banbook);

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.banperson);

Button btn=findViewById(R.id.pay);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*40000;

Toast.makeText(Banbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

startActivity(new Intent(Banbook.this,PaymentActivity.class));

});

13. BookingActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;
Dept.of CS VKKM 2021-22 Page 29
USCSP603 TOURISM APPLICATION Roll no:25

import android.widget.EditText;

import android.widget.Toast;

public class BookingActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_booking);

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.himperson);

Button btn=findViewById(R.id.pay);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*7777;

Toast.makeText(BookingActivity.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

});

14. Kedbook.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
Dept.of CS VKKM 2021-22 Page 30
USCSP603 TOURISM APPLICATION Roll no:25

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class Kedbook extends AppCompatActivity {

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.kedperson);

Button btn=findViewById(R.id.pay);

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_kedbook);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*14000;

Toast.makeText(Kedbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

});

15. Interbook.java

package com.example.myproject;
Dept.of CS VKKM 2021-22 Page 31
USCSP603 TOURISM APPLICATION Roll no:25

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class Interbook extends AppCompatActivity {

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.interperson);

Button btn=findViewById(R.id.pay);

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_interbook);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*70000;

Toast.makeText(Interbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

});

}
Dept.of CS VKKM 2021-22 Page 32
USCSP603 TOURISM APPLICATION Roll no:25

16. Uttarbook.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class Uttarbook extends AppCompatActivity {

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.uttperson);

Button btn=findViewById(R.id.pay);

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_uttarbook);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*15000;

Toast.makeText(Uttarbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

});
Dept.of CS VKKM 2021-22 Page 33
USCSP603 TOURISM APPLICATION Roll no:25

17. Sikbook.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class Sikbook extends AppCompatActivity {

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.sikperson);

Button btn=findViewById(R.id.pay);

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_sikbook);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*12000;

Toast.makeText(Sikbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();
Dept.of CS VKKM 2021-22 Page 34
USCSP603 TOURISM APPLICATION Roll no:25

});

18. Rajbook.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class Rajasbook extends AppCompatActivity {

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.rajperson);

Button btn=findViewById(R.id.pay);

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_rajasbook);

btn.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

Dept.of CS VKKM 2021-22 Page 35


USCSP603 TOURISM APPLICATION Roll no:25

int price=person*17000;

Toast.makeText(Rajasbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

});

19. Kerbook.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.Toast;

public class Kerbook extends AppCompatActivity {

EditText name=findViewById(R.id.nm);

EditText age=findViewById(R.id.age);

EditText nmper=findViewById(R.id.kerperson);

Button btn=findViewById(R.id.pay);

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_ker_book);

btn.setOnClickListener(new View.OnClickListener() {

@Override
Dept.of CS VKKM 2021-22 Page 36
USCSP603 TOURISM APPLICATION Roll no:25

public void onClick(View v) {

int person=Integer.parseInt(nmper.getText().toString().trim());

int price=person*20000;

Toast.makeText(Kerbook.this,"Total
Price :"+price,Toast.LENGTH_SHORT).show();

});

20. PaymentActivity.java

package com.example.myproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.Toast;

public class PaymentActivity extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_payment);

Button pay=findViewById(R.id.payment);

pay.setOnClickListener(new View.OnClickListener() {

@Override

public void onClick(View v) {


Dept.of CS VKKM 2021-22 Page 37
USCSP603 TOURISM APPLICATION Roll no:25

Toast.makeText(PaymentActivity.this,"YOUR PAYMENT IS
SUCCESSFULLY DONE!",Toast.LENGTH_SHORT).show();

});

Dept.of CS VKKM 2021-22 Page 38


USCSP603 TOURISM APPLICATION Roll no:25

RESULT

TABLE

Dept.of CS VKKM 2021-22 Page 39


USCSP603 TOURISM APPLICATION Roll no:25

SCREENSHOT

Dept.of CS VKKM 2021-22 Page 40


USCSP603 TOURISM APPLICATION Roll no:25

Dept.of CS VKKM 2021-22 Page 41


USCSP603 TOURISM APPLICATION Roll no:25

Dept.of CS VKKM 2021-22 Page 42


USCSP603 TOURISM APPLICATION Roll no:25

REFERENCE AND BIBLIOGRAPHY


 www.youtube.com
 www.getbootstrp.com
 www.mihirtourism.com
 www.google.com

Dept.of CS VKKM 2021-22 Page 43

You might also like