#include <stdio.h>
#include <conio.h>
main()
{
int jamlembur, transport;
long int gajipokok=2944562, gajikotor, totalgajilembur;
long int attendance=50000;
float pajak, gajibersih;
char nama[50];
clrscr();
printf ("Nama Pegawai : ") ;gets (nama);
printf ("Lama Lembur : ") ;scanf("%i",&jamlembur);
totalgajilembur= (long int) 17020.5896*jamlembur;
printf ("Hari Kerja : ") ;scanf("%i",&transport);
transport= (int) 27000*transport;
gajikotor=gajipokok+totalgajilembur+transport+attendance;
pajak=0.02*gajipokok;
gajibersih=gajikotor-pajak;
clrscr();
printf("==========PT.TRAD INDONESIA========== \n");
printf("Hasil Perhitungan \n");
printf("Nama Pegawai : %s\n", nama);
printf("Gaji Pokok : Rp. %li\n", gajipokok);
printf("Lama Lembur : %i jam\n", jamlembur);
printf("Total Gaji Lembur : Rp. %li\n",totalgajilembur);
printf("Transport : Rp. %i\n",transport);
printf("Attendance : Rp. %li\n",attendance);
printf("Gaji Kotor : Rp. %li\n",gajikotor);
printf("Pajak (2%) : Rp. %f\n", pajak);
printf("Gaji Bersih : Rp. %f\n",gajibersih);
getch();
return 0;
}
ADS HERE !!!