Koding Program NetBeans
Penggunaan Fungsi Case Jamak pada Tipe Data String dan Integer
package pertemuan;
import java.util.Scanner;
public class Pertemuan {
public static void main(String[] args) {
Scanner nik=new Scanner (System.in);
System.out.print("NIK =");
int n=nik.nextInt();
switch(n){
case 15110672:
System.out.println("Nama = Agung Lestari");
System.out.println("Alamat = Jalan Panglima Denai No 16");
System.out.println("Pendidikan = S1");
break;
case 15119988:
System.out.println("Nama = Riri");
System.out.println("Alamat = Jalan Pertahanan No 17");
System.out.println("Pendidikan = S1");
break;
case 15118811:
System.out.println("Nama = Ropo");
System.out.println("Alamat = Jalan Denai No 17");
System.out.println("Pendidikan = S1");
break;
case 15119898:
System.out.println("Nama = Jeje");
System.out.println("Alamat = Jalan Pertahanan No 100");
System.out.println("Pendidikan = S1");
break;
case 15119887:
System.out.println("Nama = Jojo");
System.out.println("Alamat = Jalan Pertahanan No 19");
System.out.println("Pendidikan = S1");
break;
case 15113434:
System.out.println("Nama = Joyu");
System.out.println("Alamat = Jalan Pertahanan No 30");
System.out.println("Pendidikan = S1");
break;
case 15115566:
System.out.println("Nama = Jeju");
System.out.println("Alamat = Jalan Pahlawan No 99");
System.out.println("Pendidikan = S1");
break;
case 15119881:
System.out.println("Nama = Tutu");
System.out.println("Alamat = Jalan Pendidikan No 17");
System.out.println("Pendidikan = S1");
break;
}
Scanner golongan=new Scanner (System.in);
System.out.print("Golongan =");
String g=golongan.nextLine();
switch(g){
case "III A":
int a = 2000000;
System.out.println("Gaji Pokok ="+a);
break;
case "III B":
int b = 2700000;
System.out.println("Gaji Pokok ="+b);
break;
case "III C":
int c = 3800000;
System.out.println("Gaji Pokok ="+c);
break;
}
Scanner jabatan=new Scanner (System.in);
System.out.print("Jabatan =");
String j=jabatan.nextLine();
switch (g){
case "III A":
switch (j){
case "Direktur":
int a = 2000000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "HRD":
int a = 2000000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Asisten":
int a = 2000000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Staff":
int a = 2000000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}
}
switch (g){
case "III B":
switch (j){
case "Direktur":
int a = 2700000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "HRD":
int a = 2700000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch(j){
case "Asisten":
int a = 2700000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Staff":
int a = 2700000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
}
switch (g){
case "III C":
switch(j){
case "Direktur":
int a = 3800000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "HRD":
int a = 3800000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Asisten":
int a = 3800000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Staff":
int a = 3800000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
}
Scanner status=new Scanner (System.in);
System.out.print("Status =");
String s=status.nextLine();
switch (g){
case "III A":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
switch (s){
case "Menikah":
int a = 2000000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
}
switch (g){
case "III B":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
switch (s){
case "Menikah":
int a = 2700000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
}
switch (g){
case "III C":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
switch (s){
case "Menikah":
int a = 3800000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
}
Scanner janak=new Scanner (System.in);
System.out.print("Jumlah Anak =");
int ja=janak.nextInt();
switch (g){
case "III A":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+ta);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
}
switch (g){
case "III B":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+ta);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
}
switch (g){
case "III C":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
}
switch (g){
case "III A":
switch (j){
case "Direktur":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.07 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "HRD":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.05 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Asisten":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.03 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Staff":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.02 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (g){
case "III B":
switch (j){
case "Direktur":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.07 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "HRD":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.05 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Asisten":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.03 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Staff":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.02 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (g){
case "III C":
switch (j){
case "Direktur":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.07 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "HRD":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.05 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Asisten":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.03 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Staff":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.02 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (g){
case "III A":
switch (j){
case "Direktur":
switch (s){
case "Menikah":
switch(ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "HRD":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Asisten":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Staff":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
}
switch (g){
case "III B":
switch (j){
case "Direktur":
switch (s){
case "Menikah":
switch(ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "HRD":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Asisten":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Staff":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
}
switch (g){
case "III C":
switch (j){
case "Direktur":
switch (s){
case "Menikah":
switch(ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "HRD":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Asisten":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Staff":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
}
}
}
import java.util.Scanner;
public class Pertemuan {
public static void main(String[] args) {
Scanner nik=new Scanner (System.in);
System.out.print("NIK =");
int n=nik.nextInt();
switch(n){
case 15110672:
System.out.println("Nama = Agung Lestari");
System.out.println("Alamat = Jalan Panglima Denai No 16");
System.out.println("Pendidikan = S1");
break;
case 15119988:
System.out.println("Nama = Riri");
System.out.println("Alamat = Jalan Pertahanan No 17");
System.out.println("Pendidikan = S1");
break;
case 15118811:
System.out.println("Nama = Ropo");
System.out.println("Alamat = Jalan Denai No 17");
System.out.println("Pendidikan = S1");
break;
case 15119898:
System.out.println("Nama = Jeje");
System.out.println("Alamat = Jalan Pertahanan No 100");
System.out.println("Pendidikan = S1");
break;
case 15119887:
System.out.println("Nama = Jojo");
System.out.println("Alamat = Jalan Pertahanan No 19");
System.out.println("Pendidikan = S1");
break;
case 15113434:
System.out.println("Nama = Joyu");
System.out.println("Alamat = Jalan Pertahanan No 30");
System.out.println("Pendidikan = S1");
break;
case 15115566:
System.out.println("Nama = Jeju");
System.out.println("Alamat = Jalan Pahlawan No 99");
System.out.println("Pendidikan = S1");
break;
case 15119881:
System.out.println("Nama = Tutu");
System.out.println("Alamat = Jalan Pendidikan No 17");
System.out.println("Pendidikan = S1");
break;
}
Scanner golongan=new Scanner (System.in);
System.out.print("Golongan =");
String g=golongan.nextLine();
switch(g){
case "III A":
int a = 2000000;
System.out.println("Gaji Pokok ="+a);
break;
case "III B":
int b = 2700000;
System.out.println("Gaji Pokok ="+b);
break;
case "III C":
int c = 3800000;
System.out.println("Gaji Pokok ="+c);
break;
}
Scanner jabatan=new Scanner (System.in);
System.out.print("Jabatan =");
String j=jabatan.nextLine();
switch (g){
case "III A":
switch (j){
case "Direktur":
int a = 2000000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "HRD":
int a = 2000000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Asisten":
int a = 2000000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Staff":
int a = 2000000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}
}
switch (g){
case "III B":
switch (j){
case "Direktur":
int a = 2700000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "HRD":
int a = 2700000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch(j){
case "Asisten":
int a = 2700000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Staff":
int a = 2700000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
}
switch (g){
case "III C":
switch(j){
case "Direktur":
int a = 3800000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "HRD":
int a = 3800000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Asisten":
int a = 3800000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
switch (j){
case "Staff":
int a = 3800000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
break;
}
}
Scanner status=new Scanner (System.in);
System.out.print("Status =");
String s=status.nextLine();
switch (g){
case "III A":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
switch (s){
case "Menikah":
int a = 2000000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
}
switch (g){
case "III B":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
switch (s){
case "Menikah":
int a = 2700000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
}
switch (g){
case "III C":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
switch (s){
case "Menikah":
int a = 3800000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
break;
}
}
Scanner janak=new Scanner (System.in);
System.out.print("Jumlah Anak =");
int ja=janak.nextInt();
switch (g){
case "III A":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+ta);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
}
switch (g){
case "III B":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+ta);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
}
switch (g){
case "III C":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
break;
}
}
switch (g){
case "III A":
switch (j){
case "Direktur":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.07 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "HRD":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.05 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Asisten":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.03 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Staff":
switch (s){
case "Tidak Menikah":
int a = 2000000;
double tg= 0.02 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (g){
case "III B":
switch (j){
case "Direktur":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.07 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "HRD":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.05 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Asisten":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.03 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Staff":
switch (s){
case "Tidak Menikah":
int a = 2700000;
double tg= 0.02 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (g){
case "III C":
switch (j){
case "Direktur":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.07 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "HRD":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.05 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Asisten":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.03 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
switch (j){
case "Staff":
switch (s){
case "Tidak Menikah":
int a = 3800000;
double tg= 0.02 *a;
double tk= 0 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (g){
case "III A":
switch (j){
case "Direktur":
switch (s){
case "Menikah":
switch(ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "HRD":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Asisten":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Staff":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2000000;
double ta= 0 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2000000;
double ta= 0.02 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2000000;
double ta= 0.03 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2000000;
double ta= 0.05 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
}
switch (g){
case "III B":
switch (j){
case "Direktur":
switch (s){
case "Menikah":
switch(ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "HRD":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Asisten":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Staff":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 2700000;
double ta= 0 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 2700000;
double ta= 0.02 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 2700000;
double ta= 0.03 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 2700000;
double ta= 0.05 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
}
switch (g){
case "III C":
switch (j){
case "Direktur":
switch (s){
case "Menikah":
switch(ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch(ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.07 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "HRD":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.05 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Asisten":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.03 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
switch (j){
case "Staff":
switch (s){
case "Menikah":
switch (ja){
case 0:
int a = 3800000;
double ta= 0 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 1:
int a = 3800000;
double ta= 0.02 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 2:
int a = 3800000;
double ta= 0.03 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
switch (ja){
case 3:
int a = 3800000;
double ta= 0.05 *a;
double tg= 0.02 *a;
double tk= 0.04 *a;
double t= 0.03 *a;
double um = 0.04*a;
double p = 0.03*a;
double b = 0.02*a;
double jam =0.01*a;
double pot =p+b+jam;
double toga= a+ta+tk+tg+t+um;
double gb=toga-pot;
System.out.println("Transportasi ="+t);
System.out.println("Uang Makan = "+um);
System.out.println("Pajak = "+p);
System.out.println("BPJS Kesehatan = "+b);
System.out.println("Jamsostek = "+jam);
System.out.println("Total Gaji ="+toga);
System.out.println("Potongan ="+pot);
System.out.println("Gaji Bersih ="+gb);
break;
}
}
}
}
}
}
Pada gambar di bawah ini akan dipaparkan bagian mana yang di input dan bagian mana yang menjadi output :
Tidak ada komentar:
Posting Komentar