Program Java :Koding Program NetBeans Tugas Pertemuan 5

Program Java :Koding Program NetBeans Tugas Pertemuan 5

Dosen pengampu : Fince Tinus Waruwu,M.Kom

Koding Program NetBeans
Penggunaan Fungsi Case Jamak pada Tipe Data String dan Integer

package pertemuan6;
import java.util.Scanner;
public class Pertemuan6 {
public static void main(String[] args) {
         Scanner nik=new Scanner (System.in);

        System.out.print("NIK =");

        int n=nik.nextInt();

    

        switch(n){

            case 15110643:

            System.out.println("Nama = Herianata Barasa");

            System.out.println("Alamat = Jalan Pertahanan Patumbak");

            System.out.println("Pendidikan = S1");

            break;

            case 15119900:

            System.out.println("Nama = Irwan");

            System.out.println("Alamat = Jalan Pertahanan No 17");

            System.out.println("Pendidikan = S1");

            break;

            case 15115511:

            System.out.println("Nama = Roy");

            System.out.println("Alamat = Jalan Denai No 17");

            System.out.println("Pendidikan = S1");

            break;

            case 15112398:

            System.out.println("Nama = Niko");

            System.out.println("Alamat = Jalan Pertahanan No 100");

            System.out.println("Pendidikan = S1");

            break;

            case 15119767:

            System.out.println("Nama = Harjono");

            System.out.println("Alamat = Jalan Pertahanan No 19");

            System.out.println("Pendidikan = S1");

            break;

            case 15113124:

            System.out.println("Nama = Netty");

            System.out.println("Alamat = Jalan Pertahanan No 30");

            System.out.println("Pendidikan = S1");

            break;

            case 15114466:

            System.out.println("Nama = Zemey");

            System.out.println("Alamat = Jalan Pahlawan No 99");

            System.out.println("Pendidikan = S1");

            break;

            case 15119761:

            System.out.println("Nama = Pikdi");

            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 :


Komentar

Postingan populer dari blog ini

Flowchart Menampilkan Bilangan Genap Mullai dari Angka 2 sampai n, Kecuali Bilangan Genap yang Kelipatan 4

Flowchart Menampilkan Bilangan Ganjil di antara Bilangan 10 sampai 30

Flowchart Mencari Maks dan Min dari suatu Deret Bilangan