-
Notifications
You must be signed in to change notification settings - Fork 0
/
students.fprg
51 lines (51 loc) · 3.33 KB
/
students.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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="guru"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-12-09 11:22:53 AM"/>
<attribute name="created" value="Z3VydTtUUFMxRS1MQVAtNDA7MjAyMi0xMi0wOTswOTo0ODo1MCBBTTsyNTAw"/>
<attribute name="edited" value="Z3VydTtUUFMxRS1MQVAtNDA7MjAyMi0xMi0wOTsxMToyMjo1MyBBTTs2OzI2MDE="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="i" type="Integer" array="False" size=""/>
<declare name="ROLL, MARKS1, MARKS2, MARKS3, MARKS4, MARKS5, TOTAL, AVERAGE" type="Integer" array="False" size=""/>
<declare name="students" type="Integer" array="False" size=""/>
<output expression=""please enter the number of students:"" newline="True"/>
<input variable="students"/>
<declare name="sum" type="Integer" array="True" size="students"/>
<declare name="Average1" type="Integer" array="True" size="students"/>
<declare name="allmarks" type="String" array="True" size="students"/>
<declare name="rollnumber" type="Integer" array="True" size="students"/>
<for variable="i" start="0" end="students-1" direction="inc" step="1">
<output expression=""ROLL NO OF STUDENT "&i+1" newline="True"/>
<input variable="ROLL"/>
<output expression=""ENTER MARKS SUBJECT 1:"" newline="True"/>
<input variable="MARKS1"/>
<output expression=""ENTER MARKS SUBJECT 2:"" newline="True"/>
<input variable="MARKS2"/>
<output expression=""ENTER MARKS SUBJECT 3:"" newline="True"/>
<input variable="MARKS3"/>
<output expression=""ENTER MARKS SUBJECT 4:"" newline="True"/>
<input variable="MARKS4"/>
<output expression=""ENTER MARKS SUBJECT 5:"" newline="True"/>
<input variable="MARKS5"/>
<assign variable="TOTAL" expression="MARKS1+MARKS2+MARKS3+MARKS4+MARKS5"/>
<assign variable="AVERAGE" expression="TOTAL/5"/>
<assign variable="sum[i]" expression="MARKS1+MARKS2+MARKS3+MARKS4+MARKS5"/>
<assign variable="Average1[i]" expression="TOTAL/5"/>
<assign variable="allmarks[i]" expression="" mark 1 is "&MARKS1&" mark 2 is "&MARKS2&" mark 3 is "&MARKS3&" mark 4 is "&MARKS4&" mark 5 is "&MARKS5"/>
<assign variable="rollnumber[i]" expression="ROLL"/>
</for>
<for variable="i" start="0" end="students-1" direction="inc" step="1">
<output expression=""ROLL NUMBER:"&rollnumber[i]" newline="True"/>
<output expression=""marks"&allmarks[i]" newline="True"/>
<output expression=""TOTAL mark OF the STUDENT is "&sum[i]" newline="True"/>
<output expression=""AVERAGE OF STUDENT is "&Average1[i]" newline="True"/>
</for>
</body>
</function>
</flowgorithm>