|
| 1 | +<?xml version="1.0"?> |
| 2 | +<flowgorithm fileversion="4.2"> |
| 3 | + <attributes> |
| 4 | + <attribute name="name" value="Soal1Praktikum"/> |
| 5 | + <attribute name="authors" value="iamkr"/> |
| 6 | + <attribute name="about" value=""/> |
| 7 | + <attribute name="saved" value="2025-10-09 09:04:38 PM"/> |
| 8 | + <attribute name="created" value="aWFta3I7SzsyMDI1LTEwLTA4OzAxOjMyOjAwIEFNOzE4NjA="/> |
| 9 | + <attribute name="edited" value="aWFta3I7SzsyMDI1LTEwLTA5OzA5OjA0OjM4IFBNOzI7MjAwMw=="/> |
| 10 | + </attributes> |
| 11 | + <function name="Main" type="None" variable=""> |
| 12 | + <parameters/> |
| 13 | + <body> |
| 14 | + <declare name="nilai, nk" type="Integer" array="False" size=""/> |
| 15 | + <output expression=""Masukkan Nilai"" newline="True"/> |
| 16 | + <input variable="nilai"/> |
| 17 | + <if expression="nilai >= 100 or nilai <= 0"> |
| 18 | + <then> |
| 19 | + <output expression=""Nilai tidak valid"" newline="True"/> |
| 20 | + </then> |
| 21 | + <else> |
| 22 | + <if expression="nilai>=85"> |
| 23 | + <then> |
| 24 | + <output expression=""Masukkan Nilai kehadiran"" newline="True"/> |
| 25 | + <input variable="nk"/> |
| 26 | + <output expression=""A"" newline="True"/> |
| 27 | + <if expression="nk >=85 and nk >=90"> |
| 28 | + <then> |
| 29 | + <output expression=""Lulus dengan pujian"" newline="True"/> |
| 30 | + </then> |
| 31 | + <else> |
| 32 | + <output expression=""Lulus biasa"" newline="True"/> |
| 33 | + </else> |
| 34 | + </if> |
| 35 | + </then> |
| 36 | + <else> |
| 37 | + <if expression="nilai>=70 and nilai <84"> |
| 38 | + <then> |
| 39 | + <output expression=""B"" newline="True"/> |
| 40 | + </then> |
| 41 | + <else> |
| 42 | + <if expression="nilai >=60 and nilai <69"> |
| 43 | + <then> |
| 44 | + <output expression=""C"" newline="True"/> |
| 45 | + </then> |
| 46 | + <else> |
| 47 | + <if expression="nilai >=50 and nilai <59"> |
| 48 | + <then> |
| 49 | + <output expression=""D"" newline="True"/> |
| 50 | + </then> |
| 51 | + <else> |
| 52 | + <output expression=""E"" newline="True"/> |
| 53 | + </else> |
| 54 | + </if> |
| 55 | + </else> |
| 56 | + </if> |
| 57 | + </else> |
| 58 | + </if> |
| 59 | + </else> |
| 60 | + </if> |
| 61 | + </else> |
| 62 | + </if> |
| 63 | + </body> |
| 64 | + </function> |
| 65 | +</flowgorithm> |
0 commit comments