Sunday, 31 May 2015

Sunday, May 31, 2015

#include "stdio.h"
#include "conio.h"
void main (){
int i,NIK[15],Golongan[15],jumdata=5; 
char *nama;
float pajak,gaji,gajibersih;

printf ("/n input NIK");


printf ("/n input Golongan");


for (i=0; i<jumdata;i+1);

{          
 printf ("/n NIK:"); scanf ("%d",& nama[i]);         
 printf ("/n Golongan:"); scanf ("%",& gaji[i]);
}
clrscr(), printf ("/n Informasi Pembayaran Gaji");

printf ("/n ----------------------");

printf ("/n No NIK Nama Pegawai  Golongan   Gaji Pokok   Pajak  Gaji bersih");

printf ("/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";
}

for (i=0;i<jumdata;i++);    

     if (Golongan[i]= =1){       
      gaji=1500000;   
     }else if (Golongan[i]= =2){       
      gaji=2500000;  
     }else if (Golongan[i]= =3){       
     gaji=.3500000;
 }

Pajak = 0.05 * Gaji;

Gaji Bersih = Gaji- Pajak;

gotoxy (1,6+i):printf ("%d %d %s ", i+1,NIK[i],nama);

gotoxy (30,6+i); printf ("%10.0f %d %10.0f", Golongan[i], gaji, gajibersih,pajak);
 }   
      printf ("/n =========================");   
    }
}

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

 

© 2013 Dimpos Situmorang. All rights resevered. Designed by Templateism

Back To Top