Twentythree Zone

import java.io.*;

public class parkir
{
 public static void main(String args[])
 {
String B,Ket;
  try
  {
BufferedReader NilaiA=new BufferedReader (new InputStreamReader (System.in));
System.out.print("Nama : ");
String input1=NilaiA.readLine();

BufferedReader NilaiB=new BufferedReader (new InputStreamReader (System.in));
System.out.print("No plat : ");
String input2=NilaiB.readLine();
BufferedReader NilaiC=new BufferedReader (new InputStreamReader (System.in));
System.out.print("Durasi :");
String input3=NilaiC.readLine();
int C=Integer.parseInt(input3);

if  ((C>=1) && (C<=60))
{
B=" Rp 2000 ";
Ket="PPN sebesar Rp 500 Total bayar = Rp.2500 ";
}


else if  ((C>60) && (C<=120))
{
B=" Rp 4000 ";
Ket="PPN sebesar Rp 500 Total bayar = Rp.4500 ";
}


else if  ((C>120) && (C<=180))
{
B=" Rp 6000 ";
Ket=" Anda Dikenakan Denda Sebesar Rp 1000+PPN sebesar Rp 500 Total bayar = Rp.7500 ";
}


else
{
B=" Rp 8000 ";
Ket=" Anda Dikenakan Denda Sebesar Rp 1000+PPN sebesar Rp 500 Total bayar = Rp.9500 ";
}
System.out.println("Total Bayar Anda  ="+B);
System.out.print("Keterangan = "+Ket);
}

catch(IOException e)
{
e.printStackTrace ();

}
}
}


Categories:

Leave a Reply