Skip to main content

Bookmyshow program in java for booking the desire movie ticket

package june21;

import java.util.Scanner;

public class bookmyshow {
 void input_details(){
System.out.println("\t\t#####  WELCOME TO THE BOOK YOUR SHOW   ####");
System.out.println(" .Please Enter the following Options");
System.out.println("   .Press 1 for  RAABTA Movie");
System.out.println("   .Press 2 for BAHUBALI 2 Movie");
System.out.println("   .Press 3 for  OK JAANU  Movie");
System.out.println("   .Press 4 for HALF GIRLFRIEND Movie");
String name,email,mobile,a;int n;float snaks;
 
Scanner sc = new Scanner (System.in);
int choice = sc.nextInt();
while(true)
{
switch(choice)
{
case 1: 
System.out.println(" \t\t\t\t*select your show timing*");
System.out.println("   .Press 1 for 12 to 3 show");
System.out.println("   .Press 2 for 3 to 6 show");
System.out.println("   .Press 3 for 6 to 9 show");
System.out.println("   .Press 4 for 9 to 12 show");
Scanner Sc = new Scanner (System.in);
int select = sc.nextInt();
while(true){
Scanner sc1 = new Scanner (System.in);
switch(select){
case 1:  
System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println("*Press 1 for silver  booking ");
System.out.println("*Press 2 for gold  booking ");
System.out.println("*Press 3 for diamond  booking ");
System.out.println("*Press 4 for platinum booking ");
int sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println("alloted seat no. :");
for(int  i=200;i>200-n;i--){
System.out.print(i+"\t");}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 2 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 3 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
 
case 4 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
       
      }break;
}    break;
case 2:
System.out.println(" \t\t\t\t*select your show timing*");
System.out.println("   .Press 1 for 12 to 3 show");
System.out.println("   .Press 2 for 3 to 6 show");
System.out.println("   .Press 3 for 6 to 9 show");
System.out.println("   .Press 4 for 9 to 12 show");
select = sc.nextInt();
while(true){
Scanner sc1 = new Scanner (System.in);
switch(select){
case 1:  
System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
int sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 2 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println("total\t:"+total);break;
     }
       }break;
case 3 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
 
case 4 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
       
      }break;
}    break;
case 3:
System.out.println(" \t\t\t\t*select your show timing*");
System.out.println("   .Press 1 for 12 to 3 show");
System.out.println("   .Press 2 for 3 to 6 show");
System.out.println("   .Press 3 for 6 to 9 show");
System.out.println("   .Press 4 for 9 to 12 show");
select = sc.nextInt();
while(true){
Scanner sc1 = new Scanner (System.in);
switch(select){
case 1:  
System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
int sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 2 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 3 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
 
case 4 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
       
      }break;
}    break;

  case 4:
System.out.println(" \t\t\t\t*select your show timing*");
System.out.println("   .Press 1 for 12 to 3 show");
System.out.println("   .Press 2 for 3 to 6 show");
System.out.println("   .Press 3 for 6 to 9 show");
System.out.println("   .Press 4 for 9 to 12 show");
select = sc.nextInt();
while(true){
Scanner sc1 = new Scanner (System.in);
switch(select){
case 1:  
System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
int sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 2 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
case 3 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
 
case 4 :
    System.out.println(" \t\t\t\t*seat  and price* \n\t\tseat\t\tprice/seat\n\t.silver 200\t\t150\n\t.gold   150\t\t200\n\t.diamond 100\t\t300\n\t.platinum 50\t\t400");
System.out.println(".Press 1 for silver  booking ");
System.out.println(".Press 2 for gold  booking ");
System.out.println(".Press 3 for diamond  booking ");
System.out.println(".Press 4 for platinum booking ");
sel= sc1.nextInt();

switch(sel){
case 1: System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
  n =sc1.nextInt();
System.out.println("would you like  snacks along with ticket? yes/no");
Scanner sc2 = new Scanner (System.in);
a=sc2.nextLine();
   snaks= 250f;System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*150)+snaks)*.15f)+(((n*150)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*150)*.15f)+(n*150));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=200;i>200-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
}
case 2: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*200)+snaks)*.15f)+(((n*200)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*200)*.15f)+(n*200));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
for( int i=150;i>150-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 3: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;System.out.println("total price along with 15% tax:");
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
switch(a) 
{
case "yes":
float total= ((((n*300)+snaks)*.15f)+(((n*300)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*300)*.15f)+(n*300));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=100;i>100-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
case 4: 
System.out.println("enter your name");
name=sc1.next();
System.out.println("email: ");
email=sc1.next();
System.out.println("mobile:");
mobile=sc1.next();
System.out.println("please enter the no. of ticket");
n =sc1.nextInt();
snaks= 250f;
System.out.println("would you like  snacks along with ticket? yes/no");
a=sc1.next();
System.out.println("total price along with 15% tax:");
switch(a) 
{
case "yes":
float total= ((((n*400)+snaks)*.15f)+(((n*400)+snaks)));
System.out.println("booking details:\t\n"+"name\t"+name+"\nemail\t"+email+"\nmobile\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
case "no":
total= (((n*400)*.15f)+(n*400));
System.out.println("booking details:\t\n"+"name:\t"+name+"\nemail:\t"+email+"\nmobile:\t"+mobile);
System.out.println(" alloted seat no. :");
for( int i=50;i>50-n;i--){
System.out.print(i+"\t");
}System.out.println("\n");
System.out.println("total\t:"+total);break;
     }
       }break;
       
      }break;
}    break;
          }break;
}
 
 
 
 }
                     public static void main(String[] args) {
          bookmyshow s = new bookmyshow();
           s.input_details();
               }
               }

Comments

Popular posts from this blog

JAVA program of showing the student marksheet

package june13; import java.util.Scanner; public class student { int roll; String name; String email; int hindi,english,physics,chemistry,maths; void  input_details(){ System.out.println("please enter the following details "); Scanner sc= new Scanner(System.in); System.out.println("enter the roll number "); roll=sc.nextInt(); System.out.println("enter the name of student "); name=sc.next(); System.out.println(" enter the email"); email=sc.next(); System.out.println(" enter the marks of hindi "); hindi=sc.nextInt(); System.out.println("enter the marks of english "); english=sc.nextInt(); System.out.println(" enter the marks of physics ");; physics=sc.nextInt(); System.out.println(" enter the marks of chemistry "); chemistry=sc.nextInt(); System.out.println("enter the marks of maths "); maths=sc.nextInt(); ...

Program of Making a simple calculator using java swing

import javax.swing.*; import java.awt.event.*; class Calc implements ActionListener {     JFrame f;     JTextField t;     JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b0,bdiv,bmul,bsub,badd,bdec,beq,bdel,bclr;     static double a=0,b=0,result=0;     static int operator=0;     Calc()     {         f=new JFrame("Calculator");         t=new JTextField();         b1=new JButton("1");         b2=new JButton("2");         b3=new JButton("3");         b4=new JButton("4");         b5=new JButton("5");         b6=new JButton("6");         b7=new JButton("7");         b8=new JButton("8");         b9=new JButton("9");         b0=new JButton("0");         b...

C Program to find next larger number from a given array from target number

  Here is Program:   #include<stdio.h> #include<stdlib.h>   void sort(int arr[] ,int n)  {   int i,j,temp;   for (i = 0 ; i < ( n - 1 ); i++)   {     for (j = i+1 ; j <( n - 1); j++)     {       if (arr[i] > arr[j])       {         temp  = arr[i];         arr[i]   = arr[j];         arr[j] = temp;       }      }    }   }   int main()   {     int a[] = {2,11,11,6,80};     int i, num1 = 8;     sort(a,5);         for(i=0;i<sizeof(a)/sizeof(a[i]);i++)     {         if(a[4]<num1)          {   ...