You are on page 1of 2

<?xml version="1.0"?

>
<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="&quot;masukkan nama karyawan&quot;"
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="&quot;masukkan jumlah jam kerja&quot;"
newline="True"/>
<input variable="jumlahjamkerja"/>
<output expression="&quot;masukkan jumlah jam absen&quot;"
newline="True"/>
<input variable="jumlahjamabsen"/>
<assign variable="jamkerjabersih" expression="jumlahjamkerja-
(2/3)*jumlahjamabsen"/>
<if expression="jamkerjabersih&lt;=10">
<then>
<output expression="nama" newline="True"/>
<output expression="&quot;bonus gaji adalah 1o dollar&quot;"
newline="True"/>
</then>
<else>
<if expression="jamkerjabersih&lt;=20">
<then>
<output expression="nama" newline="True"/>
<output expression="&quot;bonus gaji adalah 20
dollar&quot;" newline="True"/>
</then>
<else>
<if expression="jamkerjabersih&lt;=30">
<then>
<output expression="nama" newline="True"/>
<output expression="&quot;bonus gaji adalah 30
dollar&quot;" newline="True"/>
</then>
<else>
<if expression="jamkerjabersih&lt;=40">
<then>
<output expression="nama"
newline="True"/>
<output expression="&quot;bonus gaji
adalah 40 dollar&quot;" newline="True"/>
</then>
<else>
<if expression="jamkerjabersih&gt;40">
<then>
<output expression="nama"
newline="True"/>
<output expression="&quot;bonus
gaji adalah 50 dollar&quot;" newline="True"/>
</then>
<else/>
</if>
</else>
</if>
</else>
</if>
</else>
</if>
</else>
</if>
</body>
</function>
</flowgorithm>

You might also like