import javax.swing.*;
class final1
{
public static void main(String[]args)
{
//
String[]TARIKHPERJALANAN=new String[10];
String[]MASAPERJALANAN=new String[10];
String[]KATEGORI=new String [10];
String[]BUS=new String[10];
int[]TEMPATDUDUK1=new int[10];
Double[]HARGATIKET1=new Double[10];
int i,j,BILANGAN1;
String BILANGAN,TEMPATDUDUK,HARGATIKET,KUANTANKL,KLKUANTA N;
System.out.println("______________________________ __________________________");
System.out.println("\n");
System.out.println("\t\tBULAN RESTU SDN BHD");
System.out.println("\n");
System.out.println("BIL\tPERJALANAN\tTARIKH\tMASA\ tKATEGORI\t HARGA TIKET");
System.out.println("---\t---------\t------\t----\t--------\t -----------");
for(i=0;i<2;i++)
{
BUS[i]=JOptionPane.showInputDialog(null,"PERJALANAN BUS=");
TARIKHPERJALANAN[i]=JOptionPane.showInputDialog(null,"TARIKH PERJALANAN");
MASAPERJALANAN[i]=JOptionPane.showInputDialog(null,"MASA PERJALANAN");
KATEGORI[i]=JOptionPane.showInputDialog(null,"KATEGORI");
HARGATIKET=JOptionPane.showInputDialog(null,"HARGA TIKET");
HARGATIKET1[i]=Double.parseDouble(HARGATIKET);
System.out.print((i+1) +".");
System.out.print("\t" +BUS[i]);
System.out.print("\t" +TARIKHPERJALANAN[i]);
System.out.print("\t" +MASAPERJALANAN[i]);
System.out.print("\t" +KATEGORI[i]);
System.out.print("\t\t" +HARGATIKET1[i]+"\n");
}
BILANGAN=JOptionPane.showInputDialog(null,"BILANGA N TIKET");
BILANGAN1=Integer.parseInt(BILANGAN);
for(j=0;j<=BILANGAN1;j++)
{
System.out.println("______________________________ __________________________");
System.out.println("\n");
System.out.println("\t\tBULAN RESTU SDN BHD");
System.out.println("\n");
System.out.println("\t\t "+BUS[j]);
System.out.println("\n");
System.out.println("Tarikh Perjalanan= " +TARIKHPERJALANAN[j]+"\n");
System.out.println("Masa Perjalanan= " +MASAPERJALANAN[j]+"\n");
System.out.println("Kategori= " +KATEGORI[j]+"\n");
System.out.println("Tempat Duduk= "+(j+1)+ "."+"\n");
System.out.println("Harga Tiket= RM"+ HARGATIKET1[j]);
}
}
}