Program Gaji Pegawai


Program Gaji_Pegawai;
uses crt;
var
nam_peg:string[25];
nip:string[12];
gol_gaj,status, jml_anak:integer;
t_anak,t_sutri,gj_pokok,t_gaji:real;
begin
clrscr;
writeln(‘PERHITUNGAN GAJI PEGAWAI’);
writeln(‘========================’);
write(‘N A M A             :’);readln(nam_peg);
write(‘Nomor Induk Pegawai :’);readln(nip);
write(‘Golongan Pegawai    :’);readln(gol_gaj);
write(‘Status Menikah      :’);readln(status);
case gol_gaj of
1:begin {gol 1}
gj_pokok:=800000;
end;
2:begin
gj_pokok:=1000000;
end;
3:begin
gj_pokok:=1200000;
end;
4:begin
gj_pokok:=1500000;
end;
end;
case status of
1:begin
t_sutri:=500000;
write(‘Jumlah Anak        :’);readln(jml_anak);
t_anak:=jml_anak*300000;
end;
2:begin
t_sutri:=0;
t_anak:=0;
textcolor(yellow);
writeln(‘==Anda Belum Menikah maka Tidak ada Anak==’)
end;
end;
t_anak:=jml_anak*300000;
t_gaji:=t_anak+t_sutri+gj_pokok;
writeln;
textcolor(lightgreen);
writeln(‘==============================================’);
writeln(‘RINJIAN GAJI PEGAWAI ATAS NAMA:’,nam_peg);
writeln(‘==============================================’);
writeln;
writeln(‘GAJI POKOK            Rp :’,gj_pokok:8:2);
writeln(‘TUNJANGAN ANAK        Rp : ‘,t_anak:8:2);
writeln(‘TUNJANGAN SUAMI/ISTRI Rp : ‘,t_sutri:8:2);
writeln(‘TOTAL GAJI            Rp :’,t_gaji:8:2);
readln;
end.

Tentang hasanmualim

Wong Ndeso
Pos ini dipublikasikan di Pascal dan tag . Tandai permalink.

2 Balasan ke Program Gaji Pegawai

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s