alpro tugas 2
2
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’);
-
Upload
intannllatief -
Category
Documents
-
view
213 -
download
1
description
tugas ALPRO
Transcript of alpro tugas 2
NAMA : INTAN NURUL LAILA LATIFNPM : 2014520026
HEADERAlgoritma_Menghitung_Bonus_Karyawan;DESKRIPSIJak,Gj,Mk : integer;DEKLARASIWrite (‘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;
elseWrite (‘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;