[go: up one dir, main page]

75% found this document useful (4 votes)
2K views51 pages

ICSE Computer Project

This document describes a Java program that simulates an online shopping application. The program allows the user to shop for computers, laptops, mobile phones, clothing, and children's items from different categories. For each category, the program lists the available products with their prices. It prompts the user to select an item and quantity and calculates the total cost added to the shopping cart. The program uses loops and conditional statements to display options and process the user input.

Uploaded by

Manish Agarwal
Copyright
© Attribution Non-Commercial (BY-NC)
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
75% found this document useful (4 votes)
2K views51 pages

ICSE Computer Project

This document describes a Java program that simulates an online shopping application. The program allows the user to shop for computers, laptops, mobile phones, clothing, and children's items from different categories. For each category, the program lists the available products with their prices. It prompts the user to select an item and quantity and calculates the total cost added to the shopping cart. The program uses loops and conditional statements to display options and process the user input.

Uploaded by

Manish Agarwal
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 51

ICSE COMPUTER APPLICATIONS BLUEJ PROJECT BY

WWW.THEEXAMPAPERS.COM written by Chirag


Agarwal

import java.io.*;
import java.util.*;
class ares
{

double cart;

void flo() throws Exception


{
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
String flch,num,choice;
int ch,n;

do{
System.out.println("** WELCOME TO Lenovo Computers **");
System.out.println("\n ************************\n\t1. Lenovo 3000
H10053118BQ Desktop
Computer\n*********************************************\n\t2. Lenovo 3000
H10053118AQ Desktop
Computer\n*********************************************\n\t3. Lenovo 3000
H10053119AQ Desktop Computer");
System.out.println("********************************\n\t4. Lenovo 3000
N2000769A29
Notebook\n**************************************************\n\t5. Lenovo
3000 N1000768HBQ
Notebook\n**************************************************\n\t6. Lenovo
3000 N1000689A65
Notebook\n**************************************************\n\t7. Lenovo
3000 N1000689AQ1 Notebook");
System.out.println("Type the number 1/2/3/4/5/6/7 to indicate the choice of
Laptop you intend to buy..");
flch=buf.readLine();
ch=Integer.parseInt(flch);
System.out.println("Type the number of Computers/Laptops you intend to buy of
the above choice...");
num=buf.readLine();
n=Integer.parseInt(num);
if(ch==1)
{
System.out.println("Each Lenovo 3000 H10053118BQ Desktop Computer cost
Rs. 20,250");
System.out.println("you pay Rs. "+(n*20250)+" for the Lenovo 3000
H10053118BQ Desktop Computer(s)");
cart=n*20250;
}
else if(ch==2)
{
System.out.println("Each Lenovo 3000 H10053118AQ Desktop Computer
cost Rs. 21,750");
System.out.println("you pay Rs. "+(n*21750)+" for the Desktop
Computer(s)");
cart=n*21750;
}

else if(ch==3)
{
System.out.println("Each Lenovo 3000 H10053119AQ Desktop Computer cost
Rs. 22,250");
System.out.println("you pay Rs. "+(n*22250)+" for the Desktop
Computer(s)");
cart=n*22250;
}
else if(ch==4)
{
System.out.println("Each Lenovo 3000 N2000769A29 Notebook cost Rs.
34,990");
System.out.println("you pay Rs. "+(n*34990)+" for the Notebook)");
cart=n*34990;
}
else if(ch==5)
{
System.out.println("Each Lenovo 3000 N1000768HBQ Notebook cost Rs.
38,500");
System.out.println("you pay Rs. "+(n*38500)+" for the Notebook");
cart=n*38500;
}
else if(ch==6)
{
System.out.println("Each Lenovo 3000 N1000689A65 Notebook cost Rs.
52,000");
System.out.println("you pay Rs. "+(n*52000)+" for the Notebook");
cart=n*52000;
}
else if(ch==7)
{
System.out.println("Each Lenovo 3000 N1000689AQ1 Notebook cost Rs.
52,000");
System.out.println("you pay Rs. "+(n*52000)+" for the Notebook");
cart=n*52000;
}

else

System.out.println(" ********** SORRY !!! **********\n\t The Lenovo


Product(s) ordered by you are not available. ");
System.out.println("Type 'c' to continue buying the Desktops/Notebooks......");

choice=buf.readLine();

}while(choice.equalsIgnoreCase("c"));

void mobilestore() throws Exception


{
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
String flch,num,choice;
int ch,n;

do{
System.out.println("** WELCOME TO THE NOKIA GALLERY**");
System.out.println("\n ************************\n\t1. Nokia
2310\n*********************************************\n\t2. Nokia 3110
classic\n*********************************************\n\t3. Nokia 5070");
System.out.println("********************************\n\t4. Nokia
5300\n**************************************************\n\t5. Nokia
7610\n**************************************************\n\t6. Nokia N73
M\n**************************************************\n\t7. Nokia N93i");
System.out.println("Type the number 1/2/3/4/5/6/7 to indicate the choice of Nokia
Handset you intend to buy..");
flch=buf.readLine();
ch=Integer.parseInt(flch);
System.out.println("Type the number of Nokia Handsets you intend to buy of the
above choice...");
num=buf.readLine();
n=Integer.parseInt(num);
if(ch==1)
{
System.out.println("Each Nokia 2310 cost Rs. 3115");
System.out.println("You pay Rs. "+(n*3115)+" for the Handset(s)");
cart=n*3115;
}
else if(ch==2)
{
System.out.println("Each Nokia 3110 classic cost Rs. 4250");
System.out.println("You pay Rs. "+(n*4250)+" for the Handset(s)(s)");
cart=n*4250;
}

else if(ch==3)
{
System.out.println("Each Nokia 5070 cost Rs. 6250");
System.out.println("You pay Rs. "+(n*6250)+" for the Handset(s)");
cart=n*6250;
}
else if(ch==4)
{
System.out.println("Each Nokia 5300 cost Rs. 6500");
System.out.println("You pay Rs. "+(n*6500)+" for the Handset(s)");
cart=n*6500;
}
else if(ch==5)
{
System.out.println("Each Nokia 7610 cost Rs. 9500");
System.out.println("You pay Rs. "+(n*9500)+" for the Handset(s)");
cart=n*9500;
}
else if(ch==6)
{
System.out.println("Each Nokia N73 M (2GB Memory Card Free) cost Rs.
15500");
System.out.println("You pay Rs. "+(n*15500)+" for the Handset(s)");
cart=n*15500;
}
else if(ch==7)
{
System.out.println("Each Nokia N93i cost Rs. 32000");
System.out.println("You pay Rs. "+(n*32000)+" for the Desktop
Computer(s)");
cart=n*32000;
}

else
System.out.println(" ********** SORRY !!! **********\n\t The Nokia
Product(s) ordered by you are not available. ");
System.out.println("Type 'c' to continue buying Nokia Handsets......");

choice=buf.readLine();

}while(choice.equalsIgnoreCase("c"));

}
void clothesrack() throws Exception
{
BufferedReader buf=new BufferedReader(new
InputStreamReader(System.in));
String chc,num,choice;
int ch,n,i;
char sz;
do{
System.out.println("WELCOME TO THE LEGANZA SHOWROOM");
System.out.println("\n***************************\n\t 1.DARK
BLUE JEANS\n***************************\n\t 2.LIGHT BLUE
JEANS\n***************************\n\t 3.BLACK
\n***************************\n\t 4.BROWN");
System.out.println("\n \n 15% discount on shirts \n 30% discount on
trousers");
System.out.println("Each item will cost you Rs.699");
System.out.println("Type the number that indicates your choice of item to
buy 1/2/3/4/5");
chc=buf.readLine();
ch=Integer.parseInt(chc);
switch(ch)
{
case 1:
case 2:
case 3:
case 4:
case 5:
System.out.println("Enter the number of items you want: ");
num=buf.readLine();
n=Integer.parseInt(num);
for(i=1;i<=n;i++)
{
System.out.println("Enter the waist length: ");
String w=buf.readLine();
System.out.println("The item has been added to your shopping cart");
cart=cart+699;
}
break;
default: System.out.println("The choice entered is incorrect");
}
System.out.println("Type 'cont' to continue shopping in the Leganza
Showroom");
choice=buf.readLine();
}while(choice.equalsIgnoreCase("cont"));
}

void kids() throws Exception


{
BufferedReader buf=new BufferedReader(new
InputStreamReader(System.in));
String chc,num,choice,d,chhh;
int ch,n,i,j;
double cost=0;
char sz;

System.out.println("WELCOME TO KIDS CORNER");


do{
System.out.println("We have the following sections in our store: ");
System.out.println("**** 1.INFANTS (0 TO 1 YR.)****\n**** 2.KIDS
(2 TO 12 YRS.)****\n****3.TEEN AGERS(13 TO 19 YRS.)****");
System.out.println("Enter the section in which you would like to shop: ");
chc=buf.readLine();
ch=Integer.parseInt(chc);

switch(ch)
{
case 1:
do{
System.out.println("******* WELCOME TO INFANTS SECTION
OF KIDS CORNER *******");
System.out.println("1. BATTERTY OPERATED TOYS \n\t 2.
MANUALLY OPERATED TOYS \n\t 3.STROLLER \n\t 4.PREM \n\t 5.CRIB \n\t
6.CAPS");
System.out.println("Type the number corresponding to the item that
you want to shop..");
d=buf.readLine();
j=Integer.parseInt(d);
switch(j)
{
case 1:cost=350;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;

break;
case 2:cost=250;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 3:cost=2500;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 4:cost=2000;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..
TheExamPapers.com ");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 5:cost=1800;
System.out.println("Each Article will cost you Rs. "+cost);
System.out.println("Enter the number of items to buy..");
num=buf.readLine();
n=Integer.parseInt(num);
cart=n*cost;
break;
case 6:cost=50;break;

default: System.out.println("Sorry the item with this number


doesn't exist!!!");
}

System.out.println("Type 'cont' to continue shopping in the infants


section...");
chhh=buf.readLine();
}while(chhh.equalsIgnoreCase("cont"));
break;
case 2:
do{
System.out.println("****** WELCOME TO THE KIDS
SECTION OF THE KIDS CORNER ******");
System.out.println("\t1. BATTERY OPERATED TOYS \n\t 2.
REMOTE CONTROLLED TOYS \n\t 3. LUNCH BOX \n\t 4. WATER BOTTLE \n\t 5.
SCHOOL BAGS \n\t 6. STORY BOOKS");

System.out.println("Type the number corresponding to the item


that you want to shop..");
d=buf.readLine();
j=Integer.parseInt(d);
switch(j)
{
case 1: cost=350;break;
case 2: cost=555;break;
case 3: cost=35;break;
case 4: cost=75;break;
case 5: cost=200;break;
case 6: cost=155;break;

default: System.out.println("Sorry the item with this number


doesn't exist!!!");
}
System.out.println("Enter the number of items you want to
buy..");
num=buf.readLine();
System.out.println("Your items have been added to your
shopping cart.");
n=Integer.parseInt(num);
cart=n*cost;
System.out.println("Type 'cont' to continue shopping in the Kids
section...");
chhh=buf.readLine();
}while(chhh.equalsIgnoreCase("cont"));
break;

case 3:
do{
System.out.println("WELCOME TO THE TEENAGERS
SECTION OF KIDS CORNER...");

System.out.println("\t1. Play Station 2 \n\t2. Play Station 3\n\t3.


Incoming Mobile Phone(Motorola 1010)\n\t4. MP4 Player");
System.out.println("Type the number corresponding to the item
that you want to shop..");
d=buf.readLine();
j=Integer.parseInt(d);
switch(j)
{
case 1: cost=8500;break;
case 2: cost=30000;break;
case 3: cost=1000;break;
case 4: cost=2400;break;
default: System.out.println("Sorry the item with this number
doesn't exist!!!");
}
System.out.println("Enter the number of items you want to
buy..");
num=buf.readLine();
System.out.println("Your items have been added to the shopping
cart");
n=Integer.parseInt(num);
cart=n*cost;
System.out.println("Type 'cont' to continue shopping in the Teen
Ager Section of Kids Corner..");
chhh=buf.readLine();
}while(chhh.equalsIgnoreCase("cont"));
break;

default: System.out.println("Invalid choice");


}
System.out.println("Type 'c' to continue shopping in the Kids
Corner...");
chhh=buf.readLine();
}while(chhh.equalsIgnoreCase("c"));
}

public void airtravels() throws IOException


{
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(ir);
int trip,dest,amd,snum,start;
String name,sur,add,p1,m1,date,choice;
do{
System.out.println("Jet Airways");
System.out.println("Enter the following details for your trip");
//Starts the detail acception

System.out.println("$$$$$$$$$$ Welcome to Online Booking of Jet Airways


$$$$$$$$$$");
System.out.println("Enter the Details to book tickets");
System.out.println("From:");
System.out.println("1.Ahmedabad Term IA");
System.out.println("2.Bhopal");
System.out.println("3.Chandigarh");
System.out.println("4.Delhi");
System.out.println("5.Mumbai Term IB");
System.out.println("6.Coimbatore");

start=Integer.parseInt(br.readLine());
//details for destination

if(start==1)
{

System.out.println("To:");

System.out.println("1.Bhopal");
System.out.println("2.Chandigarh");
System.out.println("3.Delhi");
System.out.println("4.Mumbai Term IB");
System.out.println("5.Coimbatore");

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

if(amd==1) //Ahmedabad to Bhopal


{
System.out.println("Departure: Ahmedabad Term IA");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 6.00 hrs");
System.out.println("Arrival: 7.30 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.4250");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.5800");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=5800*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4001");
System.out.println("Departure: Ahmedabad");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 6.00AM");
System.out.println("Arrival Time: 7.30AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==2) //Ahmedabad to Chandigarh
{

System.out.println("Departure: Ahmedabad Term IA");


System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 4.30 hrs");
System.out.println("Arrival: 6.30 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.5100");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.6650");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=6650*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4002");
System.out.println("Departure: Ahmedabad");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 4.30AM");
System.out.println("Arrival Time: 6.30AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==3) //Ahmedabad to Delhi
{
System.out.println("Departure: Ahmedabad Term IA");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 8.30 hrs");
System.out.println("Arrival: 10.00 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.5000");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.6550");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=6550*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4003");
System.out.println("Departure: Ahmedabad");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 8.30AM");
System.out.println("Arrival Time: 10.00AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==4) //Ahmedabad to Mumbai Term IB
{
System.out.println("Departure: Ahmedabad Term IA");
System.out.println("Arrival: Mumbai Term IB");
System.out.println("Departure Time: 12.30 hrs");
System.out.println("Arrival: 13.15 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.1500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.3050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=3050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4004");
System.out.println("Departure: Ahmedabad");
System.out.println("Arrival: Mumbai Term IB");
System.out.println("Departure Time: 12.30PM");
System.out.println("Arrival Time: 13.15PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==5) //Ahmedabad to Coimbatore
{
System.out.println("Departure: Ahmedabad Term IA");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 8.30 hrs");
System.out.println("Arrival: 10.30 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.3500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.5050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: TheExamPapers.com
");
snum=Integer.parseInt(br.readLine());
cart=5050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4005");
System.out.println("Departure: Ahmedabad");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 8.30AM");
System.out.println("Arrival Time: 10.30AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else
System.out.println("The choice entered is invalid");
}//end of Ahmedabad Departure

else if(start==2) //Departure Bhopal


{
System.out.println("To:");
System.out.println("1.Ahmedabad Term IA");
System.out.println("2.Chandigarh");
System.out.println("3.Delhi");
System.out.println("4.Mumbai Term IB");
System.out.println("5.Coimbatore");
amd=Integer.parseInt(br.readLine());

if(amd==1) //Bhopal to Ahmedabad


{
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 7.30 hrs");
System.out.println("Arrival: 9.00 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.4250");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.5800");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=5800*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4001");
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 7.30AM");
System.out.println("Arrival Time: 9.00AM TheExamPapers.com");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==2) //Bhopal to Chandigarh
{
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 17.30 hrs");
System.out.println("Arrival: 18.45 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.3300");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.4850");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=4850*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4006");
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 5.30PM");
System.out.println("Arrival Time: 6.45PM");
System.out.println("Seat No. will be given at the time of Security Check");
}

else if(amd==3) //Bhopal to Delhi


{
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 2200 hrs");
System.out.println("Arrival: 2245 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.1000");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.2550");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=2550*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4007");
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 10.00PM");
System.out.println("Arrival Time: 10.45PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==4) //Bhopal to Mumbai Term IA
{
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Mumbai");
System.out.println("Departure Time: 0200 hrs");
System.out.println("Arrival: 0315 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.2500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.4050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=4050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4008");
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Mumbai");
System.out.println("Departure Time: 02.00AM");
System.out.println("Arrival Time: 03.15AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==5) //Bhopal to Coimbatore
{
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 1630 hrs");
System.out.println("Arrival: 1830 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.6500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.8050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=8050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4009");
System.out.println("Departure: Bhopal");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 4.30 PM");
System.out.println("Arrival Time: 6.30 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else
System.out.println("The choice entered is invalid");
}//end of Bhopal Departure
else if(start==3)
{
System.out.println("To: ");
System.out.println("1.Ahmedabad Term IA");
System.out.println("2.Bhopal");
System.out.println("3.Delhi");
System.out.println("4.Mumbai Term IB");
System.out.println("5.Coimbatore");
amd=Integer.parseInt(br.readLine());
if(amd==1)//Chandi to Ahmedabad
{

System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 1845 hrs");
System.out.println("Arrival: 2045 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.5100");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.6650");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=6650*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4002");
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 6.30 PM");
System.out.println("Arrival Time: 8.30 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==2) //Chandigarh to Bhopal
{
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 1845 hrs");
System.out.println("Arrival: 2015 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.3300");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.4850");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=4850*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4006");
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 6.45 PM");
System.out.println("Arrival Time: 8.15 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==3)// Chandigarh to Delhi
{
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 1500 hrs");
System.out.println("Arrival: 1600 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.2200");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.3750");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=3750*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4010");
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 3.00 PM");
System.out.println("Arrival Time: 4.00 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==4)//Chandigarh to Mumbai
{
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Mumbai");
System.out.println("Departure Time: 1430 hrs");
System.out.println("Arrival: 1600 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.3200");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.4750");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=4750*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4011");
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Mumbai Term IB");
System.out.println("Departure Time: 2.30 PM");
System.out.println("Arrival Time: 4.00 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==5) //Chandigarh to Coimbatore
{
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 1230 hrs");
System.out.println("Arrival: 1500 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.7200");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.8750");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=8750*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4012");
System.out.println("Departure: Chandigarh");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 12.30 PM");
System.out.println("Arrival Time: 3.00 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else
System.out.println("The choice entered is invalid");
}//end of Chandigarh Depart
else if(start==4)//Delhi Departure
{
System.out.println("To: ");
System.out.println("1.Ahmedabad Term IA");
System.out.println("2.Bhopal");
System.out.println("3.Chandigarh");
System.out.println("4.Mumbai Term IB");
System.out.println("5.Coimbatore");
amd=Integer.parseInt(br.readLine());

if(amd==1)//Delhi to Ahmedabad
{
System.out.println("Departure: Delhi");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 1000 hrs");
System.out.println("Arrival: 1130 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.5000");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.6550");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=6550*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4003");
System.out.println("Departure: Delhi");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 10.00AM");
System.out.println("Arrival Time: 11.30AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==2)//Delhi to Bhopal
{

System.out.println("Departure: Delhi");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 2300 hrs");
System.out.println("Arrival: 2345 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.1000");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.2550");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=2550*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4007");
System.out.println("Departure: Delhi");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 11.00PM");
System.out.println("Arrival Time: 11.45PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==3)//Delhi to Chandigarh
{
System.out.println("Departure: Delhi");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 1630 hrs");
System.out.println("Arrival: 1730 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.2200");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.3750");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=3750*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4010");
System.out.println("Departure: Delhi");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 4.30 PM");
System.out.println("Arrival Time: 5.30 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==4)//Delhi to Mumbai
{
System.out.println("Departure: Delhi");
System.out.println("Arrival: Mumbai");
System.out.println("Departure Time: 1100 hrs");
System.out.println("Arrival: 1300 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.5800");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.7350");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=7350*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4013");
System.out.println("Departure: Delhi");
System.out.println("Arrival: Mumbai Term IB");
System.out.println("Departure Time: 11.00 AM");
System.out.println("Arrival Time: 01.00 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==5)//Delhi to Coimbatore
{
System.out.println("Departure: Delhi");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 1630 hrs");
System.out.println("Arrival: 1930 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.7800");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.9350");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=9350*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4014");
System.out.println("Departure: Delhi");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 4.30 PM");
System.out.println("Arrival Time: 7.30 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else
System.out.println("The choice entered is invalid");
}//end of Delhi Depart
else if(start==5)// Mumbai Depart
{
System.out.println("To: ");
System.out.println("1.Ahmedabad Term IA");
System.out.println("2.Bhopal");
System.out.println("3.Chandigarh");
System.out.println("4.Delhi");
System.out.println("5.Coimbatore");
amd=Integer.parseInt(br.readLine());

if(amd==1)//Mumbai to Ahmedabad
{
System.out.println("Departure: Mumbai Term IB");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 13.30 hrs");
System.out.println("Arrival: 14.15 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.1500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.3050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=3050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4004");
System.out.println("Departure: Mumbai Term IB");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 01.30 PM");
System.out.println("Arrival Time: 02.15PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==2)//Mumbai to Bhopal
{
System.out.println("Departure: Mumbai");
System.out.println("Arrival: Bhopa");
System.out.println("Departure Time: 0330 hrs");
System.out.println("Arrival: 0415 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.2500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.4050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=4050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4008");
System.out.println("Departure: Mumbai Term IA");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 01.30AM");
System.out.println("Arrival Time: 02.15AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==3)//Mumbai to Chandigarh
{
System.out.println("Departure: Mumbai");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 1615 hrs");
System.out.println("Arrival: 1745 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.3200");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.4750");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=4750*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4011");
System.out.println("Departure: Mumbai Term IB");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 4.15 PM");
System.out.println("Arrival Time: 5.45 PM");
System.out.println("Seat No. will be given at the time of Security Check");

}
else if(amd==4)//Mumbai to Delhi
{
System.out.println("Departure: Mumbai");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 1330 hrs");
System.out.println("Arrival: 1530 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.5800");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.7350");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=7350*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4013");
System.out.println("Departure: Mumbai");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 01.30 PM");
System.out.println("Arrival Time: 03.30 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==5)//Mumbai to Coimbatore
{

System.out.println("Departure: Mumbai");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 0700 hrs");
System.out.println("Arrival: 0900 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.6100");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.7650");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=7650*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4015");
System.out.println("Departure: Mumbai");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 07.00 AM");
System.out.println("Arrival Time: 09.00 AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else
System.out.println("The choice entered is invalid");
}//end of Mumbai Depart
else if(start==6)
{

System.out.println("To: ");
System.out.println("1.Ahmedabad Term IA");
System.out.println("2.Bhopal");
System.out.println("3.Chandigarh");
System.out.println("4.Delhi");
System.out.println("5.Mumbai");
amd=Integer.parseInt(br.readLine());

if(amd==1)//Coimb to Ahmed
{
System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 1045 hrs");
System.out.println("Arrival: 1245 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.3500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.5050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=5050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4005");
System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Ahmedabad Term IA");
System.out.println("Departure Time: 10.45 AM");
System.out.println("Arrival Time: 12.45 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==2)//Coimbatore to Bhopal
{

System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 1845 hrs");
System.out.println("Arrival: 2045 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.6500");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.8050");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=8050*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4009");
System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Bhopal");
System.out.println("Departure Time: 6.45 PM");
System.out.println("Arrival Time: 8.45 PM");
System.out.println("Seat No. will be given at the time of Security Check");

}
else if(amd==3)//Coim to Chandigarh
{
System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 1530 hrs");
System.out.println("Arrival: 1900 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.7200");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.8750");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=8750*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4012");
System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Chandigarh");
System.out.println("Departure Time: 03.30 PM");
System.out.println("Arrival Time: 07.00 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==4)//Coimb to Delhi
{
System.out.println("Departure: Delhi");
System.out.println("Arrival: Coimbatore");
System.out.println("Departure Time: 2000 hrs");
System.out.println("Arrival: 2300 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.7800");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.9350");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=9350*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4014");
System.out.println("Departure: Coimatore");
System.out.println("Arrival: Delhi");
System.out.println("Departure Time: 8.00 PM");
System.out.println("Arrival Time: 11.00 PM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else if(amd==5)//Coimb to Mumbai
{

System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Mumbai");
System.out.println("Departure Time: 0930 hrs");
System.out.println("Arrival: 1130 hrs");
System.out.println("Price Details: ");
System.out.println("Fare Charges: Rs.6100");
System.out.println("Tax+Fuel Surcharges: Rs.1550");
System.out.println("Total price per ticket: Rs.7650");
System.out.println("Enter following details");
System.out.println("Name: ");
name=br.readLine();
System.out.println("Surname: ");
sur=br.readLine();
System.out.println("Address: ");
add=br.readLine();
System.out.println("Phone No.(Res): ");
p1=br.readLine();
System.out.println("Phone No.(Mobile): ");
m1=br.readLine();
System.out.println("Enter Date: ");
date=br.readLine();
System.out.println("Enter Number of Seats Required: ");
snum=Integer.parseInt(br.readLine());
cart=7650*snum;
System.out.println("Total price for "+snum+" tickets is Rs. "+cart);
System.out.println("Ticket details is as follows: \n");
System.out.println("********* Jet Airways The Ultimate Experience
**********");
System.out.println("Name: "+name);
System.out.println("Surname: "+sur);
System.out.println("Address: "+add);
System.out.println("Contact Details: ");
System.out.println("Phone No.(Res): "+p1);
System.out.println("Phone No.(Mobile): "+m1);
System.out.println("Flight Details: \n");
System.out.println("Date: "+date);
System.out.println("Flight No. J4015");
System.out.println("Departure: Coimbatore");
System.out.println("Arrival: Mumbai");
System.out.println("Departure Time: 09.30 AM");
System.out.println("Arrival Time: 11.30 AM");
System.out.println("Seat No. will be given at the time of Security Check");
}
else
System.out.println("The choice entered is invalid");
}
System.out.println("\n TICKETS ARE AVAILABLE AS PER SUBJECT TO
AVAILABILITY. TICKET FARE IS STRICTLY NON-REFUNDABLE. WE ARE NOT
RESPONSIBLE FOR DELAY OF FLIGHT DUE TO BAD WEATHER.");
System.out.println("PLEASE CARRY A PHOTO IDENTITY OF NAME BY
WHICH THE TICKET/S ARE REGISTERED WHILE COLLECTING ORIGINAL
COPY OF TICKET AT AIRPORT.");
System.out.println("LUGGAGE ALLOWANCE IS 80 Kg PER PERSON AND
Rs.75 EXTRA PER Kg. OF LOAD. ");
System.out.println("VEG/NON-VEG MEAL IS AVAILABLE IN FLIGHT
WITHOUT ANY EXTRA CHARGES.");
System.out.println("TV PER FLIER IS AVAILABLE WITH
HEADPHONES(CAN BE CARRIED HOME) WITH FULL FLEDGE INCLINATION
ENABLED SEATS");
System.out.println("SECURITY CHECK WILL CLOSE 15 MINUTES BEFORE
TAKE OFF");
System.out.println();
System.out.println("Type 'c' to continue buying Jet Airways Air Tickets......");

choice=br.readLine();
}while(choice.equalsIgnoreCase("c"));

public void movie() throws Exception


{

int ch;
String date,day,t1,t2,t3,choice;
int time,seat,cart,rate;
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br1=new BufferedReader(ir);
BufferedReader br=new BufferedReader(ir);
do{
System.out.println("********** Welcome To CineOasis Multiplex **********");
System.out.println("\n");
System.out.println("Enter the choice of Movie: ");

do{

System.out.println("1. Om Shanti Om");


System.out.println("2. Sawariya");
System.out.println("3. Jab We Met");

ch=Integer.parseInt(br1.readLine());

}while(ch<1 || ch>3);

// Movie 1
if(ch==1)
{

System.out.println("Om Shanti Om");

System.out.println("Enter Show Date in ddmm format: ");


date=br1.readLine();
System.out.println("Show Time: 3:00PM");
System.out.println("Ticket Rates");
System.out.println("1. Box Office Rs.200/ticket Seat No. 1-20");
System.out.println("2. Balcony Rs.150/ticket Seat No. 21-40");
System.out.println("3. General Rs.100/ticket Seat No.41-80");
rate=Integer.parseInt(br1.readLine());
if(rate==1)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>20)
{
System.out.println("Only 20 seats Available");
System.out.println("Press 1 to continue buying tickets or 0 to exit");
int c1=Integer.parseInt(br1.readLine());
if(c1==1)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
cart=seat*200;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Om Shanti Om");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: Box Office");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
else
{
System.exit(0);
}

}
else
{
cart=seat*200;
System.out.println("********** CineOasis Multiplex(Kandivli(E))
**********");
System.out.println("Om Shanti Om");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: Box Office");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else if(rate==2)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>20)
{
System.out.println("Only 20 seats Available");

}
else
{
cart=seat*150;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Om Shanti Om");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: Balcony");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else if(rate==3)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>40)
{
System.out.println("Only 40 seats Available");

}
else
{
cart=seat*100;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Om Shanti Om");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: General");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else
System.out.println("Wrong Value Entered");
}

//Movie 2
else if(ch==2)
{
System.out.println("Sawariya");
System.out.println("Enter Show Date in ddmm format: ");
date=br1.readLine();
System.out.println("Show Time: 12:00PM");
System.out.println("Ticket Rates");
System.out.println("1. Box Office Rs.200/ticket Seat No. 1-20");
System.out.println("2. Balcony Rs.150/ticket Seat No. 21-40");
System.out.println("3. General Rs.100/ticket Seat No.41-80");
rate=Integer.parseInt(br1.readLine());
if(rate==1)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>20)
{
System.out.println("Only 20 seats Available");

}
else
{
cart=seat*200;
System.out.println("********** CineOasis Multiplex(Kandivli(E))
**********");
System.out.println("Sawariya");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: Box Office");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else if(rate==2)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>20)
{
System.out.println("Only 20 seats Available");

}
else
{
cart=seat*150;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Sawariya");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: Balcony");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else if(rate==3)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>40)
{
System.out.println("Only 40 seats Available");

}
else
{
cart=seat*100;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Sawariya");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: General");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else
System.out.println("Wrong Value Entered");
}
//Movie 3
else if(ch==3)
{
System.out.println("Jab We Met");

System.out.println("Enter Show Date in ddmm format: ");


date=br1.readLine();
System.out.println("Show Time: 8:00PM");
System.out.println("Ticket Rates");
System.out.println("1. Box Office Rs.350/ticket Seat No. 1-20");
System.out.println("2. Balcony Rs.300/ticket Seat No. 21-40");
System.out.println("3. General Rs.250/ticket Seat No.41-80");
rate=Integer.parseInt(br1.readLine());
if(rate==1)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>20)
{
System.out.println("Only 20 seats Available");

}
else
{
cart=seat*350;
System.out.println("********** CineOasis Multiplex(Kandivli(E))
**********");
System.out.println("Jab We Met");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: Box Office");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else if(rate==2)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>20)
{
System.out.println("Only 20 seats Available");

}
else
{
cart=seat*300;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Jab We Met");
System.out.println("Date: "+date);
System.out.println("Type: Balcony");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else if(rate==3)
{
System.out.println("Enter Number of Seats Required: ");
seat=Integer.parseInt(br1.readLine());
if(seat>40)
{
System.out.println("Only 40 seats Available");

}
else
{
cart=seat*250;

System.out.println("********** CineOasis Multiplex(Kandivli(E))


**********");
System.out.println("Jab We Met");
Date d=new Date();
System.out.println("Booking Date: "+d);
System.out.println("Date: "+date);
System.out.println("Type: General");
System.out.println("Seats: "+seat);
System.out.println("Total Cart= "+cart);
System.out.println("Enjoy The Movie");
}
}
else
System.out.println("Wrong Value Entered");
}

System.out.println();
System.out.println("Type 'c' to continue buying CineOasis Multiplex
Tickets......");

choice=br.readLine();
}while(choice.equalsIgnoreCase("c"));
}

public void Run() throws Exception


{

String c;

BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));


do{
System.out.println("Welcome to ShoppingOasis by www.theexampapers.com");
System.out.println("Your Visitor Number is:
"+Math.round(Math.ceil(Math.random()*3+1)));
System.out.println("Take a look @ the brand new stores of the Mall");
System.out.println("_________________________________________________
_");
System.out.println("\n\n");

System.out.println("*************************************************
**********************************************");
System.out.println(" 1. Lenovo Showroom");
System.out.println("*************************************************
**********************************************");
System.out.println(" 2. Nokia Gallery");
System.out.println("*************************************************
**********************************************");
System.out.println(" 3. Leganza Showroom");
System.out.println("*************************************************
**********************************************");
System.out.println(" 4. The Kids Store");
System.out.println("*************************************************
**********************************************");
System.out.println(" 5. Jet Airways Air Ticket Booking");
System.out.println("*************************************************
**********************************************");
System.out.println(" 6. CineOasis Multiplex");
System.out.println("*************************************************
**********************************************");

System.out.println("Type the number corresponding to the name of the shop you


wanna visit.");
String ch=buf.readLine();
if(ch.equalsIgnoreCase("1"))
flo();
else if(ch.equalsIgnoreCase("2"))
mobilestore();
else if(ch.equalsIgnoreCase("3"))
clothesrack();
else if(ch.equalsIgnoreCase("4"))
kids();
else if(ch.equalsIgnoreCase("5"))
airtravels();
else if(ch.equalsIgnoreCase("6"))
movie();
else
{
System.out.println("You have entered a wrong choice. Please Try Again");
break;
}

System.out.println("To Continue shopping type 'c'...");


c=buf.readLine();
}while(c.equalsIgnoreCase("c"));
System.out.println("***************************************************
*******");
System.out.println("Pay Rs. "+cart);
System.out.println("***************************************************
*******");

}
}

You might also like