You are on page 1of 81

import java.io.*; import java.lang.*; import java.math.

*;

class PranayMovieLib{ String name,email;

int quantity,totalp,totalp1,totalp2,totalp3,totalp4,ch,ch1,ch2,ch3,i,h,h1,h2,h3,c,totalc,totalc1,totalc2,totalc 3,totalc4,totalc5; int f,z,y,totalpr,totalpr1,totalpr2,totalpr3,totalpr4,v,totalpj,totalpj1,totalpj2,totalpj3,totalpj4,o,q; int mn,m,n,totalcs,totalcs1,totalcs2,totalcs3,totalcs4,totalcd,totalcd1,totalcd2; int CS3,PJ3,PR3,T3,C4,CD1; // the final amounts to be used for bill calculation. int lj,l,j,ba,M,az,bx,cy,reg,pe; int totalpc,totalpc1,totalpc2,totalpc3,totalpc4; int pcost,pcost1,pcost2,pcost3,pcost4; double phone; InputStreamReader read= new InputStreamReader(System.in); BufferedReader in= new BufferedReader(read); public void main() throws IOException{

System.out.println("*=*=*=*=Pranay's Movie Library=*=*=*=*"); System.out.println("Please Enter Your Name!");

name=in.readLine(); primeDC(); } public void primeDC()throws IOException{ System.out.println("What Would You Like To Do?"); System.out.println("Press '1' to go to the Language Menu"); System.out.println("Press '2' to Register Your E-mail ID or Phone Number"); reg=Integer.parseInt(in.readLine()); switch(reg) { case 1: primeC(); break; case 2: regMail(); break; default: System.out.println("INVALID CHOICE."); System.out.println("Please wait while you are redirected to: Main Menu................"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){}

primeDC();

} public void regMail()throws IOException{ System.out.println("Now you can register your phone number or E-mail ID so that we can inform you about the Latest Movie Arrivals"); System.out.println("1.Phone Number"); System.out.println("2.Email ID"); pe=Integer.parseInt(in.readLine()); switch(pe) { case 1:phoneM(); break;

case 2:emailM(); break; default: System.out.println("INVALID CHOICE."); System.out.println("Please wait while you are redirected to: Registration Menu................"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){}

regMail();

} public void phoneM()throws IOException{ System.out.println("Please Give Your Number:"); phone=Double.parseDouble(in.readLine()); System.out.println("Please wait................"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You For Registering Your Number...........You will be recieving a Message Shortly"); primeC(); } public void emailM()throws IOException{ System.out.println("Please Give Your E-mail ID:"); email=in.readLine(); System.out.println("Please wait................"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You For Registering Your Email ID...........You will be recieving a Message Shortly"); primeC();

public void primeC()throws IOException{ System.out.println("********LANGUAGE MENU*********"); System.out.println("Please enter your Language"); System.out.println(" 1. Hindi Movies"); System.out.println(" 2. English Movies"); System.out.println(" 3. Calculate My Bill");

ch=Integer.parseInt(in.readLine()); switch(ch) { case 1: hindMov(); break;

case 2: engMov(); break;

case 3: billCal(); break;

default: System.out.println("INVALID CHOICE."); System.out.println("Please wait while you are redirected to: Language Menu................"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){}

primeC();

} }

public void hindMov()throws IOException{

System.out.println("You have chosen Hindi Movies"); System.out.println("********CATEGORY MENU*********"); System.out.println("Please chose your category of movies");

System.out.println("1.Old Hindi Movies"); System.out.println("2.Recent Hindi Movies"); System.out.println("3.Latest Hindi Movies"); System.out.println("4.Bill calculation"); ch1= Integer.parseInt(in.readLine()); switch(ch1) {

case 1: oldMov(); break;

case 2: recMov(); break; case 3: latMov(); break; case 4: billCal();break;

default: System.out.println("Invalid Choice"); System.out.println("Please wait while you are redirected.............."); System.out.println(" Please do not type in anything.");

try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){}

hindMov(); }}

public void oldMov() throws IOException{ System.out.println(" You have chosen Old Hindi Movies!");

System.out.println("1.Sholay"); System.out.println("2.Dewaar"); System.out.println("3.Badshah"); System.out.println("4.Laawaris"); System.out.println("5.Mughal-e-Azam"); System.out.println("6.Bazigar"); System.out.println("7.Calculate Bill"); ch2= Integer.parseInt(in.readLine()); switch(ch2) { case 1: System.out.println("You have chosen Sholay!!"); System.out.println("Price per DVD of Sholay is Rs.120"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); int price= 120; totalp= quantity*price; System.out.println("The total price is given below");

System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov();

break;

} break;

case 2: System.out.println("You have chosen Dewaar!!"); System.out.println("Price per DVD of Dewaar is Rs.100"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 100; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); h=Integer.parseInt(in.readLine());

switch(h) { case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break;

} break;

case 3: System.out.println("You have chosen Baadshah!!"); System.out.println("Price per DVD of Baadshah is Rs.150"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 150; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: hindMov();

break; case 3: oldMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break;

break; case 4: System.out.println("You have chosen Laawaris!!"); System.out.println("Price per DVD of Laawaris is Rs.90"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 90; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu");

System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break;

} break;

case 5: System.out.println("You have chosen Mughal-e-Azam!!"); System.out.println("Price per DVD of Mughal-e-Azam is Rs.80"); System.out.println(" How many DVDs do you want?");

quantity= Integer.parseInt(in.readLine()); price= 80; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC();

break; case 2: hindMov(); break; case 3: oldMov(); break;

} break; case 6: System.out.println("You have chosen Bazigar!!"); System.out.println("Price per DVD of Bazigar is Rs.110"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 110; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu");

System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Old Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: oldMov(); break;

} break; case 7: System.out.println("You have chosen to calculate your final bill."); System.out.println("Please wait while your request is being processed..........."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal();break;

default: System.out.println("You have entered wrong choice."); System.out.println("You will now be redirected to: Old HIndi Movies....Please Wait.........."); try{ Thread.sleep(3000); // Sleep for 3 sec

} catch(InterruptedException e){} oldMov();break;

}}

public void recMov()throws IOException{ int C,C1,C2,C3; System.out.println("You have chosen Recent Hindi Movies!");

System.out.println("1.Om Shanti Om"); System.out.println("2.Kaminey"); System.out.println("3.Kidnap"); System.out.println("4.My Name is Khan"); System.out.println("5.Singh is King"); System.out.println("6.Delhi 6"); System.out.println("7.Bill calculation"); ch3=Integer.parseInt(in.readLine());

switch(ch3) { case 1: System.out.println("You have chosen Om Shanti Om");

System.out.println("Each DVD of Om Shanti Om costs Rs.130."); System.out.println("How many DVDs do you want?");

quantity=Integer.parseInt(in.readLine()); int cost= 130; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break;

case 2: hindMov(); break; case 3: recMov(); break;

}} break; case 2: System.out.println("You have chosen Kaminey");

System.out.println("Each DVD of Kaminey costs Rs.105."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 105; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break;

case 3: recMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break;

}} break;

case 3: System.out.println("You have chosen Kidnap");

System.out.println("Each DVD of Kidnap costs Rs.120."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 120;

totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break;

case 3: recMov(); break;

}} break;

case 4: System.out.println("You have chosen My Name is Khan");

System.out.println("Each DVD of My Name is Khan costs Rs.100."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 100; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov();

break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break;

}} break;

case 5: System.out.println("You have chosen Singh is King");

System.out.println("Each DVD of Singh is King costs Rs.130."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 130; totalc= quantity*cost;

System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov();

break;

}} break;

case 6: System.out.println("You have chosen Delhi 6");

System.out.println("Each DVD of Delhi 6 costs Rs.130."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 130; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break;

default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Recent Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: recMov(); break;

}} break; case 7: System.out.println("You have chosen to calculate your final bill."); System.out.println("Please wait while your request is being processed......."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal();break;

default: System.out.println("Invalid Choice."); System.out.println("You will now be redirected to: Recent Hindi Movies"); System.out.println("Please wait and do not type anything"); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} recMov();break;

}}

public void latMov()throws IOException{ System.out.println("You have chosen Latest Hindi Movies!!");

System.out.println("1. Zindagi Na Milegi Dobara."); System.out.println("2. Bodyguard"); System.out.println("3. Singham.");

System.out.println("4. Delhi Belly"); System.out.println("5. Mere Brother Ki Dulhan"); System.out.println("6. Calculate Bill"); f=Integer.parseInt(in.readLine());

switch(f) { case 1: System.out.println("You have chosen Zindagi Na Milegi Dobara");

System.out.println("Each DVD of Zindagi Na Milegi Dobara costs Rs.200."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); int cost= 200; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break;

case 3: latMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break;

}} break; case 2: System.out.println("You have chosen Bodyguard");

System.out.println("Each DVD of Bodyguard costs Rs.100."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 100; totalc= quantity*cost;

System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov();

break;

}} break; case 3: System.out.println("You have chosen Singham");

System.out.println("Each DVD of Singham costs Rs.130."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 130; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break; default: System.out.println("Invalid choice!");

System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break;

}} break; case 4: System.out.println("You have chosen Delhi Belly");

System.out.println("Each DVD of Delhi Belly costs Rs.150."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 150; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu");

System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break;

}}

break; case 5: System.out.println("You have chosen Mere Brother Ki Dulhan");

System.out.println("Each DVD of Mere Brother Ki Dulhan costs Rs.180."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 180; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Latest Hindi Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu.");

System.out.println(" Press '3' to go back to: Latest Hindi Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: hindMov(); break; case 3: latMov(); break;

}} break; case 6: System.out.println("You have chosen to calculate your final bill."); System.out.println("Please wait while your request is being processed......."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal();break;

default: System.out.println("You have entered wrong choice."); System.out.println("You will now be redirected to: Latest Hindi Movies"); System.out.println("Please do not type in anything.");

try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} latMov(); break; } }

public void engMov()throws IOException{ int TPc,TPc1,TPc2,TPc3,TPc4;

System.out.println("You have chosen English Movies!"); System.out.println("**********CATEGORY MENU**********"); System.out.println("1.Horror"); System.out.println("2.Thriller"); System.out.println("3.Comedy"); System.out.println("4.Bill calculation."); az=Integer.parseInt(in.readLine()); switch(az) {

case 1: horMov(); break; case 2: thrilMov(); break; case 3: comMov(); break; case 4: billCal(); break;

default: System.out.println("Invalid Choice"); System.out.println("Please wait while you are redirected.............."); System.out.println(" Please do not type in anything.");

try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){}

hindMov(); }}

public void horMov() throws IOException{ System.out.println(" You have chosen Horror Movies!");

System.out.println("1.The Ring");

System.out.println("2.Friday the 13th"); System.out.println("3.Scream"); System.out.println("4.Suspiria"); System.out.println("5.A Nightmare on Elm Street"); System.out.println("6.Halloween"); System.out.println("7.Calculate Bill"); ch2= Integer.parseInt(in.readLine()); switch(ch2) { case 1: System.out.println("You have chosen The Ring!!"); System.out.println("Price per DVD of The Ring is Rs.120"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); int price= 120; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC();

break; case 2: engMov(); break; case 3: horMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break;

} } break;

case 2: System.out.println("You have chosen Friday the 13th !!");

System.out.println("Price per DVD of Friday the 13th is Rs.100"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 100; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); c=Integer.parseInt(in.readLine());

switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break;

} } break;

case 3: System.out.println("You have chosen Scream!!"); System.out.println("Price per DVD of Scream is Rs.150"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 150; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); h=Integer.parseInt(in.readLine());

switch(h) { case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break;

} } break;

case 4: System.out.println("You have chosen Suspiria!!"); System.out.println("Price per DVD of Suspiria is Rs.90"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 90; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu");

System.out.println(" Press '3' to go back to: Horror Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break;

} break;

case 5: System.out.println("You have chosen A Nightmare on Elm Street!!"); System.out.println("Price per DVD of A Nightmare on Elm Street is Rs.180"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine());

price= 180; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break;

case 2: engMov(); break; case 3: horMov(); break;

} break; case 6: System.out.println("You have chosen Holloween!!"); System.out.println("Price per DVD of Halloween is Rs.110"); System.out.println(" How many DVDs do you want?"); quantity= Integer.parseInt(in.readLine()); price= 110; totalp= quantity*price; System.out.println("The total price is given below"); System.out.println(" Rs."+totalp); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu");

System.out.println(" Press '3' to go back to: Horror Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu"); System.out.println(" Press '3' to go back to: Horror Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: horMov(); break;

} break; case 7: System.out.println("You have chosen to calculate your final bill."); System.out.println("Please wait while your request is being processed..........."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal(); break;

default: System.out.println("You have entered wrong choice."); System.out.println("You will now be redirected to: Horror Movies....Please Wait.........."); try{ Thread.sleep(3000); // Sleep for 3 sec

} catch(InterruptedException e){} horMov(); break;

}}

public void thrilMov()throws IOException{ int C,C1,C2,C3; System.out.println("You have chosen Thriller Movies!");

System.out.println("1.Pulp Fiction"); System.out.println("2.Inception"); System.out.println("3.Batman: The Dark Night"); System.out.println("4.Never Back Down"); System.out.println("5.Spiderman 2"); System.out.println("6.Avatar"); System.out.println("7.Bill calculation"); ch3=Integer.parseInt(in.readLine());

switch(ch3) { case 1: System.out.println("You have chosen Pulp Fiction");

System.out.println("Each DVD of Om Shanti Pulp Fiction Rs.130.");

System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); int cost= 130; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); c=Integer.parseInt(in.readLine()); switch(c) { case 1: primeC();

break; case 2: engMov(); break; case 3: thrilMov(); break;

}} break; case 2: System.out.println("You have chosen Inception!");

System.out.println("Each DVD of Inception costs Rs.105."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 105; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); h=Integer.parseInt(in.readLine()); switch(h) { case 1: primeC(); break; case 2: engMov();

break; case 3: thrilMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); c=Integer.parseInt(in.readLine()); switch(c) { case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov(); break;

}} break;

case 3: System.out.println("You have chosen The Dark Knight");

System.out.println("Each DVD of The Dark Knight costs Rs.120."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine());

cost= 120; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov();

break; case 3: thrilMov(); break;

}} break;

case 4: System.out.println("You have chosen Never Back Down");

System.out.println("Each DVD of Never Back Down costs Rs.100."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 100; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break;

case 3: thrilMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov(); break;

}} break;

case 5: System.out.println("You have chosen Spiderman 2");

System.out.println("Each DVD of Spiderman 2 costs Rs.130."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 130;

totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break;

case 3: thrilMov(); break;

}} break;

case 6: System.out.println("You have chosen Avatar");

System.out.println("Each DVD of Avatar costs Rs.130."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 130; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov();

break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Thriller Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: thrilMov(); break;

}} break; case 7: System.out.println("You have chosen to calculate your final bill."); System.out.println("Please wait while your request is being processed......."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal();break;

default: System.out.println("Invalid Choice."); System.out.println("You will now be redirected to: Thriller Movies"); System.out.println("Please wait and do not type anything"); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} thrilMov();break;

}}

public void comMov()throws IOException{ System.out.println("You have chosen Comedy Movies!!");

System.out.println("1. Harold & Kumar: Escape From Guantamino Bay"); System.out.println("2. Hot Tub Time Machine");

System.out.println("3. A Diary Of A Whimpy Kid."); System.out.println("4. Our Family Wedding"); System.out.println("5. Cop Out"); System.out.println("6. Calculate Bill"); f=Integer.parseInt(in.readLine());

switch(f) { case 1: System.out.println("You have chosen Harold & Kumar: Escape From Guantamino Bay!");

System.out.println("Each DVD of Harold & Kumar: Escape From Guantamino Bay costs Rs.200."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); int cost= 200; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break;

case 2: engMov(); break; case 3: comMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break;

}} break; case 2: System.out.println("You have chosen Hot Tub Time Machine!");

System.out.println("Each DVD of Hot Tub Time Machine costs Rs.100."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine());

cost= 100; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov();

break; case 3: comMov(); break;

}} break; case 3: System.out.println("You have chosen A Diary Of A Whimpy Kid!");

System.out.println("Each DVD of A Diary Of A Whimpy Kid costs Rs.130."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 130; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov();

break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break;

}} break; case 4: System.out.println("You have chosen Our Family Wedding!");

System.out.println("Each DVD of Our Family Wedding costs Rs.150."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 150; totalc= quantity*cost; System.out.println("The total cost is given below.");

System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!"); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break;

}} break; case 5: System.out.println("You have chosen Cop Out!");

System.out.println("Each DVD of Cop Out costs Rs.180."); System.out.println("How many DVDs do you want?"); quantity=Integer.parseInt(in.readLine()); cost= 180; totalc= quantity*cost; System.out.println("The total cost is given below."); System.out.println("Rs."+totalc); System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); h=Integer.parseInt(in.readLine()); switch(h) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break; default: System.out.println("Invalid choice!"); System.out.println("Please enter correct choice!");

System.out.println(" Press '1' to go back to: Language Menu"); System.out.println(" Press '2' to go back to: Category Menu."); System.out.println(" Press '3' to go back to: Comedy Movies"); c=Integer.parseInt(in.readLine()); switch(c) {case 1: primeC(); break; case 2: engMov(); break; case 3: comMov(); break;

}} break; case 6: System.out.println("You have chosen to calculate your final bill."); System.out.println("Please wait while your request is being processed......."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal();break;

default: System.out.println("You have entered wrong choice.");

System.out.println("You will now be redirected to: Comedy Movies"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} latMov(); break; } }

public void billCal()throws IOException{

System.out.println("==================================================================== ====================================================================="); System.out.println("You have chosen to calculate your final bill"); System.out.println("Please confirm wether you want to have your final bill"); System.out.println("1. Calculate my bill."); System.out.println("2. Press '2' to go back to: Language Menu"); ba=Integer.parseInt(in.readLine()); switch(ba) { case 1: finalBill(); break; case 2: primeC(); }

public void finalBill()throws IOException{ long TOTAL= totalp+totalp1+totalp2+totalp3+totalp4; long TOTAL1= totalc+totalc1+totalc2+totalc3+totalc4+totalc5; long TOTAL2= totalpr+totalpr1+totalpr2+totalpr3+totalpr4; long TOTAL3= totalpj+totalpj1+totalpj2+totalpj3+totalpj4; long TOTAL4= totalcs+totalcs1+totalcs2+totalcs3+totalcs4; long TOTAL5= totalcd+totalcd1+totalcd2; int prn; long TOTAL6= totalpc+totalpc1+totalpc2+totalpc3+totalpc4; long finalTOT= TOTAL+TOTAL1+TOTAL2+TOTAL3+TOTAL4+TOTAL5+TOTAL6; double Vat= 14.5/1000*finalTOT; double convTax= 3/100*finalTOT; double grandTOT= finalTOT+Vat+convTax;

System.out.println("._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._."); System.out.println("Bill Amount: Rs."+finalTOT); System.out.println("Value Added Tax: Rs."+Vat); System.out.println("Convinience Charges: Rs."+convTax);

System.out.println("____________________________________________________________________ _____________________________________________________________________________________ ______"); System.out.println("GRAND TOTAL: Rs."+grandTOT);

System.out.println("====================================================================

===================================================================================== ================"); System.out.println("How would you like to pay your bill?"); System.out.println("1. Credit Card"); System.out.println("2. Debit Card"); System.out.println("3. Cash Payment"); prn=Integer.parseInt(in.readLine()); switch(prn) { case 1: credit(); break; case 2: debit(); break; case 3: cash(); break;

default: System.out.println("You have entered wrong choice."); System.out.println("You will now be redirected to: Bill Calculation"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} billCal(); } }

public void credit() throws IOException{ System.out.println("**********CREDIT CARD Payment************"); System.out.println("Card Category:"); System.out.println("1. Visa"); System.out.println("2. Master Card"); System.out.println("3. American Express"); int tr=Integer.parseInt(in.readLine()); switch(tr) { case 1: System.out.println("You have chosen Visa Card"); System.out.println("Enter Card Number:"); int cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:"); String nameC=in.readLine(); System.out.println("Enter CCV"); int ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!");

System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); break; case 2: System.out.println("You have chosen Master Card"); System.out.println("Enter Card Number:"); cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:"); nameC=in.readLine(); System.out.println("Enter CCV"); ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); break; case 3:System.out.println("You have chosen American Express!"); System.out.println("Enter Card Number:"); cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:");

nameC=in.readLine(); System.out.println("Enter CCV"); ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); break; default: System.out.println("INVALID CHOICE"); break; }}

public void debit() throws IOException{ System.out.println("**********DEBIT CARD Payment************"); System.out.println("Card Category:"); System.out.println("1. HDFC"); System.out.println("2. Axis Bank"); System.out.println("3. ICICI Bank"); System.out.println("4. SBI");

System.out.println("5. Canara Bank"); int trn=Integer.parseInt(in.readLine()); switch(trn) { case 1: System.out.println("You have chosen HDFC Debit Card"); System.out.println("Enter Card Number:"); int cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:"); String nameC=in.readLine(); System.out.println("Enter CCV"); int ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); break; case 2: System.out.println("You have chosen Axis Bank Debit Card"); System.out.println("Enter Card Number:"); cN=Integer.parseInt(in.readLine());

System.out.println("Enter Name on Card:"); nameC=in.readLine(); System.out.println("Enter CCV"); ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); break; case 3: System.out.println("You have chosen ICICI Bank Debit Card"); System.out.println("Enter Card Number:"); cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:"); nameC=in.readLine(); System.out.println("Enter CCV"); ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{

Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); break; case 4: System.out.println("You have chosen SBI Debit Card"); System.out.println("Enter Card Number:"); cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:"); nameC=in.readLine(); System.out.println("Enter CCV"); ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *");

break; case 5: System.out.println("You have chosen Canara Bank Debit Card"); System.out.println("Enter Card Number:"); cN=Integer.parseInt(in.readLine()); System.out.println("Enter Name on Card:"); nameC=in.readLine(); System.out.println("Enter CCV"); ccv=Integer.parseInt(in.readLine()); System.out.println("Your request is being processed........"); System.out.println("Please do not type in anything."); try{ Thread.sleep(3000); // Sleep for 3 sec } catch(InterruptedException e){} System.out.println("Thank You for Visiting Our Movie Library!"); System.out.println("Please Visit Again!"); System.out.println("************************************************************END OF TRANSACTION************************************************************************* *"); }}

public void cash() throws IOException{ System.out.println("You have chosen Cash Payment"); System.out.println("Please Make your payment at the reception");

System.out.println("Thank You! Please Visit Again.");

System.out.println("************************************************************END OF TRANSACTION************************************************************************* *");

} }

You might also like