Professional Documents
Culture Documents
Tugas Bonus Lembur - Eka Nanda Wijaya
Tugas Bonus Lembur - Eka Nanda Wijaya
>
<flowgorithm fileversion="4.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="ACER"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2024-03-20 03.34.42 AM"/>
<attribute name="created"
value="QUNFUjtERVNLVE9QLUZHRDZLTzc7MjAyNC0wMy0yMDswMy4yMS4xNyBBTTsyNTcw"/>
<attribute name="edited"
value="QUNFUjtERVNLVE9QLUZHRDZLTzc7MjAyNC0wMy0yMDswMy4zNC40MiBBTTsxOzI2ODA="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="NAMA" type="String" array="False" size=""/>
<output expression=""masukkan nama karyawan""
newline="True"/>
<input variable="NAMA"/>
<declare name="jumlahjamkerja, jumlahjamabsen" type="Integer"
array="False" size=""/>
<declare name="jamkerjabersih, bonusgaji" type="Real" array="False"
size=""/>
<output expression=""masukkan jumlah jam kerja""
newline="True"/>
<input variable="jumlahjamkerja"/>
<output expression=""masukkan jumlah jam absen""
newline="True"/>
<input variable="jumlahjamabsen"/>
<assign variable="jamkerjabersih" expression="jumlahjamkerja-
(2/3)*jumlahjamabsen"/>
<if expression="jamkerjabersih<=10">
<then>
<output expression="nama" newline="True"/>
<output expression=""bonus gaji adalah 1o dollar""
newline="True"/>
</then>
<else>
<if expression="jamkerjabersih<=20">
<then>
<output expression="nama" newline="True"/>
<output expression=""bonus gaji adalah 20
dollar"" newline="True"/>
</then>
<else>
<if expression="jamkerjabersih<=30">
<then>
<output expression="nama" newline="True"/>
<output expression=""bonus gaji adalah 30
dollar"" newline="True"/>
</then>
<else>
<if expression="jamkerjabersih<=40">
<then>
<output expression="nama"
newline="True"/>
<output expression=""bonus gaji
adalah 40 dollar"" newline="True"/>
</then>
<else>
<if expression="jamkerjabersih>40">
<then>
<output expression="nama"
newline="True"/>
<output expression=""bonus
gaji adalah 50 dollar"" newline="True"/>
</then>
<else/>
</if>
</else>
</if>
</else>
</if>
</else>
</if>
</else>
</if>
</body>
</function>
</flowgorithm>