-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path22-Şirket Kitle Endeksi Ve Değer Endeksi Hesaplama.fprg
63 lines (63 loc) · 3.56 KB
/
22-Şirket Kitle Endeksi Ve Değer Endeksi Hesaplama.fprg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="husey"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2023-08-19 04:11:42 ÖS"/>
<attribute name="created" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xOTswMzo1MTo1MSDDllM7Mjc5OQ=="/>
<attribute name="edited" value="aHVzZXk7SMWhU0VZSU47MjAyMy0wOC0xOTswNDoxMTo0MiDDllM7MTsyOTA0"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="kisi, yasOrtalama, sirketKitleEndeksi, sirketDegerEndeksi, yas, yasToplam" type="Real" array="False" size=""/>
<assign variable="yasToplam" expression="0"/>
<for variable="kisi" start="1" end="10" direction="inc" step="1">
<output expression=""Lütfen işyerindeki " & kisi & "." & "kişinin yaş bilgilerini giriniz."" newline="True"/>
<input variable="yas"/>
<assign variable="yasToplam" expression="yasToplam + yas"/>
</for>
<assign variable="yasOrtalama" expression="yasToplam / 10"/>
<output expression=""Şirketinizde çalışan işçilerin yaşları toplamı: " & yasToplam" newline="True"/>
<output expression=""Şirketinizde çalışan çalışanların yaş ortalaması: " & yasOrtalama" newline="True"/>
<if expression="yasOrtalama < 20">
<then>
<assign variable="sirketKitleEndeksi" expression="100"/>
</then>
<else>
<if expression="yasOrtalama >= 20 && yasOrtalama < 25">
<then>
<assign variable="sirketKitleEndeksi" expression="75"/>
</then>
<else>
<if expression="yasOrtalama >= 25 && yasOrtalama < 30">
<then>
<assign variable="sirketKitleEndeksi" expression="50"/>
</then>
<else>
<if expression="yasOrtalama >= 30">
<then>
<assign variable="sirketKitleEndeksi" expression="25"/>
</then>
<else/>
</if>
</else>
</if>
</else>
</if>
<output expression=""Şirket Kitle Endeksiniz: " & sirketKitleEndeksi" newline="True"/>
<if expression="sirketKitleEndeksi == 75 && sirketKitleEndeksi == 100">
<then>
<assign variable="sirketDegerEndeksi" expression="100"/>
</then>
<else>
<assign variable="sirketDegerEndeksi" expression="50"/>
</else>
</if>
<output expression=""Şirket Değer Endeksiniz: " & sirketDegerEndeksi" newline="True"/>
</else>
</if>
</body>
</function>
</flowgorithm>