IPL Ticket Booking System Code
IPL Ticket Booking System Code
*;
class IPL
{
public static void main(String args[])
{
Scanner in=new Scanner([Link]);
[Link](" BookMyShow");
[Link](" WELCOME TO THE PORTAL FOR BOOKING IPL TICKETS ");
[Link]("");
[Link]("Match 1:CSK VS MI - PRESS 1");
[Link]("Date:March 22 in Chennai");
[Link]("Date:April 6 in Mumbai");
[Link]("");
[Link]("Match 2:RCB VS GT - PRESS 2");
[Link]("Date:April 3 in Bengaluru");
[Link]("Date:May 12 in Ahmedabad");
[Link]("");
[Link]("Match 3:RR VS KKR - PRESS 3");
[Link]("Date:April 27 in Kolkata");
[Link]("Date:May 4 in Jaipur");
[Link]("");
[Link]("Match 4:LSG VS SRH - PRESS 4");
[Link]("Date:April 21 in Lucknow");
[Link]("Date:May 28 in Hyderabad");
[Link]("");
[Link]("Enter the Match number");
int n=[Link]();
switch(n)
{
case 1:
{
[Link]("You have choosen CSK VS MI");
[Link]("Enter the location where you want to watch the match");
String p=[Link]();
switch(p)
{
case "CHENNAI":
{
[Link]("The seatings available in chennai are as follow and the prices are also mentioned");
[Link]("VIP STANDS:- Rs 18000 per person(Includes Hospitality)");
[Link]("LOWER STANDS:- Rs 5000(Does not include Hospitality");
[Link]("UPPER STANDS:- Rs 2000(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p1=[Link]();
switch(p1)
{
case "VIP":
{
[Link]("ENTER NUMBER OF TICKETS");
int n1=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" CHENNAI SUPER KINGS Vs MUMBAI INDIANS");
[Link](" M.A Chidambaram Stadium,Chennai");
[Link]("");
[Link]("Date:Friday,March 22,2024");
[Link]("Stands:VIP");
[Link]("No Of Tickets:"+n1);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 4");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+18000*n1+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "LOWER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n2=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" CHENNAI SUPER KINGS Vs MUMBAI INDIANS");
[Link](" M.A Chidambaram Stadium,Chennai");
[Link]("");
[Link]("Date:Friday,March 22,2024");
[Link]("Stands:Lower");
[Link]("No Of Tickets:"+n2);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 2,5,6,7");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+5000*n2+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "UPPER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n3=[Link]();
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" CHENNAI SUPER KINGS Vs MUMBAI INDIANS");
[Link](" M.A Chidambaram Stadium,Chennai");
[Link]("");
[Link]("Date:Friday,March 22,2024");
[Link]("Stands:UPPER");
[Link]("No Of Tickets:"+n3);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 1,3,8,9");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+2000*n3+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
break;
}
case "MUMBAI":
{
[Link]("The seatings available in chennai are as follow and the prices are also mentioned");
[Link]("GRAND STANDS:- Rs 20000 per person(Includes Hospitality)");
[Link]("HIGH STANDS:- Rs 3000(Does not include Hospitality");
[Link]("LOW STANDS:- Rs 1500(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p2=[Link]();
switch(p2)
{
case "GRAND":
{
[Link]("ENTER NUMBER OF TICKETS");
int n4=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" CHENNAI SUPER KINGS Vs MUMBAI INDIANS");
[Link](" Wankhede stadium,Mumbai");
[Link]("");
[Link]("Date:Saturday,April 6,2024");
[Link]("Stands:GRAND");
[Link]("No Of Tickets:"+n4);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 4");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+20000*n4+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "HIGH":
{
[Link]("ENTER NUMBER OF TICKETS");
int n5=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" CHENNAI SUPER KINGS Vs MUMBAI INDIANS");
[Link](" Wankhede stadium,Mumbai");
[Link]("");
[Link]("Date:Saturday,April 6,2024");
[Link]("Stands:HIGH");
[Link]("No Of Tickets:"+n5);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 3,4,5");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+3000*n5+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "LOW":
{
[Link]("ENTER NUMBER OF TICKETS");
int n6=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" CHENNAI SUPER KINGS Vs MUMBAI INDIANS");
[Link](" Wankhede stadium,Mumbai");
[Link]("");
[Link]("Date:Saturday,April 6,2024");
[Link]("Stands:LOW");
[Link]("No Of Tickets:"+n6);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 8,9,10");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+1500*n6+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
break;
}
}
break;
}
case 2:
{
[Link]("You have choosen RCB VS GT");
[Link]("Enter the location where you want to watch the match");
String p4=[Link]();
switch(p4)
{
case "BENGALURU":
{
[Link]("The seatings available in chennai are as follow and the prices are also mentioned");
[Link]("The seatings available in chennai are as follow and the prices are also mentioned");
[Link]("CORPORATE STANDS:- Rs 25000 per person(Includes Hospitality)");
[Link]("FAN STANDS:- Rs 7000(Does not include Hospitality");
[Link]("KEI STANDS:- Rs 4000(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p5=[Link]();
switch(p5)
{
case "CORPORATE":
{
[Link]("ENTER NUMBER OF TICKETS");
int n7=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" ROYAL CHALLENGERS BANGLORE Vs GUJRAT TITANS");
[Link](" M Chinnaswamy Stadium,Bengaluru");
[Link]("");
[Link]("Date:Wednesday,April 3,2024");
[Link]("Stands:CORPORATE");
[Link]("No Of Tickets:"+n7);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 5");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+25000*n7+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "FAN":
{
[Link]("ENTER NUMBER OF TICKETS");
int n8=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" ROYAL CHALLENGERS BANGLORE Vs GUJRAT TITANS");
[Link](" M Chinnaswamy Stadium,Bengaluru");
[Link]("");
[Link]("Date:Wednesday,April 3,2024");
[Link]("Stands:FAN");
[Link]("No Of Tickets:"+n8);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 3,4");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+7000*n8+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "KEI":
{
[Link]("ENTER NUMBER OF TICKETS");
int n9=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" ROYAL CHALLENGERS BANGLORE Vs GUJRAT TITANS");
[Link](" M Chinnaswamy Stadium,Bengaluru");
[Link]("");
[Link]("Date:Wednesday,April 3,2024");
[Link]("Stands:KEI");
[Link]("No Of Tickets:"+n9);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 6,7,8");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+4000*n9+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
break;
}
case "AHMEDABAD":
{
[Link]("The seatings available in AHMEDABAD are as follow and the prices are also mentioned");
[Link]("PRESIDENTIAL STANDS:- Rs 30000 per person(Includes Hospitality)");
[Link]("UPPER STANDS:- Rs 1000(Does not include Hospitality");
[Link]("LOWER STANDS:- Rs 2000(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p671=[Link]();
switch(p671)
{
case "PRESIDENTIAL":
{
[Link]("ENTER NUMBER OF TICKETS");
int n10=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" ROYAL CHALLENGERS BANGLORE Vs GUJRAT TITANS");
[Link](" Motera Cricket Stadium,Ahmedabad");
[Link]("");
[Link]("Date:Sunday,May 12,2024");
[Link]("Stands:PRESIDENTIAL");
[Link]("No Of Tickets:"+n10);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 3,4,5");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+30000*n10+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "UPPER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n11=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" ROYAL CHALLENGERS BANGLORE Vs GUJRAT TITANS");
[Link](" Motera Cricket Stadium,Ahmedabad");
[Link]("");
[Link]("Date:Sunday,May 12,2024");
[Link]("Stands:UPPER");
[Link]("No Of Tickets:"+n11);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 1,2,6,7");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+1000*n11+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "LOWER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n12=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" ROYAL CHALLENGERS BANGLORE Vs GUJRAT TITANS");
[Link](" Motera Cricket Stadium,Ahmedabad");
[Link]("");
[Link]("Date:Sunday,May 12,2024");
[Link]("Stands:LOWER");
[Link]("No Of Tickets:"+n12);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 8,9,10");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n12*2000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
break;
}
}
break;
}
case 3:
{
[Link]("You have choosen RR VS KKR");
[Link]("Enter the location where you want to watch the match");
String p14=[Link]();
switch(p14)
{
case "KOLKATA":
{
[Link]("The seatings available in KOLKATA are as follow and the prices are also mentioned");
[Link]("GOLDSILVER LOUNGE:- Rs 23000 per person(Includes Hospitality)");
[Link]("CLUBHOUSE STANDS:- Rs 2000(Does not include Hospitality");
[Link]("PLATINUM LOUNGE:- Rs 10000(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p24=[Link]();
switch(p24)
{
case "GOLDSILVER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n13=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" RAJASTHAN ROYALS Vs KOLKATA KNIGHT RIDERS");
[Link](" Eden Gardens Stadium,Kolkata");
[Link]("");
[Link]("Date:Sunday,April 27,2024");
[Link]("Stands:GOLDSILVER LOUNGE");
[Link]("No Of Tickets:"+n13);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 8,9,10");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n13*23000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "CLUBHOUSE":
{
[Link]("ENTER NUMBER OF TICKETS");
int n14=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" RAJASTHAN ROYALS Vs KOLKATA KNIGHT RIDERS");
[Link](" Eden Gardens Stadium,Kolkata");
[Link]("");
[Link]("Date:Sunday,April 27,2024");
[Link]("Stands:CLUB HOUSE");
[Link]("No Of Tickets:"+n14);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 1,2,3,4");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n14*2000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "PLATINUM":
{
[Link]("ENTER NUMBER OF TICKETS");
int n15=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" RAJASTHAN ROYALS Vs KOLKATA KNIGHT RIDERS");
[Link](" Eden Gardens Stadium,Kolkata");
[Link]("");
[Link]("Date:Sunday,April 27,2024");
[Link]("Stands:PLATINUM LOUNGE");
[Link]("No Of Tickets:"+n15);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 5,6");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n15*10000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
break;
}
case "JAIPUR":
{
[Link]("The seatings available in JAIPUR are as follow and the prices are also mentioned");
[Link]("ROOFTOP STANDS:- Rs 15000 per person(Includes Hospitality)");
[Link]("PRESIDENT STANDS:- Rs 7000(Does not include Hospitality");
[Link]("NWES STANDS:- Rs 1100(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p41=[Link]();
switch(p41)
{
case "ROOFTOP":
{
[Link]("ENTER NUMBER OF TICKETS");
int n16=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" RAJASTHAN ROYALS Vs KOLKATA KNIGHT RIDERS");
[Link](" Sawaimansingh Stadium,Jaipur");
[Link]("");
[Link]("Date:Saturday,May 4,2024");
[Link]("Stands:ROOF TOP");
[Link]("No Of Tickets:"+n16);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 7,8,9");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n16*15000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "PRESIDENT":
{
[Link]("ENTER NUMBER OF TICKETS");
int n17=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" RAJASTHAN ROYALS Vs KOLKATA KNIGHT RIDERS");
[Link](" Sawaimansingh Stadium,Jaipur");
[Link]("");
[Link]("Date:Saturday,May 4,2024");
[Link]("Stands:PRESIDENT");
[Link]("No Of Tickets:"+n17);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 2,3,4");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n17*7000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "NWES":
{
[Link]("ENTER NUMBER OF TICKETS");
int n18=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" RAJASTHAN ROYALS Vs KOLKATA KNIGHT RIDERS");
[Link](" Sawaimansingh Stadium,Jaipur");
[Link]("");
[Link]("Date:Saturday,May 4,2024");
[Link]("Stands:NWES");
[Link]("No Of Tickets:"+n18);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 1,2,3");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n18*1100+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
}
}
break;
}
case 4:
{
[Link]("You have choosen LSG VS SRH");
[Link]("Enter the location where you want to watch the match");
String p51=[Link]();
switch(p51)
{
case "LUCKNOW":
{
[Link]("The seatings available in LUCKNOW are as follow and the prices are also mentioned");
[Link]("VIP STANDS:- Rs 18000 per person(Includes Hospitality)");
[Link]("UPPER STANDS:- Rs 2000(Does not include Hospitality");
[Link]("LOWER STANDS:- Rs 1300(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p61=[Link]();
switch(p61)
{
case "VIP":
{
[Link]("ENTER NUMBER OF TICKETS");
int n19=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" LUCKNOW SUPER GIANTS Vs SUNRISERS
HYDERABAD");
[Link](" Ekana Stadium,Lucknow");
[Link]("");
[Link]("Date:Sunday,April 21,2024");
[Link]("Stands:VIP");
[Link]("No Of Tickets:"+n19);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 3,6,7");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n19*18000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "UPPER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n20=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" LUCKNOW SUPER GIANTS Vs SUNRISERS
HYDERABAD");
[Link](" Ekana Stadium,Lucknow");
[Link]("");
[Link]("Date:Sunday,April 21,2024");
[Link]("Stands:UPPER");
[Link]("No Of Tickets:"+n20);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 1,2,4");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n20*2000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "LOWER":
{
[Link]("ENTER NUMBER OF TICKETS");
int n21=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" LUCKNOW SUPER GIANTS Vs SUNRISERS
HYDERABAD");
[Link](" Ekana Stadium,Lucknow");
[Link]("");
[Link]("Date:Sunday,April 21,2024");
[Link]("Stands:LOWER");
[Link]("No Of Tickets:"+n21);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 5,8,9");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n21*1300+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
}
case "HYDERABAD":
{
[Link]("The seatings available in HYDERABAD are as follow and the prices are also mentioned");
[Link]("EBIXCASH STANDS:- Rs 19000 per person(Includes Hospitality)");
[Link]("NORTH PAVILION:- Rs 2500(Does not include Hospitality");
[Link]("SOUTH PAVILION:- Rs 1500(Does not include Hospitality");
[Link]("");
[Link]("ENTER THE STANDS");
String p71=[Link]();
switch(p71)
{
case "EBIXCASH":
{
[Link]("ENTER NUMBER OF TICKETS");
int n22=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" LUCKNOW SUPER GIANTS Vs SUNRISERS
HYDERABAD");
[Link](" Rajiv Gandhi Stadium,Hyderabad");
[Link]("");
[Link]("Date:Tuesday,May 28,2024");
[Link]("Stands:EBIXCASH");
[Link]("No Of Tickets:"+n22);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 4,5,6");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n22*19000+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "NORTH":
{
[Link]("ENTER NUMBER OF TICKETS");
int n23=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" LUCKNOW SUPER GIANTS Vs SUNRISERS
HYDERABAD");
[Link](" Rajiv Gandhi Stadium,Hyderabad");
[Link]("");
[Link]("Date:Tuesday,May 28,2024");
[Link]("Stands:NORTH PAVILION");
[Link]("No Of Tickets:"+n23);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 1,2,7");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n23*2500+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
case "SOUTH":
{
[Link]("ENTER NUMBER OF TICKETS");
int n24=[Link]();
[Link]("Given below is your ticket");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
[Link](" BookMyShow");
[Link](" Indian Premier League");
[Link](" 2024");
[Link]("");
[Link](" LUCKNOW SUPER GIANTS Vs SUNRISERS
HYDERABAD");
[Link](" Rajiv Gandhi Stadium,Hyderabad");
[Link]("");
[Link]("Date:Tuesday,May 28,2024");
[Link]("Stands:SOUTH PAVILION");
[Link]("No Of Tickets:"+n24);
[Link]("Seat Number:"+[Link]([Link]() * 10000));
[Link]("Ticket Number:"+([Link]([Link]() * 10000))+([Link]([Link]() *
10000))+([Link]([Link]() * 10000)));
[Link]("Entry from Gate 8,9,10");
[Link]("Timings:Match starts at 7:30 PM");
[Link]("Fans can enter the stadium from 6:00 PM");
[Link]("Total Amount paid:- Rs "+n24*1500+"(Includes 9% CGST & 9% SGST)");
[Link]("Payment:Online Transaction");
[Link]("");
[Link](" Enjoy the Match!!!");
[Link]("---------------------------------------------------------------------------------------------------------------------------");
break;
}
}
}
}
break;
}
}
}
}
OUTPUTS:
1.
INPUT:-
OUTPUT:-
2.
INPUT:-
OUTPUT:-
INTRODUCTION
This computer project is done on the topic of “Booking IPL tickets” for a
cricket match based on the users [Link] program is done using
switch case,Strings, Mathametics function and includes some simple
[Link] this program the user can choose the match then location
of match based on the dates and the stands where the fan would like to sit
and some stands includes hospitality and also the prices vary with each
stand and finally the ticket is delivered.
The program processes payments through online transactions, as indicated in the ticket confirmation. Secure payment handling is implied by this method, suggesting the use of digital transaction platforms that would encrypt financial data, although the program details itself do not specify further security measures .
The program calculates the total amount by multiplying the number of tickets by the price per ticket for the chosen stand and includes taxes by adding 9% CGST and 9% SGST to the base price. The total amount, inclusive of taxes, is displayed to the user as part of the booking confirmation .
User input is critical for determining match preferences, location choices, and seat selection. It is managed using prompts that collect specific data points such as match number, desired location, and seating category, enabling the program to navigate through choices effectively and generate accurate ticket details for the user .
The user interface of the ticket booking program, while simple, effectively guides the user through different stages such as match selection, location choice, and seat booking using console prompts and instructions. The use of clear text outputs for available options, costs, and final ticket information provides a straightforward, step-by-step user experience. However, the reliance on console inputs can limit the program's usability and visual appeal compared to graphical user interfaces .
Dynamically calculated ticket and seat numbers ensure each booking results in a unique set of identifiers, which is crucial for authenticity and uniqueness in the confirmation process. This mechanism prevents duplication and error in ticket issuance, mimicking the randomness and personalization of real-world ticket sales .
Factors influencing the decision include ticket pricing, inclusion of hospitality, and available entry gate locations. Users are likely to weigh the cost against the benefits of higher-priced stands with hospitality services or closer views. Additionally, logistical considerations such as convenience of entry gates and overall match experience can impact stand selection .
Allowing users to choose match locations personalizes the booking experience, reflecting real-world scenarios where fans select venues based on convenience or preference. The program handles location choice through conditional logic that prompts users after match selection, offering corresponding seating and date options based on the chosen location, ensuring accurate information is provided for specific locations .
Hospitality is integrated into the pricing structure by offering certain stands where hospitality services are included at a higher price (e.g., VIP or GRAND stands). This differentiation in service level is reflected in the heightened ticket costs for seats that include hospitality, providing users with options according to their desired experience .
The program utilizes randomness to generate seat numbers and ticket numbers by using the 'Math.floor(Math.random() * 10000)' function. This serves to create unique identifiers for each ticket, mimicking real-world scenarios where ticket numbers are personalized for each match attendee, thereby enhancing the simulation experience .
Conditional statements such as 'switch' are used to navigate through the options provided during the IPL ticket booking process, enabling users to select different matches, locations, and seat categories effectively. Switch cases provide a structured way to execute specific blocks of code based on user input, thereby determining the sequence of operations, like selecting the stadium or stand depending on user choice .