-
Notifications
You must be signed in to change notification settings - Fork 0
/
student array-17.fprg
58 lines (58 loc) · 4.06 KB
/
student array-17.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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="S.RAMESH"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-12-09 10:57:49 PM"/>
<attribute name="created" value="Uy5SQU1FU0g7REVTS1RPUC1ISlBPMTBLOzIwMjItMTItMDk7MTA6MjM6MjYgQU07Mjg5OA=="/>
<attribute name="edited" value="Uy5SQU1FU0g7REVTS1RPUC1ISlBPMTBLOzIwMjItMTItMDk7MTA6MzQ6NDQgQU07MTtQQVZBTjtDVVNDVVRBOzIwMjItMTItMDk7MDk6MjM6NDEgQU07bnN0dWRlbnRzIG1hcmtzIHN5c3RlbS5mcHJnOzgwNjI="/>
<attribute name="edited" value="Uy5SQU1FU0g7REVTS1RPUC1ISlBPMTBLOzIwMjItMTItMDk7MTA6NDM6MTYgQU07MjszMDA4"/>
<attribute name="edited" value="SkVFU0hJVEhBO0RFU0tUT1AtSTQzVlROVjsyMDIyLTEyLTA5OzEwOjU3OjQ5IFBNOzE7MzE1MA=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="index, n" type="Integer" array="False" size=""/>
<output expression=""enter number of students"" newline="True"/>
<input variable="n"/>
<declare name="mark1" type="Integer" array="True" size="n"/>
<declare name="mark2" type="Integer" array="True" size="n"/>
<declare name="mark3" type="Integer" array="True" size="n"/>
<declare name="mark4" type="Integer" array="True" size="n"/>
<declare name="mark5" type="Integer" array="True" size="n"/>
<declare name="avg" type="Integer" array="True" size="n"/>
<declare name="tot" type="Integer" array="True" size="n"/>
<declare name="roll" type="Integer" array="True" size="n"/>
<for variable="index" start="0" end="n-1" direction="inc" step="1">
<output expression=""enter the mark1 of student"&index+1&""" newline="True"/>
<input variable="mark1[index]"/>
<output expression=""enter the mark2 of student"&index+1&""" newline="True"/>
<input variable="mark2[index]"/>
<output expression=""enter the mark3 of student"&index+1&""" newline="True"/>
<input variable="mark3[index]"/>
<output expression=""enter the mark4 of student"&index+1&""" newline="True"/>
<input variable="mark4[index]"/>
<output expression=""enter the mark5 of student"&index+1&""" newline="True"/>
<input variable="mark5[index]"/>
<output expression=""enter the roll number"&index+1&""" newline="True"/>
<input variable="roll[index]"/>
</for>
<for variable="index" start="0" end="n-1" direction="inc" step="1">
<assign variable="tot[index]" expression="mark1[Index]+mark2[Index]+mark3[Index]+mark4[Index]+mark5[Index]"/>
<assign variable="avg[index]" expression="tot[index]/5"/>
</for>
<for variable="index" start="0" end="n-1" direction="inc" step="1">
<output expression=""Rollno:"&roll[Index]&""" newline="True"/>
<output expression=""MARKS: "" newline="False"/>
<output expression="""&mark1[Index]&" ,"" newline="False"/>
<output expression="""&mark2[Index]&" ,"" newline="False"/>
<output expression="""&mark3[Index]&" ,"" newline="False"/>
<output expression="""&mark4[Index]&" ,"" newline="False"/>
<output expression="mark5[Index]" newline="True"/>
<output expression=""total:"&tot[Index]&""" newline="True"/>
<output expression=""average:"&avg[Index]&""" newline="True"/>
</for>
</body>
</function>
</flowgorithm>