Sistem Informasi Pembayaran Gaji Pegawai



Sistem Informasi Pembayaran Gaji Pegawai


#include "iostream.h"
#include "conio.h"
void main(){

             int i,nik[15], gol[15], jumdata=3;
             char * nama ;
             long gaji,pajak,bersih;

             cout <<"\nInformasi Pembuatan Gaji Pegawai" ;
             for(i=0; i<jumdata; i++){
                          cout <<"\nNIK anda : " ; cin>>nik[i] ;
                          cout <<"Gol anda   : " ; cin>>gol[i] ;
             }
             clrscr() ;
             cout<<"\n Informasi Pembuatan Gaji Pegawai" ;
             cout<<"\n-------------------------------------------------------------------------------" ;
             cout<<"\n No   NIK    Nama        Golongan    Gaji pokok        Pajak   Gaji Bersih " ;
             cout<<"\n-------------------------------------------------------------------------------" ;
             for(i=0; i<jumdata; i++){
                          if(nik[i]==1){
                                                nama = "Hendro" ;
                          }else if(nik[i]==2){
                                                nama = "Dian" ;
                          }else if(nik[i]==3){
                                                nama = "Jhoni" ;
                          }

                          if(gol[i]==1){
                                                gaji=1500000;
                          }else if(gol[i]==2){
                                                gaji=2500000;
                          }else if(gol[i]==3){
                                                gaji=3500000;
                          }
                          pajak=0.05*gaji;
                          bersih=gaji-pajak;

                          gotoxy(1,6+i); cout<<i+1;
                          gotoxy(5,6+i); cout<<nik[i];
                          gotoxy(10,6+i); cout<<nama;
                          gotoxy(23,6+i); cout<<gol[i];
                          gotoxy(33,6+i); cout<<gaji;
                          gotoxy(43,6+i); cout<<pajak;
                          gotoxy(53,6+i); cout<<bersih;
             }
             cout<<"\n---------------------------------------------------------------------------------";
             }


Sistem Informasi Pembayaran Gaji Pegawai Sistem Informasi Pembayaran Gaji Pegawai Reviewed by Pak Gulo on Mei 31, 2015 Rating: 5

Tidak ada komentar:

Diberdayakan oleh Blogger.