You are on page 1of 13

import java.io.

*;
class FinalProject
{
int room, people, bed;
double total;
public static void main(String args[])throws IOException
{
//Introduction to the choices available.
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
//Creating object
FinalProject obj=new FinalProject();
//Prompting user
System.out.println("Please Maximize the Terminal Window! :)");
System.out.println();
System.out.println("WELCOME TO TAKE ME SOMEWHERE!");
System.out.println();
System.out.println("Are you ready for an unforgettable holiday experience? If yes,
this is exactly what you needed.\n'Let Me Take You Somewhere' arranges for your
stay in different parts of the world. \nSo you do not have to be tensed about the
arrangements in a foreign land! \nAll you need to do is give us your details, reach
the airport and we'll take care of the rest!");
System.out.println("|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^| ||\n|......LETS GO!.......|
||'|'';;, ___.\n|_..._..._______===|=||_|__|..., ] -\n''(@)'(@)''''''''**|(@)
(@)*****''(@) ");
System.out.println();
System.out.println("Would like a Tourism Package for tourism WITHIN INDIA or
OUTSIDE INDIA? For Within India Enter 1 and for outside India Enter 2...");
//Accepting the choice of user
int tourchoice=Integer.parseInt(br.readLine());
System.out.println("\f");
if(tourchoice==1)
{
//Displaying the menu
System.out.println("Packages Available For Cities Within India Are:\n1: Deccan
India Package\n\n2: Coastal India Package\n\n3: Northern India Package");
System.out.println("Choose Your Package");
int insidechoice=Integer.parseInt(br.readLine());
switch(insidechoice)
{
case 1:
obj.deccanPack(); //Using object to invoke various methods
break;
case 2:
obj.coastalPack();
break;
case 3:
obj.northernPack();
break;
default:
System.out.println("You have entered an invalid number...");
System.out.println("Please close the terminal window and run the program again!");
System.out.println("Please note only choices 1, 2 and 3 are available");
System.out.println("\f");
}
}
else if(tourchoice==2)
{
//Displaying the menu
System.out.println("Where would you like to go?\n1:South Africa \n2:Australia
\n3:Europe\n4:Eastern Asia");
System.out.println("Enter your choice");
int outsidechoice=Integer.parseInt(br.readLine());
switch(outsidechoice)
{
// Using objects to invoke different packages of foreign tours
case 1:
obj.southAfPack();
break;
case 2:
obj.aussiePack();
break;
case 3:
obj.euroPack();
break;
case 4:
obj.eastAsiaPack();
break;
default:
System.out.println("You have entered an invalid number...");
System.out.println("Please close the terminal window and run the program again!");
System.out.println("Please note only choices 1, 2, 3 and 4 are available");
System.out.println("\f");
}
}
else
{
//error correction
System.out.println("Please Enter a VALID choice. Only 1 and 2 choices are excepted!
:)\n Now please run the program again to continue...");
System.out.println("\f");
}
}
//Deccan package function
public void deccanPack()throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
//Menu display
System.out.println("\f");
System.out.println("\nYou have chosen the Deccan India Tourism Package");
System.out.println("Rooms available are as folllows :");
System.out.println("1:Standard (Non-Ac)\n Rs.13999/- only \n\n2: Deluxe (Ac +
Dining area)\n Rs.17999/- only \n\n3: Suite(Ac + Dining Area + Living Area)\n
Rs.21999/- only");
System.out.println("\n*Terms and conditions apply");
System.out.println("\n********************PLEASE NOTE:*********************");
System.out.println(" Each room accomodates only 2 people. Any extra members will be
charged Rs.1000/- per head");

System.out.println("\nEnter the choice of your room");


room=Integer.parseInt(br.readLine());

System.out.println("***************************************************************
**************************************************************************");
System.out.println();
switch(room)
{
case 1:
System.out.println("Enter the number of people");
people=Integer.parseInt(br.readLine());
if(people>2)
{
System.out.println("Do you require extra beds? If yes please enter 'Yes' and if no
please enter 'No'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
System.out.println("Enter the number of beds required");
bed=Integer.parseInt(br.readLine());
int bedcost=bed*1000;
int extrapeople=(people-2)*1000;
total=13999+bedcost+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.13999/-\nYour extra bed charges for " + bed
+ " bed/beds are: Rs." + bedcost + "/-\nYour charges due to
extra number of people are: Rs."+ extrapeople + "/-\nThus your Total room charges
are: Rs." + total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-");
}
else if(str.equalsIgnoreCase("No"))
{
int extrapeople=(people-2)*1000;
total=13999+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.13999/-\nYour charges due to extra number of
people are: Rs."+ extrapeople + "/-\nThus your Total room charges are: Rs." + total
+
"/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-");
}
}
else if(people<=2)
{

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Charges are: Rs.13999/- \n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*");
}
System.out.println("ENJOY YOUR STAY! VISIT US AGAIN TO PLAN ANOTHER TRIP :D");

break;

case 2:
System.out.println("Enter the number of people");
people=Integer.parseInt(br.readLine());
if(people>2)
{
System.out.println("Do you require extra beds? If so please enter 'Yes', if no
please enter 'No'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
System.out.println("Enter the number of beds required");
bed=Integer.parseInt(br.readLine());
int bedcost=bed*1000;
int extrapeople=(people-2)*1000;
total=17999+bedcost+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.17999/-\nYour extra bed charges for " + bed
+ " bed/beds are: Rs." + bedcost + "/-\nYour charges due to
extra number of people are: Rs."+ extrapeople + "/-\nThus your Total room charges
are: Rs." + total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-");
}
else if(str.equalsIgnoreCase("No"))
{
int extrapeople=(people-2)*1000;
total=17999+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.17999/-\nYour charges due to extra number of
people are: Rs."+ extrapeople + "/-\nThus your Total room charges are: Rs." + total
+ "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-");
}
}
else if(people<=2)
{

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Charges are: Rs.17999/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*");
}
System.out.println("ENJOY YOUR STAY! VISIT US AGAIN TO PLAN ANOTHER TRIP :D");

break;

case 3:
System.out.println("Enter the number of people");
people=Integer.parseInt(br.readLine());
if(people>2)
{
System.out.println("Do you require extra beds? If so please enter 'Yes', if no
please enter 'No'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
System.out.println("Enter the number of beds required");
bed=Integer.parseInt(br.readLine());
int bedcost=bed*1000;
int extrapeople=(people-2)*1000;
total=21999+bedcost+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.21999/-\nYour extra bed charges for " + bed
+ " bed/beds are: Rs." + bedcost + "/-\nYour charges due to
extra number of people are: Rs."+ extrapeople + "/-\nThus your Total room charges
are: Rs." + total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-");
}
else if(str.equalsIgnoreCase("No"))
{
int extrapeople=(people-2)*1000;
total=21999+extrapeople;
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.21999/-\nYour charges due to extra number of
people are: Rs."+ extrapeople + "/-\nThus your Total room charges are: Rs." + total
+
"/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-");
}
else if(people<=2)
{

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-\nYour Total Charges are: 21999/-\n*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
}
System.out.println("ENJOY YOUR STAY! VISIT US AGAIN TO PLAN ANOTHER TRIP :D");

}
}
}
// Coastal package function
public void coastalPack()throws IOException
{
BufferedReader br= new BufferedReader(new
InputStreamReader(System.in));
//Menu display
System.out.println("\f");
System.out.println("***************************************************************
*\nWelcome to the COASTAL INDIA TOURISM!!");
System.out.println("We have packages for the following destinations: \n 1: Goa \n
2: Mumbai \n 3: Kerala");
System.out.println("Enter your choice");
int insidechoice=Integer.parseInt(br.readLine());
if (insidechoice==1)
{
//Goa package
System.out.println("\f");
System.out.println("Destination : GOA ");
System.out.println("Accomodation : CASA DE GOA ");
System.out.println("Enter the number of days you wish to stay");
int days =Integer.parseInt(br.readLine());
System.out.println("Enter the number of people");
people=Integer.parseInt(br.readLine());
System.out.println("These are the rooms available:-");
System.out.println("1: Standard (Non-AC) \t Rs.5999 \n 2: Deluxe (AC room) \t
Rs.7999 \n 3:Suite (dining+living+AC room) \t Rs.10000");
System.out.println();

System.out.println("The above charges include: \n *Free wifi facility \n *24 hours


running water \n *Breakfast is complementary \n *The charges applied include free
water skiing for l!! \n * Check out time - before 12:00 pm \n * Inclusive of all
taxes");
System.out.println("The room charges are only for 2 people .Any extra members will
be charged Rs.1500 extra per head.The cost of extra bed is Rs.800");

System.out.println("Enter the choice of your room");


room=Integer.parseInt(br.readLine());

System.out.println("Enter the number of extra beds required");


System.out.println("Enter 0 if you don't require any extra bed!");
bed=Integer.parseInt(br.readLine());

if (room==1)
total=(days*5999) + ((people-2)*1500) + (bed*800);
else if(room==2)
total=days*7999 + ((people-2)*1500) + (bed*800);
else if(room==3)
total=days*10000 + ((people-2)*1500) + (bed *800);
else
{
System.out.println("Please enter valid choices only...Now you must run the program
again to continue...");
System.out.println("\f");
}

System.out.println("The total cost is :Rs." +total);


System.out.println("Thank You!! Visit Us Again To Plan Another Awesome
Vacation!!!\n**********************************************************************
*");
}

else if (insidechoice==2)
{
//Mumbai package
System.out.println("\f");
System.out.println("Destination : MUMBAI");
System.out.println("Accomodation : TAJ HOTEL ");
System.out.println("Enter the number of days you wish to stay");
int days =Integer.parseInt(br.readLine());

System.out.println("Enter the number of people");


people=Integer.parseInt(br.readLine());

System.out.println("These are the rooms available:-");


System.out.println("1: Standard (Non-AC) \t Rs.4999 \n 2: Deluxe (AC room) \t
Rs.6999 \n 3:Suite (dining+living+AC rooms) \t Rs.8999");

System.out.println("The above charges include: \n *Free wifi facility \n *24 hours


running water \n *Breakfast is complementary \n *The charges applied include free
tickets to Esseln * Check out time - before 12:00 pm \n * Inclusive of all taxes");
System.out.println("The room charges are only for 2 people .Any extra members will
be charged Rs.1500 extra.The cost of extra bed is Rs.800");

System.out.println(" Enter the choice of your room");


room=Integer.parseInt(br.readLine());

System.out.println("Enter the number of extra beds required");


System.out.println("Enter 0 if you don't require any extra bed!");
bed=Integer.parseInt(br.readLine());

if (room==1)
total=days*4999 + ((people-2)*1500) + (bed*800);
else if(room==2)
total=days*6999 + ((people-2)*1500) + (bed*800);
else if(room==3)
total=days*8999 + ((people-2)*1500) + (bed *800);
else
{
System.out.println("Please enter only valid choices..Now you must run the program
again...");
System.out.println("\f");
}
System.out.println("The total cost is :Rs." +total);
System.out.println("Thank You !! Visit
Again !!:D\n**********************************************************************"
);
}
else if (insidechoice==3)
{
//Kerala package
System.out.println("\f");
System.out.println("Destination : KERALA ");
System.out.println("Accomodation : KOVALAM BEACH RESORT ");
System.out.println("Enter the number of days you wish to stay");
int days =Integer.parseInt(br.readLine());

System.out.println("Enter the number of people");


people=Integer.parseInt(br.readLine());

System.out.println("These are the rooms available:-");


System.out.println("1: Standard (non-AC) \t Rs.5999 \n 2: Delux (AC room) \t
Rs.7999 \n 3:Suite (dining+living+AC rooms) \t Rs.8999");

System.out.println("The above charges include: \n *Free wifi facility \n *24 hours


running water \n *Breakfast is complementary \n *The charges applied includes free
water skiing for all!! \n * Check out time - before 12:00 pm \n * Inclusive of all
taxes");
System.out.println("The room charges are only for 2 people .Any extra members will
be charged Rs.1500 extra.The cost of extra bed is Rs.800");

System.out.println(" Enter the choice of your room");


room=Integer.parseInt(br.readLine());

System.out.println("Enter the number of extra beds required");


System.out.println("Enter 0 if you don't require any extra bed!");
bed=Integer.parseInt(br.readLine());

if (room==1)
total=5999 + ((people-2)*1500) + (bed*800);
else if(room==2)
total=6999 + ((people-2)*1500) + (bed*800);
else if(room==3)
total=8999 + ((people-2)*1500) + (bed *800);
else
{
System.out.println("Please enter valid choices only...Now you must run the program
again...");
System.out.println("\f");
}
System.out.println("The total cost is :Rs." +total);
System.out.println("Thank You !! Visit Again!!
:D\n****************************************************************************");
}

}
//Northern India Package
public void northernPack()throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
//Menu display
System.out.println("\f");
System.out.println("\nYou have chosen the Northern India Tourism Package");
System.out.println("Rooms available are as follows:-");
System.out.println("1:Standard (non-Ac)\nRs.7999/- only \n\n2: Deluxe (Ac + Dining
area)\n Rs.11999/- only \n\n3: Suite(Ac + Dining Area + Living Area)\n Rs.14999/-
only");
System.out.println("\n*Terms and conditions apply");
System.out.println("\n********************PLEASE NOTE:*********************");
System.out.println(" Each room accomodates only 2 people. Any more extra members
will be charged Rs.1000/- per head");
System.out.println(" Extra Bed is available at request for Rs.1000/- only \n * WIFI
FACILITY IS AVAIABLE FOR FREE \n * 24-Hour running water \n * The checkout time is
Before 12 P.M.");

System.out.println(" \nEnter the choice of your room");


room=Integer.parseInt(br.readLine());

System.out.println("Enter the number of people");


people=Integer.parseInt(br.readLine());

System.out.println("***************************************************************
**************************************************************************");
System.out.println();

switch(room)
{
case 1:
if(people>2)
{
System.out.println("Do you require extra beds? If so please enter 'Yes', if no
please enter 'No'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
System.out.println("Enter the number of beds required");
bed=Integer.parseInt(br.readLine());
int bedcost=bed*1000;
int extrapeople=(people-2)*1000;
total=7999+bedcost+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.7999/-\nYour extra bed charges for " + bed
+ " bed/beds are: Rs." + bedcost + "/-\nYour charges due to
extra number of people are: Rs."+ extrapeople + "/-\nThus your Total room charges
are: Rs." + total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-");
}
else if(str.equalsIgnoreCase("No"))
{
int extrapeople=(people-2)*1000;
total=7999+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.7999/-\nYour charges due to extra number of
people are: Rs."+ extrapeople + "/-\nThus your Total room charges are: Rs."
+ total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-");
}
}
else if(people<=2)
{

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-\nYour Total Charges are: 7999/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
}
break;

case 2:
if(people>2)
{
System.out.println("Do you require extra beds? If so please enter 'Yes', if no
please enter 'no'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
System.out.println("Enter the number of beds required");
bed=Integer.parseInt(br.readLine());
int bedcost=bed*1000;
int extrapeople=(people-2)*1000;
total=11999+bedcost+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.11999/-\nYour extra bed charges for " + bed
+ " bed/beds are: Rs." + bedcost + "/-\nYour charges dude
to extra number of people are: Rs."+ extrapeople + "/-\nThus your Total room
charges are: Rs." + total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-");
}
else if(str.equalsIgnoreCase("No"))
{
int extrapeople=(people-2)*1000;
total=11999+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.11999/-\nYour charges due to extra number of
people are: Rs."+ extrapeople + "/-\nThus your Total room charges are: Rs." + total
+ "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-");
}
}
else if(people<=2)
{

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-\nYour Total Charges are: 11999/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
}
break;

case 3:
if(people>2)
{
System.out.println("Do you require extra beds? If so please enter 'Yes' If no
please enter 'no'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
System.out.println("Enter the number of beds required");
bed=Integer.parseInt(br.readLine());
int bedcost=bed*1000;
int extrapeople=(people-2)*1000;
total=14999+bedcost+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-\nYour Total Room charges are: Rs.14999/-\nYour extra bed
charges for " + bed + " bed/beds are: Rs." + bedcost + "/-\nYour charges due to
extra number of people are: Rs."+ extrapeople + "/-\nThus your Total room charges
are: Rs." + total + "/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-");
}
else if(str.equals("no")||str.equals("no"))
{
int extrapeople=(people-2)*1000;
total=14999+extrapeople;

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-\nYour Total Room charges are: Rs.14999/-\nYour charges due to extra number of
people are: Rs."+ extrapeople + "/-\nThus your Total room charges are: Rs." + total
+
"/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-");
}
}
else if(people<=2)
{

System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-\nYour Total Charges are: 14999/-\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
}
break;
}
}
//South Africa Package function
public void southAfPack()throws IOException
{
BufferedReader br= new BufferedReader(new
InputStreamReader(System.in));
//Menu display
System.out.println("\f");
System.out.println("***************************************************************
*\nYou have chosen SOUTH AFRICA TOUR PACKAGE ");
System.out.println("Accomodation : PROTEA HOTELS ");
System.out.println("Your tour will be of 19 days");

System.out.println("The itinerary is as follows:");


System.out.println(" Cape Town - 5 days");
System.out.println(" Knysna � 2 days");
System.out.println(" Durban - 4 days");
System.out.println(" Sun City - 2 days");
System.out.println(" Mabula - 2 days");
System.out.println(" Johannesburg -4 days");
System.out.println();
System.out.println("The cost is Rs.1,24,000 per person for adults; Rs.99,000 for
children(5 years to 13 years old) and children below the age of 5 are not
charged");
System.out.println();

System.out.println("* The above charges are inclusive of all taxes.");


System.out.println("* Local sight seeing charges are inclusive !");
System.out.println();

System.out.println("Enter the number of adults( 13 years + )");


int adults=Integer.parseInt(br.readLine());

System.out.println("Enter the number of children ( above the age of 5 and below the
age of 13 )");
int kids =Integer.parseInt(br.readLine());

total+= (adults*124000) + (kids*99000);

System.out.println("Your total cost for the whole trip for "+ adults+" adults and
"+kids+" children is : Rs. "+total);
System.out.println("Wish you a very Happy Journey !! Hope you have an amazing
experience travelling with us!! Thankyou !!");
System.out.println("Do Visit Us Again To Plan Another Trip! :D
\n***********************************************************************");
}
//Australia package function
public void aussiePack()throws IOException
{
BufferedReader br= new BufferedReader(new
InputStreamReader(System.in));
//Menu display
System.out.println("\f");
System.out.println("***************************************************************
********\nWelcome to AUSTRALIA TOURISM PACKAGE");
System.out.println("Accomodation : Marriott Hotel (7 stars)");
System.out.println("Your tour will be of 21 days!");

System.out.println("The itinerary is as follows:");


System.out.println("Sydney- 4 days");
System.out.println("Brsbane- 3 days");
System.out.println("Melborne- 3 days");
System.out.println("Canberra- 3 days");
System.out.println("Adelaide- 2 days");
System.out.println("Hobart- 2 days");
System.out.println("Perth- 2 days");
System.out.println("Darwin- 2 days");
System.out.println();

System.out.println(" The cost is Rs.1,68,000 per person for adults and 1,36,000 per
head for chilren( above the age of 5 and below the age of 13) .Chilren below the
age of 5 are not charged.");
System.out.println();
System.out.println("* The above charges are inclusive of all taxes \n * Local sight
seeing charges are inclusive in the package amount. ");
System.out.println();

System.out.println("Enter the number of adults ( 13 years + )");


int adults=Integer.parseInt(br.readLine());
System.out.println("Enter the number of children ( above the age of 5 and below the
age of 13 )");
int kids=Integer.parseInt(br.readLine());

total=(adults*168000) + (kids*136000);
System.out.println(" Your total cost for the whole trip for "+adults+ " adults and
"+kids+" children is Rs."+total);
System.out.println("Wish you a very Happy Journey !! Hope you have an amazing
experience travelling with us!!
Thankyou!!\n****************************************************************");
}
//European package function
public void euroPack()throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
//Menu display
System.out.println("Enter number of people");

people=Integer.parseInt(br.readLine());
System.out.println("**************************************************\nYou have
chosen Europe Tourism Package.\nThis is a 7 days' and 6 nights' tour of Italy,
France, Venice and Florence");
System.out.println("The Royal Houseguards hotel room charges are as follows:-
\n\n1:Standard\n--(AC room with double bed)\n--Cost:Rs.13999.0/- only per night");
System.out.println("\n2:Deluxe\n--(AC room+dining area)\n--Cost:Rs.15999.0/- only
per night\n\n3:Suite\n--(AC room+dining area+living room)\n--Cost:Rs.17999.0/- only
per night");
System.out.println("\nPlease make sure to check out before 12pm");
System.out.println("Extra single beds can be bought for Rs.1999/- per bed");
System.out.println("Do you require an extra bed? Enter 'Yes' for YES and 'No' for
NO...");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
bed=1999;
System.out.println("How many extra beds would you like?");
int extra=Integer.parseInt(br.readLine());
bed=bed*extra;
}

System.out.println("How many standard rooms would you like to book?");


int stan=Integer.parseInt(br.readLine());
System.out.println("How many deluxe rooms would you like to book?");
int delu=Integer.parseInt(br.readLine());
System.out.println("How many suites would you like to book?");
int sui=Integer.parseInt(br.readLine());
double hotel, tour=15999.0;
System.out.println("\f");
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
hotel=(((stan*13999)+(delu*15999)+(sui*17999))*6)+bed;
System.out.println("Your hotel charges are: Rs."+hotel+"\nAnd your tour charges
are: Rs."+tour+"\n\nThus, your total bill is: Rs."+(hotel+tour));
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
System.out.println("ENJOY YOUR TRIP!! VISIT US AGAIN TO BOOK MORE EXCITING TOURISM
PACKAGES!!!");

}
//Eastern Asia package function
public void eastAsiaPack()throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
//Menu display
System.out.println("\f");

System.out.println("***********************************************************\nYo
u have chosen Eastern Tourism Package.\nThis is a tour of Hong Kong, Japan and
China for 6 days and 5 nights");
System.out.println("The Hotel Nikko room charges are as follows:\n\n1:Standard\n--
(AC room)\n--Cost:Rs.3999/- only per night");
System.out.println("\n2:Deluxe\n--(AC room+dining area)\n--Cost:Rs.5999.0/- only
per night\n\n3:Suite\n--(AC room+dining area+living room)\n--Cost:Rs.7999.0/- only
per night");
System.out.println("\nCheck out timings: Before 12pm");
System.out.println("Extra single beds can be bought for Rs.800/- per bed");
System.out.println("Do you require an extra bed? Enter 'Yes' for YES and 'No' for
NO Enter 'No'");
String str=br.readLine();
if(str.equalsIgnoreCase("Yes"))
{
bed=1999;
System.out.println("How many extra beds would you like?");
int extra=Integer.parseInt(br.readLine());
bed=bed*extra;
}

System.out.println("How many standard rooms would you like to book?");


int stan=Integer.parseInt(br.readLine());
System.out.println("How many deluxe rooms would you like to book?");
int delu=Integer.parseInt(br.readLine());
System.out.println("How many suites would you like to book?");
int sui=Integer.parseInt(br.readLine());
double hotel, tour=6999.0;
System.out.println("\f");
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
hotel=(((stan*3999)+(delu*5999)+(sui*7999))*5)+bed;
System.out.println("Your hotel charges are: Rs."+hotel+"\nAnd your tour charges
are: Rs."+tour+"\n\nThus your total bill is: Rs."+(hotel+tour));
System.out.println("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
System.out.println("ENJOY YOUR TRIP!! VISIT US AGAIN TO BOOK MORE EXCITING TOURISM
PACKAGES!!!\n*************************************************************");
}
}

You might also like