tugas alpro
1
NAMA : INTAN NURUL LAILA LATIF NPM : 2014520026 HEADER Algoritma_Menghitung_Bonus_Karyawan; DESKRIPSI Jak,Gj,Mk : integer; DEKLARASI Write (‘Masukkan Jumlah Anggota Keluarga:’); Read (Jak); Write (‘Masukkan Gaji Karyawan :’); Read (Gj); Write (‘Masukkan Mas kerja Karyawan :’); Read (Mk); If (Jak<=2) then If (Gj>1000000) then If (Gj*30%<=600000)then If (Mk>3) then Write (‘Bonus yang diperoleh 500 ribu’); else Write (‘Bonus yang diperoleh 400 ribu’); end if; else Write (‘Bonus yang diperoleh 1 juta’); end If; else Write(‘Bonus yang diperoleh 600 Ribu’); end if; else If (Jak>3) then Write (‘Bonus yang diperoleh 2 juta’); else Write (‘Bonus yang diperoleh 1 Juta’); end if;
-
Upload
intannllatief -
Category
Documents
-
view
213 -
download
0
description
xx
Transcript of tugas alpro
-
NAMA : INTAN NURUL LAILA LATIF NPM : 2014520026
HEADER Algoritma_Menghitung_Bonus_Karyawan; DESKRIPSI Jak,Gj,Mk : integer; DEKLARASI Write (Masukkan Jumlah Anggota Keluarga:); Read (Jak); Write (Masukkan Gaji Karyawan :); Read (Gj); Write (Masukkan Mas kerja Karyawan :); Read (Mk); If (Jak1000000) then If (Gj*30%3) then Write (Bonus yang diperoleh 500 ribu); else Write (Bonus yang diperoleh 400 ribu); end if;
else Write (Bonus yang diperoleh 1 juta);
end If; else Write(Bonus yang diperoleh 600 Ribu); end if; else If (Jak>3) then Write (Bonus yang diperoleh 2 juta); else Write (Bonus yang diperoleh 1 Juta); end if;