Anda di halaman 1dari 3

Tugas Pascal

Nama : DedyKarsadi
Nim

: 07.01.55.0071

Tampilan Program

Listing Program :
programtugas;
useswincrt;
var
nip,nama,pajaks,golongan,gol,jab,jabatan:string;
gapok,tunjangan,pajak,gajikotor,gajibersih:real;
Begin
clrscr;
Write ('Masukkan NIP
:');
Write ('Nama
:');
Write ('jabatan (1/2/3/4) :');
Write ('golongan (1/2/3/4):');
ifgolongan='1' then
begin
gol:='I';
gapok:=1500000;

Readln(nip);
Readln (nama);
Readln(jab);
Readln(golongan);

tunjangan:=250000;
end
else
ifgolongan='2' then
begin
gol:='II';
gapok:=2000000;
tunjangan:=450000;
end
else
ifgolongan='3' then
begin
gol:='III';
gapok:=3000000;
tunjangan:=750000;
end
else
ifgolongan='4' then
begin
gol:='IV';
gapok:=4000000;
tunjangan:=1250000;
end;
if jab='1' then
begin
jabatan:='Direktur';
end
else if jab='2' then
begin
jabatan:='Manager';
end
else if jab='3' then
begin
jabatan:='Kabag';
end
else
begin
jabatan:='Staff';
end;
gajikotor:=gapok+tunjangan;
ifgajikotor> 3000000 then
begin
pajaks:='10%';
pajak:=0.1;

end
else
begin
pajaks:='2,5%';
pajak:=0.025;
end;
gajibersih:=gajikotor-(gajikotor*pajak);
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Writeln
Readln;
End.

('===============================');
('=====DaftarGajiBulanIni=====');
('===============================');
('Nip
:',nip);
('Nama
:',nama);
('jabatan :',jabatan);
('golongan :',gol);gol:='I';
('
GajiPokok :',gapok:10:2);
('
Tunjangan
:',tunjangan:10:2);
('
GajiKotor :',gajikotor:10:2);
('
Pajak
:',pajaks);
('
GajiBersih :',gajibersih:10:2);
('===============================');