Program Aplikasi Gaji Pegawai Negeri Sipil PNS Dengan C++

Program Aplikasi Gaji Pegawai Negeri Sipil PNS Dengan C++

Bismillahirahmanirrahim untuk share kali ini saya akan share aplikasi yang telah saya buat yaitu aplikasi sebuah informasi gaji dari pegawai negeri sipil atau pns lengkap dari gol 1 sampai 4 dengan menggunakan bahasa pemrograman c++ dan menggunakan software aplikasi borland c++.

Fitur aplikasi :

  • Input NIP
  • Input Nama
  • Input Golongan
  • Input Ruang
  • Input Masa Kerja
  • Input Status
  • Input Jumlah Anak
  • Input Potongan
Output Aplikasi :
  • NIP
  • Nama
  • Gol
  • Ruang
  • Masa kerja
  • Status
  • Jumlah Anak
  • Gaji Pokok
  • Tunjangan isteri
  • Tunjangan anak
  • Tunjangan beras
program c++ borland menghitung gaji seorang pns



/**
 bissmillahirahmanirrahim
   salam ramah dari saya :), imf
**/

#include <stdio.h>
#include <conio.h>
#include <iostream.h>

tambah(int g, char r, int m);
tunjangan_istri();
tunjangan_anak();
tunjangan_beras();
total_pendapatan();
gaji_bersih();



int gapok=0,total,gaji,tunj_istri,jml_anak=0,tunj_anak,banyak_anggota,tunj_beras,total_pend,potongan,gaji_ber;
char status = 'K';

main(){
 int g,m;
 char r,nip[20],nama[30];
 clrscr();

 cout<<"----------------------------------------n";
 cout<<"program hitung gaji pegawai negeri sipiln";
 cout<<"----------------------------------------n";
 cout<<"[gol 1-3 ruang a-d] [golongan 4 ruang a-e]n";
 cout<<"----------------------------------------n";

 //dihandap kode jang input data :)
 cout<<"Masukan nip                    :";cin>>nip;
 //cout<<"Masukan nama                   :";cin>>nama;
 printf("Masukan Nama                  :");scanf ("%[^n]%*c", nama);
 cout<<"Masukan golongan               :";cin>>g;
 cout<<"Masukan ruang [a/b/c/d/e]      :";cin>>r;
 cout<<"Masukan masa kerja             :";cin>>m;
 cout<<"Masukan status menikah [B/K/C] :";cin>>status;

 //tos dugi ka die input datana

 //ieu kode fungsi nu dihandap dipanggil
 tunjangan_anak();
 clrscr();
 cout<<" ---------------------------------------n";
 cout<<"============= DETAIL PNS =================n";
 cout<<"NIP PNS        : "<<nip;cout<<"n";
 cout<<"Nama PNS       : "<<nama;cout<<"n";
 cout<<"Golongan       : "<<g;cout<<"n";
 cout<<"Ruang          : "<<r;cout<<"n";
 cout<<"Masa Kerja     : "<<m;cout<<"n";
 cout<<"Status Menikah : "<<status;cout<<"n";
 cout<<"Jumlah Anak    : "<<jml_anak;cout<<"n";

 cout<<"==========================================n";
 cout<<" ---------------------------------------n";
 cout<<"============= DETAIL GAJI ================n";
 tambah(g,r,m);
 tunjangan_istri();
 tunjangan_beras();
 total_pendapatan();
 cout<<"==========================================n";
 cout<<"nmasukan potongan :";cin>>potongan;
 gaji_bersih();

 getch();
}

//luar main

tunjangan_istri(){
  if(status=='K'||status=='k'){
  tunj_istri=gapok*10/100;
   cout<<"Mendapatkan tunjangan isteri : "<<tunj_istri;
  }else if(status=='B'||status=='b'){
  tunj_istri=0;
   cout<<"Mendapatkan tunjangan isteri : "<<tunj_istri;
  }else if(status=='C'||status=='c'){
  tunj_istri=0;
   cout<<"Mendapatkan tunjangan isteri      : "<<tunj_istri;
  }
}

tunjangan_anak(){
  if(status=='K'||status=='k'){
  cout<<"masukan jumlah anak :";cin>>jml_anak;
  gaji=gapok*5/100;
  tunj_anak=jml_anak*gaji;
   cout<<"ntunjangan anak sebesar          :"<<tunj_anak;
  }else if(status=='B'||status=='b'){
   tunj_anak=0;
  }else if(status=='C'||status=='c'){
   tunj_anak=0;
  }
}

tunjangan_beras(){
 if(status=='K'||status=='k'){
    banyak_anggota=jml_anak+2;
    tunj_beras=banyak_anggota*12000*5;
    cout<<"nTunjangan beras sebesar        : "<<tunj_beras;
 }else if(status=='B'){
  banyak_anggota=1;
  tunj_beras=banyak_anggota*12000*5;
  cout<<"nTunjangan beras sebesar          : "<<tunj_beras;
 }else if(status=='C'||status=='c'){
  banyak_anggota=1;
  tunj_beras=banyak_anggota*12000*5;
  cout<<"nTunjangan beras sebesar          : "<<tunj_beras;
 }
}

total_pendapatan(){
  total_pend=gapok+tunj_istri+tunj_anak+tunj_beras;
  cout<<"nTotal pendapatan anda adalah     : "<<total_pend;cout<<"n";
}

gaji_bersih(){
 gaji_ber=total_pend-potongan;
 cout<<"nAnda mendapatkan potongan sebesar :"<<gaji_ber;
}

//fungsi proses na
tambah(int g, char r, int m){

//penyeleksian data tina inputan

if(g==1&&m==0&&r=='a'){
  gapok=1486500;
  cout<<"nAnda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==0&&m==1&&r=='b'){
  gapok=1486500;
  cout<<"Anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==0&&m==1&&r=='c'){
  gapok=1486500;
  cout<<"Anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==0&&m==1&&r=='d'){
  gapok=1486500;
  cout<<"Anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

if(g==1&&m==1&&r=='a'){
  gapok=1486500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==1&&r=='b'){
  gapok=1486500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==1&&r=='c'){
  gapok=1486500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==1&&r=='d'){
  gapok=1486500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==2&&r=='a'){
  gapok=1533400;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==2&&r=='b'){
  gapok=1533400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==2&&r=='c'){
  gapok=1533400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==2&&r=='d'){
  gapok=1533400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==3&&r=='a'){
  gapok=1533400;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==1&&r=='b'){
  gapok=1623400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==3&&r=='c'){
  gapok=1692100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==3&&r=='d'){
  gapok=1763600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==4&&r=='a'){
  gapok=1581700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==4&&r=='b'){
  gapok=1581700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==4&&r=='c'){
  gapok=1581700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==4&&r=='d'){
  gapok=1581700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==5&&r=='a'){
  gapok=1581700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==5&&r=='b'){
  gapok=1674500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==5&&r=='c'){
  gapok=1745400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==5&&r=='d'){
  gapok=1819200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==6&&r=='a'){
  gapok=1631500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==6&&r=='b'){
  gapok=1631500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==6&&r=='c'){
  gapok=1631500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==6&&r=='d'){
  gapok=1631500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==7&&r=='a'){
  gapok=1631500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==7&&r=='b'){
  gapok=1727300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==7&&r=='c'){
  gapok=1800300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==7&&r=='d'){
  gapok=1876500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==8&&r=='a'){
  gapok=1682900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==8&&r=='b'){
  gapok=1682900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==8&&r=='c'){
  gapok=1682900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==8&&r=='d'){
  gapok=1682900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==9&&r=='a'){
  gapok=1682900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==9&&r=='b'){
  gapok=1781700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==9&&r=='c'){
  gapok=1857000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==9&&r=='d'){
  gapok=1935600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==10&&r=='a'){
  gapok=1735900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==10&&r=='b'){
  gapok=1735900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==10&&r=='c'){
  gapok=1735900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==10&&r=='d'){
  gapok=1735900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==11&&r=='a'){
  gapok=1735900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==11&&r=='b'){
  gapok=1837800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==11&&r=='c'){
  gapok=1915500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==11&&r=='d'){
  gapok=1996500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==12&&r=='a'){
  gapok=1790500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==12&&r=='b'){
  gapok=1790500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==12&&r=='c'){
  gapok=1790500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==12&&r=='d'){
  gapok=1790500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==13&&r=='a'){
  gapok=1790500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==13&&r=='b'){
  gapok=1895700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==13&&r=='c'){
  gapok=1975800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==13&&r=='d'){
  gapok=2059400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==14&&r=='a'){
  gapok=1846900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==14&&r=='b'){
  gapok=1846900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==14&&r=='c'){
  gapok=1846900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==14&&r=='d'){
  gapok=1846900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==15&&r=='a'){
  gapok=1846900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==15&&r=='b'){
  gapok=1955400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==15&&r=='c'){
  gapok=2038100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==15&&r=='d'){
  gapok=2124300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==16&&r=='a'){
  gapok=1905100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==16&&r=='b'){
  gapok=1905100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==16&&r=='c'){
  gapok=1905100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==16&&r=='d'){
  gapok=1905100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==17&&r=='a'){
  gapok=1905100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==17&&r=='b'){
  gapok=2016900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==17&&r=='c'){
  gapok=2102300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==17&&r=='d'){
  gapok=2191200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==18&&r=='a'){
  gapok=1965100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==18&&r=='b'){
  gapok=1965100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==18&&r=='c'){
  gapok=1965100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==18&&r=='d'){
  gapok=1965100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==19&&r=='a'){
  gapok=1965100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==19&&r=='b'){
  gapok=2080500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==19&&r=='c'){
  gapok=2168500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==19&&r=='d'){
  gapok=2260200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==20&&r=='a'){
  gapok=2027000;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==20&&r=='b'){
  gapok=2027000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==20&&r=='c'){
  gapok=2027000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==20&&r=='d'){
  gapok=2027000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==21&&r=='a'){
  gapok=2027000;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==21&&r=='b'){
  gapok=2146000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==21&&r=='c'){
  gapok=2236800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==21&&r=='d'){
  gapok=2331400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==22&&r=='a'){
  gapok=2090800;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==22&&r=='b'){
  gapok=2090800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==22&&r=='c'){
  gapok=2090800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==22&&r=='d'){
  gapok=2090800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==23&&r=='a'){
  gapok=2090800;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==23&&r=='b'){
  gapok=2213600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==23&&r=='c'){
  gapok=2307200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==23&&r=='d'){
  gapok=2404800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==24&&r=='a'){
  gapok=2156700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==24&&r=='b'){
  gapok=2156700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==24&&r=='c'){
  gapok=2156700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==24&&r=='d'){
  gapok=2156700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==25&&r=='a'){
  gapok=2156700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==25&&r=='b'){
  gapok=2283300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==25&&r=='c'){
  gapok=2379900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==25&&r=='d'){
  gapok=2480500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==26&&r=='a'){
  gapok=2224600;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==26&&r=='b'){
  gapok=2224600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==26&&r=='c'){
  gapok=2224600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==26&&r=='d'){
  gapok=2224600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  if(g==1&&m==27&&r=='a'){
  gapok=2224600;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==26&&r=='b'){
  gapok=2355200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==27&&r=='c'){
  gapok=2545800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==27&&r=='d'){
  gapok=2558700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //golongan 2
  //golongan 2
  //golongan 2
  //golongan 2

  //masa kerja 0
  if(g==2&&m==0&&r=='a'){
  gapok=1926000;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==0&&r=='b'){
  gapok=1926000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==0&&r=='c'){
  gapok=1926000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==0&&r=='d'){
  gapok=1926000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 1
  if(g==2&&m==1&&r=='a'){
  gapok=1956300;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==1&&r=='b'){
  gapok=1956300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==1&&r=='c'){
  gapok=1956300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==1&&m==1&&r=='d'){
  gapok=1956300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 2
  if(g==2&&m==2&&r=='a'){
  gapok=1956300;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==2&&r=='b'){
  gapok=1956300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==2&&r=='c'){
  gapok=1956300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==2&&r=='d'){
  gapok=1956300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 3
  if(g==2&&m==3&&r=='a'){
  gapok=1956300;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==1&&r=='b'){
  gapok=2103300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==3&&r=='c'){
  gapok=2192300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==3&&r=='d'){
  gapok=2285000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 4
  if(g==2&&m==4&&r=='a'){
  gapok=2285000;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==4&&r=='b'){
  gapok=2285000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==4&&r=='c'){
  gapok=2285000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==4&&r=='d'){
  gapok=2285000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 5
  if(g==2&&m==5&&r=='a'){
  gapok=2081500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==5&&r=='b'){
  gapok=2169500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==5&&r=='c'){
  gapok=2261300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==5&&r=='d'){
  gapok=2357000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 6
  if(g==2&&m==6&&r=='a'){
  gapok=2357000;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==6&&r=='b'){
  gapok=2357000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==6&&r=='c'){
  gapok=2357000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==6&&r=='d'){
  gapok=2357000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 7
  if(g==2&&m==7&&r=='a'){
  gapok=2147000;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==7&&r=='b'){
  gapok=2237900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==7&&r=='c'){
  gapok=2332500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==7&&r=='d'){
  gapok=2431200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 8
  if(g==2&&m==8&&r=='a'){
  gapok=2431200;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==8&&r=='b'){
  gapok=2431200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==8&&r=='c'){
  gapok=2431200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==8&&r=='d'){
  gapok=2431200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 9
  if(g==2&&m==9&&r=='a'){
  gapok=2214700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==9&&r=='b'){
  gapok=2308300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==9&&r=='c'){
  gapok=2406000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==9&&r=='d'){
  gapok=2507800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 10
  if(g==2&&m==10&&r=='a'){
  gapok=2507800;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==10&&r=='b'){
  gapok=2507800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==10&&r=='c'){
  gapok=2507800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==10&&r=='d'){
  gapok=2507800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 11
  if(g==2&&m==11&&r=='a'){
  gapok=2284400;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==11&&r=='b'){
  gapok=2381100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==11&&r=='c'){
  gapok=2481800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==11&&r=='d'){
  gapok=2586700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 12
  if(g==2&&m==12&&r=='a'){
  gapok=2586700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==12&&r=='b'){
  gapok=2586700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==12&&r=='c'){
  gapok=2586700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==12&&r=='d'){
  gapok=2586700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 13
  if(g==2&&m==13&&r=='a'){
  gapok=2356400;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==13&&r=='b'){
  gapok=2456000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==13&&r=='c'){
  gapok=2559900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==13&&r=='d'){
  gapok=2668200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 14
  if(g==2&&m==14&&r=='a'){
  gapok=2668200;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==14&&r=='b'){
  gapok=2668200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==14&&r=='c'){
  gapok=2668200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==14&&r=='d'){
  gapok=2668200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 15
  if(g==2&&m==15&&r=='a'){
  gapok=2430600;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==15&&r=='b'){
  gapok=2533400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==15&&r=='c'){
  gapok=2640600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==15&&r=='d'){
  gapok=2752300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 16
  if(g==2&&m==16&&r=='a'){
  gapok=2752300;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==16&&r=='b'){
  gapok=2752300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==16&&r=='c'){
  gapok=2752300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==16&&r=='d'){
  gapok=2752300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 17
  if(g==2&&m==17&&r=='a'){
  gapok=2507100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==17&&r=='b'){
  gapok=2613200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==17&&r=='c'){
  gapok=2723700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==17&&r=='d'){
  gapok=2838900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 18
  if(g==2&&m==18&&r=='a'){
  gapok=2838900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==18&&r=='b'){
  gapok=2838900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==18&&r=='c'){
  gapok=2838900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==18&&r=='d'){
  gapok=2838900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 19
  if(g==2&&m==19&&r=='a'){
  gapok=2586100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==19&&r=='b'){
  gapok=2695500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==19&&r=='c'){
  gapok=2809500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==19&&r=='d'){
  gapok=2928300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 20
  if(g==2&&m==20&&r=='a'){
  gapok=2928300;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==20&&r=='b'){
  gapok=2928300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==20&&r=='c'){
  gapok=2928300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==20&&r=='d'){
  gapok=2928300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 21
  if(g==2&&m==21&&r=='a'){
  gapok=2667500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==21&&r=='b'){
  gapok=2780400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==21&&r=='c'){
  gapok=2898000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==21&&r=='d'){
  gapok=3020600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 22
  if(g==2&&m==22&&r=='a'){
  gapok=3020600;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==22&&r=='b'){
  gapok=3020600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==22&&r=='c'){
  gapok=3020600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==22&&r=='d'){
  gapok=3020600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 23
  if(g==2&&m==23&&r=='a'){
  gapok=2751600;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==1&&m==23&&r=='b'){
  gapok=2867900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==23&&r=='c'){
  gapok=2989300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==23&&r=='d'){
  gapok=3115700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 24
  if(g==2&&m==24&&r=='a'){
  gapok=3115700;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==24&&r=='b'){
  gapok=3115700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==24&&r=='c'){
  gapok=3115700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==24&&r=='d'){
  gapok=3115700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 25
  if(g==2&&m==25&&r=='a'){
  gapok=2838200;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==25&&r=='b'){
  gapok=2958300;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==25&&r=='c'){
  gapok=3083400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==25&&r=='d'){
  gapok=3213800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 26
  if(g==2&&m==26&&r=='a'){
  gapok=3213800;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==26&&r=='b'){
  gapok=3213800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==26&&r=='c'){
  gapok=3213800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==26&&r=='d'){
  gapok=3213800;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 27
  if(g==2&&m==27&&r=='a'){
  gapok=2927600;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==26&&r=='b'){
  gapok=3051400;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==27&&r=='c'){
  gapok=3180500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==27&&r=='d'){
  gapok=3315100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 28
  if(g==2&&m==28&&r=='a'){
  gapok=3315100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==28&&r=='b'){
  gapok=3315100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==28&&r=='c'){
  gapok=3315100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==28&&r=='d'){
  gapok=3315100;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 29
  if(g==2&&m==29&&r=='a'){
  gapok=3019800;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==29&&r=='b'){
  gapok=3147600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==29&&r=='c'){
  gapok=3147600;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==29&&r=='d'){
  gapok=3419500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 30
  if(g==2&&m==30&&r=='a'){
  gapok=3419500;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==30&&r=='b'){
  gapok=3419500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==30&&r=='c'){
  gapok=3419500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==30&&r=='d'){
  gapok=3419500;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 31
  if(g==2&&m==31&&r=='a'){
  gapok=3114900;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==31&&r=='b'){
  gapok=3246700;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==31&&r=='c'){
  gapok=3384000;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==31&&r=='d'){
  gapok=3527200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 32
  if(g==2&&m==32&&r=='a'){
  gapok=3527200;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==32&&r=='b'){
  gapok=3527200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==32&&r=='c'){
  gapok=3527200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==32&&r=='d'){
  gapok=3527200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }

  //masa kerja 33
  if(g==2&&m==33&&r=='a'){
  gapok=3213100;
  cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
  }else if(g==2&&m==33&&r=='b'){
  gapok=3348900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==33&&r=='c'){
  gapok=3348900;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }else if(g==2&&m==33&&r=='d'){
  gapok=3638200;
  cout<<"anda mendapat gaji pokok : "<<gapok;cout<<" rupiah";
  }


  //golongan 3
  //golongan 3
  //golongan 3

  //masa kerja 0
  if(g==3&&m==0){
   if(r=='a'){
      gapok=2456700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2560600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2668900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=2781800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 1
  if(g==3&&m==1){
   if(r=='a'){
      gapok=2781800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2781800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2781800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=2781800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 2
  if(g==3&&m==2){
   if(r=='a'){
      gapok=2534000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2641200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2641200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=2869400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 3
  if(g==3&&m==3){
   if(r=='a'){
      gapok=2869400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2869400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2869400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=2869400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 4
  if(g==3&&m==4){
   if(r=='a'){
      gapok=2613800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2724400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2839700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=2959800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 5
  if(g==3&&m==5){
   if(r=='a'){
      gapok=2959800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2959800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2959800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=2959800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 6
  if(g==3&&m==6){
   if(r=='a'){
      gapok=2696200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2810200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=2929100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3053000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 7
  if(g==3&&m==7){
   if(r=='a'){
      gapok=3053000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3053000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3053000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3053000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 8
  if(g==3&&m==8){
   if(r=='a'){
      gapok=2781100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2898700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3021300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3149100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 9
  if(g==3&&m==9){
   if(r=='a'){
      gapok=3149100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3149100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3149100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3149100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 10
  if(g==3&&m==10){
   if(r=='a'){
      gapok=2868700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=2990000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3116500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3248300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 11
  if(g==3&&m==11){
   if(r=='a'){
      gapok=3248300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3248300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3248300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3248300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 12
  if(g==3&&m==12){
   if(r=='a'){
      gapok=2959000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3084200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3214700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3350600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 13
  if(g==3&&m==13){
   if(r=='a'){
      gapok=3350600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3350600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3350600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3350600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 14
  if(g==3&&m==14){
   if(r=='a'){
      gapok=3052200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3181300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3315900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3456200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 15
  if(g==3&&m==15){
   if(r=='a'){
      gapok=3456200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3456200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3456200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3456200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 16
  if(g==3&&m==16){
   if(r=='a'){
      gapok=3148300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3281500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3420300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3565000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 17
  if(g==3&&m==17){
   if(r=='a'){
      gapok=3565000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3565000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3565000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3565000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 18
  if(g==3&&m==18){
   if(r=='a'){
      gapok=3247500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3384900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3528100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3677300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 19
  if(g==3&&m==19){
   if(r=='a'){
      gapok=3677300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3677300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3677300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3677300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 20
  if(g==3&&m==20){
   if(r=='a'){
      gapok=3349800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3491500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3639200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 21
  if(g==3&&m==21){
   if(r=='a'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 22
  if(g==3&&m==22){
   if(r=='a'){
      gapok=3455300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3601400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3753800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 23
  if(g==3&&m==23){
   if(r=='a'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3912600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 24
  if(g==3&&m==24){
   if(r=='a'){
      gapok=3564100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3714900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3872000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4035800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 25
  if(g==3&&m==25){
   if(r=='a'){
      gapok=4035800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4035800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4035800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4035800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 26
  if(g==3&&m==26){
   if(r=='a'){
      gapok=3676400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3831900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3994200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4162900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 27
  if(g==3&&m==27){
   if(r=='a'){
      gapok=4162900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4162900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4162900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4162900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 28
  if(g==3&&m==28){
   if(r=='a'){
      gapok=3792100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3952600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4119700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4294000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 29
  if(g==3&&m==29){
   if(r=='a'){
      gapok=4294000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4294000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4294000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4294000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 30
  if(g==3&&m==30){
   if(r=='a'){
      gapok=3911600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4007000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4249500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4429300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 31
  if(g==3&&m==31){
   if(r=='a'){
      gapok=4429300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4429300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4429300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4429300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 32
  if(g==3&&m==32){
   if(r=='a'){
      gapok=4034800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4205400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4383300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4568800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //golongan 4
  //golongan 4
  //golongan 4

  //masa kerja 0
  if(g==4&&m==0){
   if(r=='a'){
      gapok=2899500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3022100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3149900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3283200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3422100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 1
  if(g==4&&m==1){
   if(r=='a'){
      gapok=3422100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3422100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3422100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3422100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3422100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 2
  if(g==4&&m==2){
   if(r=='a'){
      gapok=2990800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3117300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3249100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3386600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3529800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 3
  if(g==4&&m==3){
   if(r=='a'){
      gapok=3529800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3529800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3529800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3529800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3529800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 4
  if(g==4&&m==4){
   if(r=='a'){
      gapok=3085000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3215500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3351500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3493200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3641000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 5
  if(g==4&&m==5){
   if(r=='a'){
      gapok=3641000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3641000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3641000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3641000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3641000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 6
  if(g==3&&m==6){
   if(r=='a'){
      gapok=3182100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3316700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3457000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3603300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3755700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 7
  if(g==4&&m==7){
   if(r=='a'){
      gapok=3755700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3755700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3755700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3755700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3755700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 8
  if(g==4&&m==8){
   if(r=='a'){
      gapok=3282400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3421200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3565900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3716700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3874000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 9
  if(g==4&&m==9){
   if(r=='a'){
      gapok=3874000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3874000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3874000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3874000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3874000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 10
  if(g==4&&m==10){
   if(r=='a'){
      gapok=3385700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3528900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3678200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3833800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3996000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 11
  if(g==4&&m==11){
   if(r=='a'){
      gapok=3996000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3996000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3996000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3996000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=3996000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 12
  if(g==4&&m==12){
   if(r=='a'){
      gapok=3492400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3640100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3794100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=3954600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4121800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 13
  if(g==4&&m==13){
   if(r=='a'){
      gapok=4121800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4121800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4121800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4121800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 14
  if(g==4&&m==14){
   if(r=='a'){
      gapok=3602400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3754700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=3,913600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4079100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4251600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 15
  if(g==4&&m==15){
   if(r=='a'){
      gapok=4251600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4251600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4251600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4251600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4251600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 16
  if(g==4&&m==16){
   if(r=='a'){
      gapok=3715800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3873000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4036800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4207600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 17
  if(g==4&&m==17){
   if(r=='a'){
      gapok=4207600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4207600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4207600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4207600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='3'){
      gapok=4207600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 18
  if(g==4&&m==18){
   if(r=='a'){
      gapok=3832800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=3995000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4164000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4340100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4523700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 19
  if(g==4&&m==19){
   if(r=='a'){
      gapok=4523700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4523700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4523700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4523700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='3'){
      gapok=4523700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 20
  if(g==4&&m==20){
   if(r=='a'){
      gapok=3953600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4120800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4295100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4476800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4666100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 21
  if(g==4&&m==21){
   if(r=='a'){
      gapok=4666100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4666100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4666100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4666100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4666100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 22
  if(g==4&&m==22){
   if(r=='a'){
      gapok=4078100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4250600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4430400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4617800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4813100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 23
  if(g==4&&m==23){
   if(r=='a'){
      gapok=4813100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4813100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4813100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4813100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='3'){
      gapok=4813100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 24
  if(g==4&&m==24){
   if(r=='a'){
      gapok=4206500;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4384400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4569900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4763200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4964700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 25
  if(g==4&&m==25){
   if(r=='a'){
      gapok=4964700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4964700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4964700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4964700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=4964700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 26
  if(g==4&&m==26){
   if(r=='a'){
      gapok=4339000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4339000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4713800;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=4913200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=5121100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 27
  if(g==3&&m==27){
   if(r=='a'){
      gapok=5121100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=5121100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=5121100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=5121100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=5121100;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 28
  if(g==4&&m==28){
   if(r=='a'){
      gapok=4475700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4665000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=4862300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=5068000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=5282300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 29
  if(g==4&&m==29){
   if(r=='a'){
      gapok=5282300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=5282300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=5282300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=5282300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 30
  if(g==4&&m==30){
   if(r=='a'){
      gapok=4616600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4811900;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=5015400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=5227600;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=5448700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 31
  if(g==4&&m==31){
   if(r=='a'){
      gapok=5448700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=5448700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=5448700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=5448700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=5448700;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }

  //masa kerja 32
  if(g==4&&m==32){
   if(r=='a'){
      gapok=4762000;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='b'){
      gapok=4963400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='c'){
      gapok=5173400;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='d'){
      gapok=5392200;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }else if(r=='e'){
      gapok=5620300;
      cout<<"nanda mendapat gaji pokok :"<<gapok;cout<<" rupiah";
   }
  }



 cout<<endl;

 /**
    i am here, ohh you find me :D
    Congratulations,
    tulisan didalam garis miring ini
 **/
}


Jadi itulah aplikasi penghitungan gaji dari pegawai neger sipil yang mungkin banyak banget kekurangan nya namun bisa kalian jadikan sebuah referensi dalam pengembangan nya.
Program Aplikasi Gaji Pegawai Negeri Sipil PNS Dengan C++ Program Aplikasi Gaji Pegawai Negeri Sipil PNS Dengan C++ Reviewed by kilhem on 12/06/2018 04:10:00 pm Rating: 5

No comments:

Jangan malu untuk berkomentar

Powered by Blogger.