Download - alpro tugas 2

Transcript
Page 1: 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;