KELAS : XI RPL
MATAPELAJARAN : Pemograman Berorientasi Objek
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mid_pbo;
import java.util.Scanner;
/**
*
* @author DB 4
*/
public class MID_PBO {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
String internet;
int paketinternet;
System.out.println("==============================================================");
System.out.println("1. 14GB 3G-4G, 2GB Videomax, Exp 30Hari (Rp 115.000)");
System.out.println("2. 12GB 3G-4G, 2GB Videomax, Exp 30Hari (Rp 96.000)");
System.out.println("3. 14GB 3G-4G, Exp 15Hari (Rp 100.000)");
System.out.println("4. 12GB 3G-4G, Exp 15Hari (Rp 80.000)");
System.out.println("==============================================================");
System.out.println("pilih Paket Internet :");
paketinternet =scn.nextInt();
if(paketinternet==1){
System.out.println("Paket Internet = 14GB 3G-4G, 2GB Videomax");
System.out.println("Masa Berlaku = 30 Hari");
System.out.println("Harga = Rp 115.000");
}
else if(paketinternet==2){
System.out.println("Paket Internet = 12GB 3G-4G, 2GB Videomax");
System.out.println("Masa Berlaku = 30 Hari");
System.out.println("Harga = Rp 96.000");
}
else if(paketinternet==3){
System.out.println("Paket Internet = 14GB 3G-4G");
System.out.println("Masa Berlaku = 15 Hari");
System.out.println("Harga = Rp 100.000");
}
else if(paketinternet==4){
System.out.println("Paket Internet = 12GB 3G-4G");
System.out.println("Masa Berlaku = 15 Hari");
System.out.println("Harga = Rp 80.000");
}
else{
System.out.println("Maaf Paket Internet Tidak Tersedia, Silahkan Coba Lagi");
}
// TODO code application logic here
}
}