-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTomada de Decisao - notas.fprg
31 lines (31 loc) · 1.44 KB
/
Tomada de Decisao - notas.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
<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="mvoli"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2021-08-12 04:24:08 "/>
<attribute name="created" value="bXZvbGk7REVTS1RPUC1GUzFPOTE4OzIwMjEtMDgtMTI7IjA0OjA2OjU0ICI7Mjc2Nw=="/>
<attribute name="edited" value="bXZvbGk7REVTS1RPUC1GUzFPOTE4OzIwMjEtMDgtMTI7IjA0OjI0OjA4ICI7NTsyODc4"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="nota1, nota2, nota3, nota4, media" type="Real" array="False" size=""/>
<input variable="nota1"/>
<input variable="nota2"/>
<input variable="nota3"/>
<input variable="nota4"/>
<assign variable="media" expression="(nota1+nota2+nota3+nota4)/4"/>
<output expression="media" newline="True"/>
<if expression="media>=7.0">
<then>
<output expression=""Parabéns, você passou de ano!"" newline="True"/>
</then>
<else>
<output expression=""Infelizmente, você não passou. Entre em contato com a diretoria para novas orientações."" newline="True"/>
</else>
</if>
</body>
</function>
</flowgorithm>