#include <stdio.h>
#include <conio.h>
main()
{
char no_peg [10], nama [25];
int gapok, jjl;
float besar_jjl, tunjangan, total;
printf (" Masukan Nama = "); gets (nama);
printf (" Masukan No Pegawai = "); gets (no_peg);
printf (" Masukan Gaji Pokok = Rp. "); scanf ("%d", &gapok);
printf (" Masukan Jumlah Jam Lembur = "); scanf ("%d", &jjl);
printf ("\n _______________ HASIL KERJA _________________");
printf ("\n Gaji Pokok =Rp %d",gapok);
besar_jjl = (gapok*0.03)*jjl;
printf ("\n Jumlah Upah Lembur =Rp %2.2f",besar_jjl);
tunjangan = (gapok*0.15);
printf ("\n Jumlah Besar Tunjangan =Rp %2.2f",tunjangan);
total = (gapok+tunjangan+besar_jjl);
printf ("\n Total Gaji =Rp %2.2f",total);
printf ("\n ______________ CONGRATULATION _______________");
getch ();
return 0;
}
Tidak ada komentar:
Posting Komentar