Anda di halaman 1dari 2

I PUTU GIOVANNI ELIEZER

2214105020
KELAS X
TUGAS I ALGORITMA & PEMROGRAMAN

ALGORITMA BONUS KARYAWAN

Deklarasi Variabel :
Lbr, Abs, Bonus (float)
Na (string)

Input :
Nama Karyawan : Na
Lembur : Lbr
Absen : Abs

Proses :
Bonus = Lbr (2/3)*Abs
if Bonus > 40
Print Bonus = Rp 50.000
if 30 < Bonus < 40
Print Bonus = Rp 40.000
if 20 < Bonus < 30
Print Bonus = Rp 30.000
if 10 < Bonus < 20
Print Bonus = Rp 20.000
else
Print Bonus = Rp 20.000

FLOWCHART BONUS KARYAWAN

I PUTU GIOVANNI ELIEZER


2214105020
KELAS X