package uts.agung;
import java.util.Scanner;
public class UTSAgung {
public static void main(String[] args) {
Scanner nik=new Scanner (System.in);
System.out.print("NIK =");
int n=nik.nextInt();
if (n==15110672){
System.out.println("Nama = Agung Lestari");
System.out.println("Alamat = Jalan Panglima Denai No 16");
System.out.println("Pendidikan = S1");
} else if (n==15119988){
System.out.println("Nama = Riri");
System.out.println("Alamat = Jalan Pertahanan No 17");
System.out.println("Pendidikan = S1");
} else if (n==15118811){
System.out.println("Nama = Ropo");
System.out.println("Alamat = Jalan Denai No 17");
System.out.println("Pendidikan = S1");
} else if (n==15119898){
System.out.println("Nama = Juju");
System.out.println("Alamat = Jalan Pertahanan No 17");
System.out.println("Pendidikan = S1");
} else if (n==15119887){
System.out.println("Nama = Jojo");
System.out.println("Alamat = Jalan Pertahanan No 17");
System.out.println("Pendidikan = S1");
}else if (n==15113434){
System.out.println("Nama = Joyu");
System.out.println("Alamat = Jalan Pertahanan No 30");
System.out.println("Pendidikan = S1");
}else if (n==15115566){
System.out.println("Nama = Jeju");
System.out.println("Alamat = Jalan Pahlawan No 99");
System.out.println("Pendidikan = S1");
}else if (n==15119881){
System.out.println("Nama = Tutu");
System.out.println("Alamat = Jalan Pendidikan No 17");
System.out.println("Pendidikan = S1");
}
Scanner golongan=new Scanner (System.in);
System.out.print("Golongan =");
String g=golongan.nextLine();
if (g.equals("III A")){
int a = 2000000;
System.out.println("Gaji Pokok ="+a);
}else if (g.equals("III B")){
int a = 2700000;
System.out.println("Gaji Pokok ="+a);
} if (g.equals("III C")){
int a = 3800000;
System.out.println("Gaji Pokok ="+a);
}
Scanner jabatan=new Scanner (System.in);
System.out.print("Jabatan =");
String j=jabatan.nextLine();
if (g.equals("III A")){
if (j.equals("Direktur")){
int a = 2000000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("HRD")){
int a = 2000000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("Asisten")){
int a = 2000000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("Staff")){
int a = 2000000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}
}
else if (g.equals("III B")){
if (j.equals("Direktur")){
int a = 2700000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("HRD")){
int a = 2700000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("Asisten")){
int a = 2700000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("Staff")){
int a = 2700000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}
}
else if (g.equals("III C")){
if (j.equals("Direktur")){
int a = 3800000;
double tg= 0.07 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("HRD")){
int a = 3800000;
double tg= 0.05 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("Asisten")){
int a = 3800000;
double tg= 0.03 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}else if (j.equals("Staff")){
int a = 3800000;
double tg= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+tg);
}
}
Scanner status=new Scanner (System.in);
System.out.print("Status =");
String s=status.nextLine();
if (g.equals("III A")){
if (s.equals("Tidak Menikah")){
int a = 2000000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
}else if (s.equals("Menikah")){
int a = 2000000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
}
}
else if (g.equals("III B")){
if (s.equals("Tidak Menikah")){
int a = 2700000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
}else if (s.equals("Menikah")){
int a = 2700000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
}
}
else if (g.equals("III C")){
if (s.equals("Tidak Menikah")){
int a = 3800000;
double tk= 0 *a;
System.out.println("Tunjangan Keluarga ="+tk);
}else if (s.equals("Menikah")){
int a = 3800000;
double tk= 0.04 *a;
System.out.println("Tunjangan Keluarga ="+tk);
}
}
Scanner janak=new Scanner (System.in);
System.out.print("Jumlah Anak =");
int ja=janak.nextInt();
if (g.equals("III A")){
if (ja==0){
int a = 2000000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==1){
int a = 2000000;
double ta= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+ta);
}else if (ja==2){
int a = 2000000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==3){
int a = 2000000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
}
}
else if (g.equals("III B")){
if (ja==0){
int a = 2700000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==1){
int a = 2700000;
double ta= 0.02 *a;
System.out.println("Tunjangan Jabatan ="+ta);
}else if (ja==2){
int a = 2700000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==3){
int a = 2700000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
}
}
else if (g.equals("III C")){
if (ja==0){
int a = 3800000;
double ta= 0 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==1){
int a = 3800000;
double ta= 0.02 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==2){
int a = 3800000;
double ta= 0.03 *a;
System.out.println("Tunjangan Anak ="+ta);
}else if (ja==3){
int a = 3800000;
double ta= 0.05 *a;
System.out.println("Tunjangan Anak ="+ta);
}
}
if (g.equals("III A")){
if(j.equals("Direktur")){
if(s.equals("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);
}
}
else if (j.equals("HRD")){
if (s.equals("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);
}
}
else if(j.equals("Asisten")){
if (s.equals("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);
}
}
else if (j.equals("Staff")){
if(s.equals("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);
}
}
}
else if(g.equals("III B")){
if (j.equals("Direktur")){
if(s.equals("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);
}
}
else if (j.equals("HRD")){
if (s.equals("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);
}
}
else if (j.equals("Asisten")){
if (s.equals("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);
}
}
else if (j.equals("Staff")){
if (s.equals("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);
}
}
}
else if (g.equals("III C")){
if (j.equals("Direktur")){
if (s.equals("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);
}
}
else if (j.equals("HRD")){
if (s.equals("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);
}
}
else if (j.equals("Asisten")){
if (s.equals("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);
}
}
else if (j.equals("Staff")){
if (s.equals("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);
}
}
}
if (g.equals("III A")){
if (j.equals("Direktur")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("HRD")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("Asisten")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("Staff")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
}
else if (g.equals("III B")){
if (j.equals("Direktur")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("HRD")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("Asisten")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("Staff")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
}
else if (g.equals("III C")){
if (j.equals("Direktur")){
if (s.equals("Menikah")){
if (ja==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);
}
else if(ja==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);
}
else if(ja==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);
}
else if(ja==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);
}
}
}
else if (j.equals("HRD")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("Asisten")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
else if (j.equals("Staff")){
if (s.equals("Menikah")){
if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
else if (ja==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);
}
}
}
}
}
}
Maka akan tampil seperti gambar di bawah ini: