Compare commits

..

99 Commits

Author SHA1 Message Date
pvfj5ugro a037933dfe Merge pull request 'XZG——伪代码2' (#35) from XZG——伪代码2 into master
2 years ago
xuzigui 6b02178f28 XZG_伪代码2
2 years ago
xuzigui 5b3b6a12a1 XZG_伪代码
2 years ago
pvfj5ugro dcba628f21 Merge pull request 'XZG_伪代码' (#34) from XZG_伪代码 into master
2 years ago
xuzigui 3fb95cd525 XZG_伪代码
2 years ago
Cx330 89f4dfff59 伪代码
2 years ago
Cx330 6d5711b197 Cx330_修
2 years ago
Cx330 3cb5288b72
2 years ago
Cx330 70006b0af7
2 years ago
Cx330 555ab8f73e Merge remote-tracking branch 'origin/XZG_SortbyName流程图'
2 years ago
Cx330 7284cd53ed
2 years ago
pvfj5ugro 3b5537c19e Merge pull request 'XZG_SortbyScore流程图' (#32) from xzg_SortbyScore流程图 into master
2 years ago
xuzigui fdefd720c6 XZG_SortbyScore流程图
2 years ago
xuzigui 3d2ab7022f XZG_SortbyName流程图
2 years ago
Cx330 351946e812 Merge remote-tracking branch 'origin/ZY-ReadfromFile'
2 years ago
Cx330 90d4e390b0 Merge remote-tracking branch 'origin/XZG_AverSumofEveryCourse流程图'
2 years ago
xuzigui ed2925711d XZG_AverSumofEveryCourse流程图
2 years ago
zhangyu be7204dee6 ZY-ReadfromFile
2 years ago
Cx330 f495854818 整合
2 years ago
Cx330 df05ceafe7 Merge branch 'XZL_StatisticAnalysis'
2 years ago
Cx330 230a25dc2c 找bug
2 years ago
pvfj5ugro bca412db24 Merge pull request 'ZY-WritetoFile' (#26) from ZY-WritetoFile into master
2 years ago
pvfj5ugro 1bcd4f8f5d Merge pull request 'XZG_AsScortbyNum流程图' (#23) from XZG_AsScortbyNum流程图 into master
2 years ago
zhangyu 3f5fdb39a4 ZY-ReadfromFile
2 years ago
zhangyu 70cbd02ddb ZY-WritetoFile
2 years ago
xuzilin cf25fa56c9 XZL_StatisticAnalysis
2 years ago
zhangyu 1e046ecec5 ZY-PrintScore
2 years ago
pvfj5ugro fd6c804976 Merge pull request 'SearchbyName' (#22) from XZL_SearchbyName into master
2 years ago
xuzigui fa5c4d5347 XZG_AsScotbyNum流程图
2 years ago
xuzilin 28cf36b917 XZL_SearchbyName
2 years ago
pvfj5ugro 9eae6c6625 Merge pull request 'XZL_SearchbyNum' (#21) from SearchbyNum into master
2 years ago
pvfj5ugro 67c8919844 Merge pull request 'XZG_SortbyScore流程图' (#20) from xzg_SortbyScore into master
2 years ago
xuzilin 5f38e8efd5 SearchbyNum
2 years ago
xuzigui 7117c5e40b XZG_SortbyScore
2 years ago
Cx330 7a0a5fb3e7 Merge branch 'Cx330_AverSumofEveryStudent'
2 years ago
Cx330 e49ae6eb79 Cx330_AverSumofEveryStudent
2 years ago
Cx330 488deb5721 Merge branch 'Cx330_ReadScore'
2 years ago
Cx330 5923b7ca2f Cx330_ReadScore
2 years ago
Cx330 b200d3af48
2 years ago
Cx330 13bb2e47b1 代码修改
2 years ago
Cx330 90e8b13f94 头文件
2 years ago
Cx330 78c87d1a7c CX330_修
2 years ago
Cx330 3605f6ca52 主修
2 years ago
Cx330 5f616d8255
2 years ago
Cx330 b6405f7519 main函数详细实现修
2 years ago
Cx330 5fedf865c7 Merge branch 'XZG_main函数详细实现流程图'
2 years ago
Cx330 0666b1fc7e 修_详细
2 years ago
Cx330 69f9911caa 代码实现
2 years ago
xuzigui de9b7b0385 XZG_main函数详细实现流程图
2 years ago
Cx330 4d96a1aba2
2 years ago
Cx330 111eed7db1
2 years ago
Cx330 64544b4a95 main
2 years ago
Cx330 3e945bcdeb
2 years ago
Cx330 96d3c49030 main
2 years ago
Cx330 63404ddfeb main
2 years ago
Cx330 f987df2efb main.drawio.svg
2 years ago
Cx330 ba9f79f7f7 流程图
2 years ago
Cx330 e1cac7db9e
2 years ago
Cx330 a0bf16a2f7
2 years ago
Cx330 c132f41642
2 years ago
Cx330 0ba6336420 4.22
2 years ago
Cx330 b8f9ee46db 4.22
2 years ago
Cx330 156688b21c Cx330_小修小补
2 years ago
Cx330 f4c98ff742 Cx330_小修小补
2 years ago
Cx330 448327de49 Cx330_小修小补
2 years ago
Cx330 7458a3c62b Cx330_小修小补
2 years ago
Cx330 fe174a473b Cx330_小修小补
2 years ago
Cx330 b431400e8c Merge branch 'Cx330_小修小补'
2 years ago
Cx330 2ea5abfa36 Cx330_基本框架
2 years ago
pvfj5ugro 4e88648cbc Merge pull request '函数功能:打印学生成绩' (#18) from XZL_打印学生成绩 into master
2 years ago
Cx330 12c7c3044c Cx330_基本框架
2 years ago
Cx330 5313d49f27 Cx330_基本框架
2 years ago
xuzilin da7ccd365a XZL_打印学生成绩
2 years ago
Cx330 3a91792eb9 Merge branch 'Cx330_统计各分数段的学生人数及所占的百分比'
2 years ago
Cx330 ab295085df Cx330_按学号查找学生成绩并显示查找结果
2 years ago
pvfj5ugro aa6c5e7f88 Merge pull request 'ZY_输入n个同学的m门成绩' (#11) from ZY_输入n个同学的m门成绩 into master
2 years ago
pvfj5ugro 5a589a345d Merge pull request 'XZG_按选择法将数组num的元素值从低到高排序' (#13) from XZG_按选择法将将数组num的元素值从低到高排序 into master
2 years ago
pvfj5ugro f76fc34c96 Merge pull request 'XZG_交换法实现字符串按字典顺序排序' (#15) from XZG_交换法实现字符串按字典顺序排序 into master
2 years ago
pvfj5ugro ab9b1a27c0 Merge pull request 'ZY_计算每门课程的总分和平均分' (#16) from ZY_计算每门课程的总分和平均分 into master
2 years ago
pvfj5ugro dd453fd30e Merge pull request 'XZG_从文件中读取学生的学号、姓名及成绩等信息写入到结构体 stu 中' (#17) from XZG_从文件中读取学生的学号,姓名,成绩等信息写入结构体stu中 into master
2 years ago
xuzigui 531518b4d1 XZG_从文件中读取学生的学号、姓名及成绩等信息写入到结构体 stu 中
2 years ago
xuzigui 829ec0a6ec XZG_交换法实现字符串按字典顺序排序
2 years ago
zhangyu a690413caf ZY_计算每门课程的总分和平均分
2 years ago
zhangyu 086f488654 ZY_计算每个学生各门课程总分和平均分
2 years ago
xuzigui 65006f2573 XZG_按元素法将数组num的元素值从低到高排序
2 years ago
zhangyu fd28057d9d ZY_显示菜单并获得输入选项
2 years ago
pvfj5ugro 3286ed8637 Merge pull request '输出 n 个学生的学号、姓名及 m 门课程的成绩到文件 student.txt 中' (#10) from XZL_输出n个学生的学号、姓名及m门课程的成绩到文件中 into master
2 years ago
zhangyu 22c5588af5 ZY_输入n个同学的m门成绩
2 years ago
xuzilin 7368fa23c7 XZL_输出n个学生的学号、姓名及m门课程的成绩到文件中
2 years ago
pvfj5ugro 9f16984ddf Merge pull request 'XZG_按选择法将sum的元素值排序' (#8) from XZG_按选择法将数组sum的元素值排序 into master
2 years ago
zhangyu 5570fb65d5 ZY_显示菜单并获得输入选项
2 years ago
xuzilin 75231e3048 XZL_输出n个学生的学号、姓名及m门课程的成绩到文件中
2 years ago
pvfj5ugro 6a05da907d Merge pull request '交换两个字符串' (#6) from XZL_交换两个字符串 into master
2 years ago
pvfj5ugro 54d589004e Merge pull request '交换两个长整型数据' (#5) from XZL_交换两个长整型数据 into master
2 years ago
Cx330 b3266be02c Merge branch 'Cx330_按学号查找学生成绩并显示查找结果'
2 years ago
Cx330 4be591b3eb Cx330_按学号查找学生成绩并显示查找结果
2 years ago
xuzilin 17f341078e XZL_交换两个字符串
2 years ago
xuzilin 3fff8cb152 XZL_交换两个长整型数据
2 years ago
Cx330 ca77e46583 Cx330_统计各分数段的学生人数及所占的百分比
2 years ago

@ -0,0 +1,150 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2666" height="3813">
<rect x="0" y="0" width="2666" height="3813" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,248 837,323"/>
<polygon fill="#404040" stroke="none" points="837,341 854,310 819,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,2201 837,3547"/>
<polygon fill="#404040" stroke="none" points="837,3565 854,3534 819,3534"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 682,124 A 62 62, 0, 0 0, 682 248 L 992,248 A 62 62, 0, 0 0, 992 124 Z"/>
<text x="837" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">WritetoFile</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 713,3565 A 62 62, 0, 0 0, 713 3689 L 961,3689 A 62 62, 0, 0 0, 961 3565 Z"/>
<text x="837" y="3583" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,496 837,571"/>
<polygon fill="#404040" stroke="none" points="837,589 854,558 819,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,744 837,819"/>
<polygon fill="#404040" stroke="none" points="837,837 854,806 819,806"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,1736 837,1811"/>
<polygon fill="#404040" stroke="none" points="837,1829 854,1798 819,1798"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,1953 837,2059"/>
<polygon fill="#404040" stroke="none" points="837,2077 854,2046 819,2046"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 651,341 L 651,496 L 1023,496 L 1023,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="651,372 1023,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="682,341 682,496"/>
<text x="852" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="852" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 651,589 L 651,744 L 1023,744 L 1023,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="651,620 1023,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="682,589 682,744"/>
<text x="852" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="852" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1271,1085 1488,1085 1488,1377"/>
<polygon fill="#404040" stroke="none" points="1488,1395 1505,1364 1470,1364"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1488,1581 1488,1705 885,1705"/>
<polygon fill="#404040" stroke="none" points="868,1705 898,1722 898,1687"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="403,1085 155,1085 155,1705 788,1705"/>
<polygon fill="#404040" stroke="none" points="806,1705 775,1687 775,1722"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 837,837 L 372,1085 L 837,1333 L 1302,1085 Z"/>
<text x="837" y="1010" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">(fp = fopen(&quot;student.txt&quot;,</tspan>
<tspan x="837" dy="62" unicode-bidi="embed"> &quot;w&quot;)) == NULL</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="4" stroke-dasharray="none" d="M 1178,1395 L 1085,1581 L 1798,1581 L 1891,1395 Z"/>
<text x="1488" y="1413" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1488" dy="62" unicode-bidi="embed">Output &quot;Failure to open</tspan>
<tspan x="1488" dy="62" unicode-bidi="embed"> score.txt!\n&quot;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="837" cy="1705" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="1395" y="979" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1395" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="263" y="979" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 465,1829 L 403,1953 L 1209,1953 L 1271,1829 Z"/>
<text x="837" y="1847" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">Output fp, &quot;%d\t%d\n&quot;, n, m</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1085,2139 1488,2139 1488,2245"/>
<polygon fill="#404040" stroke="none" points="1488,2263 1505,2232 1470,2232"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1488,3348 1488,3441 899,3441 899,2218"/>
<polygon fill="#404040" stroke="none" points="899,2201 881,2231 916,2231"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1488,2449 1488,2555"/>
<polygon fill="#404040" stroke="none" points="1488,2573 1505,2542 1470,2542"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1488,2697 1488,3144"/>
<polygon fill="#404040" stroke="none" points="1488,3162 1505,3131 1470,3131"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1116,2263 L 1023,2449 L 1860,2449 L 1953,2263 Z"/>
<text x="1488" y="2281" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1488" dy="62" unicode-bidi="embed">Output fp, &quot;%10ld%10s&quot;, stu</tspan>
<tspan x="1488" dy="62" unicode-bidi="embed">[i].num, stu[i].name</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1736,2635 2108,2635 2108,2741"/>
<polygon fill="#404040" stroke="none" points="2108,2759 2125,2728 2090,2728"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2108,2945 2108,3038 1550,3038 1550,2714"/>
<polygon fill="#404040" stroke="none" points="1550,2697 1532,2727 1567,2727"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1767,2759 L 1674,2945 L 2449,2945 L 2542,2759 Z"/>
<text x="2108" y="2777" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2108" dy="62" unicode-bidi="embed">Output fp, &quot;%10.0f&quot;, stu[i].</tspan>
<tspan x="2108" dy="62" unicode-bidi="embed">score[j]</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1302,2573 L 1240,2635 L 1302,2697 L 1674,2697 L 1736,2635 L 1674,2573 Z"/>
<text x="1488" y="2591" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1488" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="1829" y="2529" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1829" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1379" y="2715" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1379" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1147,3162 L 1054,3348 L 1829,3348 L 1922,3162 Z"/>
<text x="1488" y="3180" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1488" dy="62" unicode-bidi="embed">Output fp, &quot;%10.0f%10.0f\</tspan>
<tspan x="1488" dy="62" unicode-bidi="embed">n&quot;, stu[i].sum, stu[i].aver</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 651,2077 L 589,2139 L 651,2201 L 1023,2201 L 1085,2139 L 1023,2077 Z"/>
<text x="837" y="2095" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="1178" y="2033" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1178" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="728" y="2219" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="728" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.8 KiB

@ -0,0 +1,239 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2728" height="5487">
<rect x="0" y="0" width="2728" height="5487" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,248 372,323"/>
<polygon fill="#404040" stroke="none" points="372,341 389,310 354,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1488 372,5221"/>
<polygon fill="#404040" stroke="none" points="372,5239 389,5208 354,5208"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 186,124 A 62 62, 0, 0 0, 186 248 L 558,248 A 62 62, 0, 0 0, 558 124 Z"/>
<text x="372" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">AsSortbyNum</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 248,5239 A 62 62, 0, 0 0, 248 5363 L 496,5363 A 62 62, 0, 0 0, 496 5239 Z"/>
<text x="372" y="5257" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,496 372,571"/>
<polygon fill="#404040" stroke="none" points="372,589 389,558 354,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,744 372,819"/>
<polygon fill="#404040" stroke="none" points="372,837 389,806 354,806"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,992 372,1067"/>
<polygon fill="#404040" stroke="none" points="372,1085 389,1054 354,1054"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1240 372,1346"/>
<polygon fill="#404040" stroke="none" points="372,1364 389,1333 354,1333"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,341 L 186,496 L 558,496 L 558,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,372 558,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,341 217,496"/>
<text x="387" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,589 L 186,744 L 558,744 L 558,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,620 558,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,589 217,744"/>
<text x="387" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,837 L 186,992 L 558,992 L 558,837 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,868 558,868"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,837 217,992"/>
<text x="387" y="886" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer k</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,1085 L 186,1240 L 558,1240 L 558,1085 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,1116 558,1116"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,1085 217,1240"/>
<text x="387" y="1134" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer t</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="620,1426 992,1426 992,1532"/>
<polygon fill="#404040" stroke="none" points="992,1550 1009,1519 974,1519"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,5022 992,5115 434,5115 434,1505"/>
<polygon fill="#404040" stroke="none" points="434,1488 416,1518 451,1518"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,1674 992,1780"/>
<polygon fill="#404040" stroke="none" points="992,1798 1009,1767 974,1767"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,1922 992,2958"/>
<polygon fill="#404040" stroke="none" points="992,2976 1009,2945 974,2945"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 806,1550 L 806,1674 L 1178,1674 L 1178,1550 Z"/>
<text x="992" y="1568" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">k = i</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1240,1860 1829,1860 1829,1966"/>
<polygon fill="#404040" stroke="none" points="1829,1984 1846,1953 1811,1953"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1829,2759 1829,2852 1054,2852 1054,1939"/>
<polygon fill="#404040" stroke="none" points="1054,1922 1036,1952 1071,1952"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2201,2201 2418,2201 2418,2462"/>
<polygon fill="#404040" stroke="none" points="2418,2480 2435,2449 2400,2449"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2418,2604 2418,2728 1877,2728"/>
<polygon fill="#404040" stroke="none" points="1860,2728 1890,2745 1890,2710"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1457,2201 1209,2201 1209,2728 1780,2728"/>
<polygon fill="#404040" stroke="none" points="1798,2728 1767,2710 1767,2745"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1829,1984 L 1426,2201 L 1829,2418 L 2232,2201 Z"/>
<text x="1829" y="2157" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1829" dy="62" unicode-bidi="embed">if (stu[j].num &lt; stu[k].num)</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2232,2480 L 2232,2604 L 2604,2604 L 2604,2480 Z"/>
<text x="2418" y="2498" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2418" dy="62" unicode-bidi="embed">k = j</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="1829" cy="2728" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2325" y="2095" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2325" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1317" y="2095" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1317" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 806,1798 L 744,1860 L 806,1922 L 1178,1922 L 1240,1860 L 1178,1798 Z"/>
<text x="992" y="1816" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">j = i+1 to n-1</tspan>
</text>
</g>
<text x="1333" y="1754" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1333" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="883" y="1940" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="883" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1147,3069 1519,3069 1519,3237"/>
<polygon fill="#404040" stroke="none" points="1519,3255 1536,3224 1501,3224"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4867 1519,4991 1040,4991"/>
<polygon fill="#404040" stroke="none" points="1023,4991 1053,5008 1053,4973"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,3069 589,3069 589,4991 943,4991"/>
<polygon fill="#404040" stroke="none" points="961,4991 930,4973 930,5008"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 992,2976 L 806,3069 L 992,3162 L 1178,3069 Z"/>
<text x="992" y="3025" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">k != i</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,3379 1519,3826"/>
<polygon fill="#404040" stroke="none" points="1519,3844 1536,3813 1501,3813"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4030 1519,4105"/>
<polygon fill="#404040" stroke="none" points="1519,4123 1536,4092 1501,4092"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4309 1519,4384"/>
<polygon fill="#404040" stroke="none" points="1519,4402 1536,4371 1501,4371"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4588 1519,4663"/>
<polygon fill="#404040" stroke="none" points="1519,4681 1536,4650 1501,4650"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1767,3317 2139,3317 2139,3423"/>
<polygon fill="#404040" stroke="none" points="2139,3441 2156,3410 2121,3410"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2139,3627 2139,3720 1581,3720 1581,3396"/>
<polygon fill="#404040" stroke="none" points="1581,3379 1563,3409 1598,3409"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1705,3441 L 1705,3627 L 2573,3627 L 2573,3441 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1736,3441 1736,3627"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2542,3441 2542,3627"/>
<text x="2139" y="3459" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2139" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[k].score[t], &amp;</tspan>
<tspan x="2139" dy="62" unicode-bidi="embed">stu[i].score[t])</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1333,3255 L 1271,3317 L 1333,3379 L 1705,3379 L 1767,3317 L 1705,3255 Z"/>
<text x="1519" y="3273" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">t = 0 to m-1</tspan>
</text>
</g>
<text x="1860" y="3211" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1860" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1410" y="3397" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1410" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,3844 L 1054,4030 L 1984,4030 L 1984,3844 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,3844 1085,4030"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,3844 1953,4030"/>
<text x="1519" y="3862" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[k].sum, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">sum)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,4123 L 1054,4309 L 1984,4309 L 1984,4123 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,4123 1085,4309"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,4123 1953,4309"/>
<text x="1519" y="4141" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[k].aver, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">aver)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,4402 L 1054,4588 L 1984,4588 L 1984,4402 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,4402 1085,4588"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,4402 1953,4588"/>
<text x="1519" y="4420" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapLong(&amp;stu[k].num, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">num)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1116,4681 L 1116,4867 L 1922,4867 L 1922,4681 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1147,4681 1147,4867"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1891,4681 1891,4867"/>
<text x="1519" y="4699" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapChar(stu[k].name, stu</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">[i].name)</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="992" cy="4991" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="1271" y="2963" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1271" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="697" y="2963" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="697" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 186,1364 L 124,1426 L 186,1488 L 558,1488 L 620,1426 L 558,1364 Z"/>
<text x="372" y="1382" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">i = 0 to n-2</tspan>
</text>
</g>
<text x="713" y="1320" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="713" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="263" y="1506" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2232" height="3317">
<rect x="0" y="0" width="2232" height="3317" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,248 496,323"/>
<polygon fill="#404040" stroke="none" points="496,341 513,310 478,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,1488 496,3051"/>
<polygon fill="#404040" stroke="none" points="496,3069 513,3038 478,3038"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 186,124 A 62 62, 0, 0 0, 186 248 L 806,248 A 62 62, 0, 0 0, 806 124 Z"/>
<text x="496" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="496" dy="62" unicode-bidi="embed">AverSumofEveryCourse</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 372,3069 A 62 62, 0, 0 0, 372 3193 L 620,3193 A 62 62, 0, 0 0, 620 3069 Z"/>
<text x="496" y="3087" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="496" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,496 496,571"/>
<polygon fill="#404040" stroke="none" points="496,589 513,558 478,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,744 496,819"/>
<polygon fill="#404040" stroke="none" points="496,837 513,806 478,806"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,992 496,1067"/>
<polygon fill="#404040" stroke="none" points="496,1085 513,1054 478,1054"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,1240 496,1346"/>
<polygon fill="#404040" stroke="none" points="496,1364 513,1333 478,1333"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 310,341 L 310,496 L 682,496 L 682,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="310,372 682,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="341,341 341,496"/>
<text x="511" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 310,589 L 310,744 L 682,744 L 682,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="310,620 682,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="341,589 341,744"/>
<text x="511" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 124,837 L 124,992 L 868,992 L 868,837 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="124,868 868,868"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="155,837 155,992"/>
<text x="511" y="886" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Real sum[COURSE_NUM]</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 124,1085 L 124,1240 L 868,1240 L 868,1085 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="124,1116 868,1116"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="155,1085 155,1240"/>
<text x="511" y="1134" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Real aver[COURSE_NUM]</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="744,1426 1178,1426 1178,1532"/>
<polygon fill="#404040" stroke="none" points="1178,1550 1195,1519 1160,1519"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1178,2852 1178,2945 558,2945 558,1505"/>
<polygon fill="#404040" stroke="none" points="558,1488 540,1518 575,1518"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1178,1674 1178,1780"/>
<polygon fill="#404040" stroke="none" points="1178,1798 1195,1767 1160,1767"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1178,1922 1178,2369"/>
<polygon fill="#404040" stroke="none" points="1178,2387 1195,2356 1160,2356"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1178,2511 1178,2586"/>
<polygon fill="#404040" stroke="none" points="1178,2604 1195,2573 1160,2573"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 992,1550 L 992,1674 L 1364,1674 L 1364,1550 Z"/>
<text x="1178" y="1568" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1178" dy="62" unicode-bidi="embed">sum[j] = 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1426,1860 1736,1860 1736,1966"/>
<polygon fill="#404040" stroke="none" points="1736,1984 1753,1953 1718,1953"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1736,2170 1736,2263 1240,2263 1240,1939"/>
<polygon fill="#404040" stroke="none" points="1240,1922 1222,1952 1257,1952"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1364,1984 L 1364,2170 L 2108,2170 L 2108,1984 Z"/>
<text x="1736" y="2002" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1736" dy="62" unicode-bidi="embed">sum[j] = sum[j]+stu[i].score</tspan>
<tspan x="1736" dy="62" unicode-bidi="embed">[j]</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 992,1798 L 930,1860 L 992,1922 L 1364,1922 L 1426,1860 L 1364,1798 Z"/>
<text x="1178" y="1816" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1178" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="1519" y="1754" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1069" y="1940" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1069" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 930,2387 L 930,2511 L 1426,2511 L 1426,2387 Z"/>
<text x="1178" y="2405" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1178" dy="62" unicode-bidi="embed">aver[j] = sum[i]/i</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 806,2604 L 682,2852 L 1550,2852 L 1674,2604 Z"/>
<text x="1178" y="2622" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1178" dy="62" unicode-bidi="embed">Output &quot;course %d: sum =</tspan>
<tspan x="1178" dy="62" unicode-bidi="embed"> %.0f,aver = %.0f\n&quot;, j + 1,</tspan>
<tspan x="1178" dy="62" unicode-bidi="embed"> sum[j], aver[j]</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 310,1364 L 248,1426 L 310,1488 L 682,1488 L 744,1426 L 682,1364 Z"/>
<text x="496" y="1382" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="496" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="837" y="1320" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="387" y="1506" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB

@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2628" height="3348">
<rect x="0" y="0" width="2628" height="3348" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,360 612,447"/>
<polygon fill="#404040" stroke="none" points="612,468 632,433 591,433"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,1224 612,3039"/>
<polygon fill="#404040" stroke="none" points="612,3060 632,3025 591,3025"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 252,144 A 108 108, 0, 0 0, 252 360 L 972,360 A 108 108, 0, 0 0, 972 144 Z"/>
<text x="612" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">AverSumofEveryStudent</tspan>
<tspan x="612" dy="72" unicode-bidi="embed">(Integer n, Integer m)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 468,3060 A 72 72, 0, 0 0, 468 3204 L 756,3204 A 72 72, 0, 0 0, 756 3060 Z"/>
<text x="612" y="3081" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,648 612,735"/>
<polygon fill="#404040" stroke="none" points="612,756 632,721 591,721"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="612,936 612,1059"/>
<polygon fill="#404040" stroke="none" points="612,1080 632,1045 591,1045"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 396,468 L 396,648 L 828,648 L 828,468 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="396,504 828,504"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="432,468 432,648"/>
<text x="630" y="525" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="630" dy="72" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 396,756 L 396,936 L 828,936 L 828,756 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="396,792 828,792"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="432,756 432,936"/>
<text x="630" y="813" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="630" dy="72" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="900,1152 1404,1152 1404,1275"/>
<polygon fill="#404040" stroke="none" points="1404,1296 1424,1261 1383,1261"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1404,2808 1404,2916 684,2916 684,1244"/>
<polygon fill="#404040" stroke="none" points="684,1224 663,1258 704,1258"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1404,1440 1404,1563"/>
<polygon fill="#404040" stroke="none" points="1404,1584 1424,1549 1383,1549"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1404,1728 1404,2247"/>
<polygon fill="#404040" stroke="none" points="1404,2268 1424,2233 1383,2233"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1404,2412 1404,2499"/>
<polygon fill="#404040" stroke="none" points="1404,2520 1424,2485 1383,2485"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1152,1296 L 1152,1440 L 1656,1440 L 1656,1296 Z"/>
<text x="1404" y="1317" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1404" dy="72" unicode-bidi="embed">stu[i].sum = 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1692,1656 2052,1656 2052,1779"/>
<polygon fill="#404040" stroke="none" points="2052,1800 2072,1765 2031,1765"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="2052,2016 2052,2124 1476,2124 1476,1748"/>
<polygon fill="#404040" stroke="none" points="1476,1728 1455,1762 1496,1762"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1620,1800 L 1620,2016 L 2484,2016 L 2484,1800 Z"/>
<text x="2052" y="1821" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2052" dy="72" unicode-bidi="embed">stu[i].sum = stu[i].sum+stu</tspan>
<tspan x="2052" dy="72" unicode-bidi="embed">[i].score[j]</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 1188,1584 L 1116,1656 L 1188,1728 L 1620,1728 L 1692,1656 L 1620,1584 Z"/>
<text x="1404" y="1605" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1404" dy="72" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="1800" y="1533" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1800" dy="72" unicode-bidi="embed">Next</tspan>
</text>
<text x="1278" y="1749" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1278" dy="72" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1008,2268 L 1008,2412 L 1800,2412 L 1800,2268 Z"/>
<text x="1404" y="2289" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1404" dy="72" unicode-bidi="embed">stu[i].aver = stu[i].sum/m</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 972,2520 L 828,2808 L 1836,2808 L 1980,2520 Z"/>
<text x="1404" y="2541" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1404" dy="72" unicode-bidi="embed">Output &quot;student %d: sum =</tspan>
<tspan x="1404" dy="72" unicode-bidi="embed"> %.0f,aver = %.0f\n&quot;, i + 1,</tspan>
<tspan x="1404" dy="72" unicode-bidi="embed"> stu[i].sum, stu[i].aver</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 396,1080 L 324,1152 L 396,1224 L 828,1224 L 900,1152 L 828,1080 Z"/>
<text x="612" y="1101" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="612" dy="72" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="1008" y="1029" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1008" dy="72" unicode-bidi="embed">Next</tspan>
</text>
<text x="486" y="1245" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="486" dy="72" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.7 KiB

@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2263" height="2604">
<rect x="0" y="0" width="2263" height="2604" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,248 372,323"/>
<polygon fill="#404040" stroke="none" points="372,341 389,310 354,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,992 372,2338"/>
<polygon fill="#404040" stroke="none" points="372,2356 389,2325 354,2325"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 217,124 A 62 62, 0, 0 0, 217 248 L 527,248 A 62 62, 0, 0 0, 527 124 Z"/>
<text x="372" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">PrintScore</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 248,2356 A 62 62, 0, 0 0, 248 2480 L 496,2480 A 62 62, 0, 0 0, 496 2356 Z"/>
<text x="372" y="2374" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,496 372,571"/>
<polygon fill="#404040" stroke="none" points="372,589 389,558 354,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,744 372,850"/>
<polygon fill="#404040" stroke="none" points="372,868 389,837 354,837"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,341 L 186,496 L 558,496 L 558,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,372 558,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,341 217,496"/>
<text x="387" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,589 L 186,744 L 558,744 L 558,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,620 558,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,589 217,744"/>
<text x="387" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="620,930 1023,930 1023,1036"/>
<polygon fill="#404040" stroke="none" points="1023,1054 1040,1023 1005,1023"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1023,2139 1023,2232 434,2232 434,1009"/>
<polygon fill="#404040" stroke="none" points="434,992 416,1022 451,1022"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1023,1240 1023,1346"/>
<polygon fill="#404040" stroke="none" points="1023,1364 1040,1333 1005,1333"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1023,1488 1023,1935"/>
<polygon fill="#404040" stroke="none" points="1023,1953 1040,1922 1005,1922"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 682,1054 L 589,1240 L 1364,1240 L 1457,1054 Z"/>
<text x="1023" y="1072" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1023" dy="62" unicode-bidi="embed">Output &quot;%ld\t%s\t&quot;, stu[i].</tspan>
<tspan x="1023" dy="62" unicode-bidi="embed">num, stu[i].name</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1271,1426 1674,1426 1674,1532"/>
<polygon fill="#404040" stroke="none" points="1674,1550 1691,1519 1656,1519"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1674,1736 1674,1829 1085,1829 1085,1505"/>
<polygon fill="#404040" stroke="none" points="1085,1488 1067,1518 1102,1518"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1302,1550 L 1209,1736 L 2046,1736 L 2139,1550 Z"/>
<text x="1674" y="1568" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1674" dy="62" unicode-bidi="embed">Output &quot;%.0f\t&quot;, stu[i].score</tspan>
<tspan x="1674" dy="62" unicode-bidi="embed">[j]</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 837,1364 L 775,1426 L 837,1488 L 1209,1488 L 1271,1426 L 1209,1364 Z"/>
<text x="1023" y="1382" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1023" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="1364" y="1320" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1364" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="914" y="1506" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="914" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 651,1953 L 558,2139 L 1395,2139 L 1488,1953 Z"/>
<text x="1023" y="1971" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1023" dy="62" unicode-bidi="embed">Output &quot;%.0f\t%.0f\n&quot;, stu[i].</tspan>
<tspan x="1023" dy="62" unicode-bidi="embed">sum, stu[i].aver</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 186,868 L 124,930 L 186,992 L 558,992 L 620,930 L 558,868 Z"/>
<text x="372" y="886" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="713" y="824" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="713" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="263" y="1010" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.0 KiB

@ -1,43 +1,517 @@
# 学习成绩管理系统
## 系统介绍
本成绩管理系统是为教师提供管理班级成绩的工具,该系统可以实现的对学生的成绩进行增、删、改、查、信息保存和信息导入等基本信息,以及对学生成绩排序和分段的扩展功能,有利于对学生成绩管理。
2023年4月17日-5月1日
## 设计思想
利用结构体——定义STU结构体存储学生学号、姓名、各科成绩、总成绩和平均成绩利用文件来存储读取数据。
李雨佳 徐子贵 许子林 张宇
## 功能描述
- 创建学生基本信息,便于之后查询和浏览
## 项目简介
- 录入各科学习成绩
本成绩管理系统是为教师提供管理班级成绩的工具该系统可以实现的对学生的成绩进行增、删、改、查、信息保存和信息导入等基本信息以及对学生成绩排序和分段的扩展功能有利于对学生成绩管理。项目采用C语言编程实现在VS Code 集成开发环境IDE中使用GCC进行编译。系统采用模块化设计程序结构清晰采用菜单驱动的命令行界面操作便捷能够用CSV格式读取和保存数据通用性强能够用图表展示数据直观清楚。
- 计算每个学生各门课程的总分和平均分
下载地址https://bdgit.educoder.net/pvfj5ugro/text1.git
- 计算每门课程的总分和平均分
项目开发过程中采用 Kanban看板进行任务管理和分工协作并使用 Git 对程序代码和文档进行版本管理。任务分工情况如下:
- 按每个学生的总分由高到低排出名次表
| 任务 | 设计 | 开发 | 测试 | 文档 |
| ------ | ----- | ----- | -- | ----- |
| C1-C3 菜单驱动的用户界面 | 许子林 | 许子林 | 李雨佳 张宇 | 徐子贵 |
| C4 添加学生信息 | 张宇 | 张宇 | 徐子贵 许子林 | 李雨佳 |
| C5-C6 求和求平均 | 徐子贵 | 徐子贵 | 李雨佳 许子林 | 张宇 |
| C7-C9 排序 | 李雨佳 | 李雨佳 | 张宇 徐子贵 | 许子林 |
| C10 学生信息查询 | 张宇 | 张宇 | 李雨佳 徐子贵 | 许子林 |
| C11 统计学生信息 | 徐子贵 | 徐子贵 | 许子林 张宇 | 李雨佳 |
| C12 打印学生信息 | 许子林 | 许子林 | 李雨佳 张宇 | 徐子贵 |
| C13 将学生信息读入文件 | 李雨佳 | 李雨佳 | 许子林 徐子贵 | 张宇 |
| C14 从文件中读取学生信息 | 李雨佳 | 李雨佳 | 张宇 徐子贵 | 许子林 |
- 按每个学生的总分由低到高排出名次表
每个成员的工作量(百分比):
| 李雨佳 | 徐子贵 | 许子林 | 张宇 |
| ------ | ----- | ------ | --- |
|30 | 30 | 20 | 20 |
- 按学号由小到大排出成绩表
## 关于学生成绩管理系统
- 按姓名的字母顺序排出成绩表
设计一个学生成绩管理系统要求采用行菜单界面进行交互具备读取、保存、打印、查询、插入和排序等基本功能能够以表格和图表形式展示数据采用CSV格式保存数据。
- 按学号查询学生排名及其考试成绩
系统的功能性需求:
- 按姓名查询学生排名及考试成绩
- 数据的读取、保存、打印、查询、插入、排序和图表展示。
- 按优秀90-100、良好80-89、中等70-79、及格60-69、不及格0-595个类别对每门课程分别统计每个类别的人数以及所占的百分比
系统的非功能性需求:
- 输出每个学生的学号、姓名、各科考试成绩、以及每门课程的总分和平均分
- 菜单驱动的命令行交互界面
- 将每个学生的记录信息写入文件
## 需求分析
- 从文件中读出每个学生的记录信息并显示
分析系统的功能需求和界面需求,编制用户手册如下。
## 功能设计
### C1: 启动程序
### 基本框架
命令行中执行命令./app,系统启动,显示提示信息,然后显示功能菜单,等待用户输入命令。
```
Management for Students'scores
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice:
```
### C2: 显示命令菜单
调用 Menu() 函数显示命令菜单,用户输入选项后,将结果返回主函数
```
Management for Students'scores
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice:
```
### C3: 退出程序
选择菜单命令 0 ,再输入 y 确认,则退出程序。
```
Please Input your choice: 0
Are you sure you want to exit?(Y/N): y
End of program!
```
### C4: 添加学生信息
选择菜单命令 1 假设n=4,m=3,提示输入学生的学号,姓名和成绩,然后利用循环逐个输入学生的学号和姓名以及各科成绩。
```
Please Input your choice: 1
Input student's ID, name and score:
2214111006 XuZilin 100 95 86
2214111009 XuZigui 77 89 99
2214111011 ZhangYu 85 91 98
2214111025 LiYujia 75 89 100
```
### C5: 计算学生各门课程总分和平均分
选择菜单命令 2 ,计算学生各门课程总分和平均分,然后利用循环逐个输出学生的顺序,总成绩和平均分,结果都取整数。
```
Please Input your choice: 2
student 1: sum = 281, aver = 93
student 2: sum = 265, aver = 88
student 3: sum = 274, aver = 91
student 4: sum = 264, aver = 88
```
### C6: 计算每门课程的总分和平均分
选择菜单命令 3 ,计算每门课程的总分和平均分,然后利用循环逐个输出每门课程的总分和平均分,结果都取整数。
```
Please Input your choice: 3
course 1: sum = 337, aver = 84
course 2: sum = 364, aver = 91
course 3: sum = 383, aver = 95
```
### C7: 学生总分排序
如果a < b, 4 sum
如果a > b,则按降序排序。选择菜单命令 5 ,按选择法将数组 sum 的元素值按降序进行排序,显示提示信息,最后打印出学生成绩。
```
Please Input your choice: 4
Sort in descending order by score:
2214111006 XuZilin 100 95 86 281 93
2214111011 ZhangYu 85 91 98 274 91
2214111009 XuZigui 77 89 99 265 88
2214111025 LiYujia 75 89 100 264 88
Please Input your choice: 5
Sort in ascending order by score:
2214111025 LiYujia 75 89 100 264 88
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111006 XuZilin 100 95 86 281 93
```
### C8: 学号顺序排序
选择菜单命令 6 ,按学号从小到大进行排序,显示提示信息,最后打印学生信息。
```
Please Input your choice: 6
Sort in ascending order by number:
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
### C9: 姓名顺序排序
选择菜单命令 7 ,按姓名的字典顺序进行排序,显示提示信息,最后打印学生信息。
```
Please Input your choice: 7
Sort in dictionary order by name:
2214111025 LiYujia 75 89 100 264 88
2214111009 XuZigui 77 89 99 265 88
2214111006 XuZilin 100 95 86 281 93
2214111011 ZhangYu 85 91 98 274 91
```
### C10: 学生信息查询
- 选择菜单命令 8 ,提示输入学生学号,若该学号存在,则输出学生信息;否则提示没有找到并结束。
```
Please Input your choice: 8
Input the number you want to search:2214111011
2214111011 ZhangYu 85 91 98 274 91
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 8
Input the number you want to search:2214111001
Not found!
```
- 选择菜单命令 9 ,提示输入学生姓名,若该姓名存在,则输出学生信息;否则提示没有找到并结束。
```
Please Input your choice: 9
Input the name you want to search:LiYujia
2214111025 LiYujia 75 89 100 264 88
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 9
Input the name you want to search:SunYizhe
Not found!
```
### C11: 统计各分数段学生人数及所占百分比
选择菜单命令 10提示输入学生成绩通过循环得出各分数段学生人数及所占百分比
```
Please Input your choice: 10
For course 1:
<60 0 0.00%
60-70 0 0.00%
70-80 2 50.00%
80-90 1 25.00%
90-100 0 0.00%
100 1 25.00%
For course 2:
<60 0 0.00%
60-70 0 0.00%
70-80 0 00.00%
80-90 2 50.00%
90-100 2 50.00%
100 0 0.00%
For course 3:
<60 0 0.00%
60-70 0 0.00%
70-80 0 0.00%
80-90 1 25.00%
90-100 2 50.00%
100 1 25.00%
```
### C12: 打印学生信息
选择菜单命令11打印
```
Please Input your choice: 11
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
### C13: 将学生信息保存在文件中
选择菜单命令 12 ,将学生信息保存在文件 student.txt 中。如果文件不存在,则给出错误信息并退出程序,否则逐个读入
```
Please Input your choice: 12
Failure to open score.txt!
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 12
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
### C14从文件中读取学生信息
选择菜单命令 13 ,从文件中读取学生的学号、姓名及成绩等信息写入到结构体数组 stu 中。如果文件为空,则给出错误信息并退出程序,反之,逐个读入
```
Please Input your choice: 13
Failure to open score.txt!
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 13
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
## 概要设计
系统主要分为用户界面和数据处理两大模块。
用户界面模块包括系统初始化init显示菜单display_menu选择菜单命令make_choice、确认confirm、退出quit等子模块。
数据处理模块包括读取数据read_data、保存数据save_data、打印数据print_data、查询数据query_data、添加数据add_data、更新数据update_data、删除数据delete_data、数据排序sort_data和生成图表make_chart等子模块。其中查询、添加、更
新和删除数据还会用到根据编号查询数据的方法find
上述各模块通过主程序main进行调用系统模块图如下。
![系统模块图](main.drawio.svg)
各模块的主要功能如下:
#### main
系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。
#### init
系统初始化
#### menu
显示菜单命令
## 详细设计
针对概要设计
#### main
Step 1:初始化
Step 2:根据用户选择的命令执行相应的操作
Step 2.1:显示菜单
Step 2.2:选择菜单命令 c
Step 2.3:if c == 1 then ReadScore
Step 2.4:if c == 2 then AverSumofEveryStudent
Step 2.5:if c == 3 then AverSumofEveryCourse
Step 2.6:if c == 4 then SortbyScore(Descending)
Step 2.7:if c == 5 then SortbyScore(Ascending)
Step 2.8:if c == 6 then AsSortbyNum
Step 2.9:if c == 7 then SortbyName
Step 2.10:if c == 8 then SearchbyNum
Step 2.11:if c == 9 then SearchbyName
Step 2.12:if c == 10 then StatisticAnalysis
Step 2.13:if c == 11 then PrintScore
Step 2.14:if c == 12 then WritetoFile
Step 2.15:if c == 13 then ReadfromFile
Step 2.16:if c == 0 then exit
![系统模块图](main函数详细实现.drawio.svg)
#### ReadScore
Step 1:显示提示信息,要求输入学生的学号,姓名和成绩
Step 2利用循环输入学生的学号成绩和各科成绩
![学生信息输入](ReadScore.svg)
#### AverSumofEveryStudent
Step 1:利用for循环给 sum 赋初值为 0
Step 2:利用第二重循环重新计算每个学生的总分
Step 3:计算每个学生的平均分
Step 4:将结果按照顺序,总分和平均分的顺序进行输出
![计算每个学生各门课程的总分和平均分](AverSumofEveryStudent.svg)
#### AverSumofEveryCourse
Step 1:利用for循环给 sum 赋初值为 0
Step 2:利用第二重循环重新计算每门课程的总分
Step 3:计算每门课程的平均分
Step 4:将结果按照顺序,总分和平均分的顺序进行输出
![计算每门课程的总分和平均分](AverSumofEveryCourse.svg)
#### SortbyScore
Step 1:利用循环将i赋值给k
Step 2:用循环从i+1到n-1比较,将较小的赋给k
Step 3:如果k与i不相等每一课的成绩交换
Step 4:总分,平均分,学号,姓名依次交换
![按选择法将数组 sum 的元素值排序](SortbyScore.svg)
#### AsSortbyNum
Step 1:利用循环将i赋值给k
Step 2:用循环从i+1到n-1比较,将较小的学号赋给k
Step 3:如果k与i不相等每一课的成绩交换
Step 4:总分,平均分,学号,姓名依次交换
![按选择法将数组 num 的元素从低到高排序](AsSortbyNum.svg)
#### SortbyName
Step 1:利用for循环将相邻的两个姓名作比较
Step 2:如果前一个字符串大于后一个利用for循环交换m门课程的成绩
Step 3:依次交换
![交换法实现字符串按字典顺序排序](SortbyName.svg)
#### SearchbyNum
Step 1:利用for循环给 i 赋值为 0
Step 2:利用 if 条件判断学号是否一致
Step 3:利用二次循环找出所有符合条件的学生
Step 4:利用if条件语句能否找到该学生
![按学号查找学生成绩并显示查找结果](SearchbyNum.svg)
#### SearchbyName
Step 1:利用for循环给 i 赋值为 0
Step 2:利用 if 条件和循环判断是否有此学生并显示结果
![按姓名查找学生成绩并显示查找结果](SearchbyName.svg)
#### StatisticAnalysis
Step 1:将数组 t 的全部元素初始化为0
Step 2:利用循环和if条件统计各分数段学生人数
Step 3:利用循环和if条件统计各分数段学生所占比结果
![统计各分数段的学生人数及所占的百分比](StatisticAnalysis.svg)
#### PrintScore
Step 1:利用for循环输出学生的学号和姓名
Step 2:利用二次循环输出每位学生的成绩
Step 3:输出学生的总分数和平均分
![打印学生成绩](PrintScore.svg)
#### WritetoFile
Step 1:读取文件输出学生人数和课程门数
Step 2:利用循环for依次输出学生学号和姓名
Step 3:利用二次循环输出学生成绩
Step 4:输出总成绩和平均分
![输出n个学生的学号姓名以及m门课程的成绩](-WritetoFile.svg)
#### ReadfromFile
Step 1:从文件中读取学生人数和课门数
Step 2:利用循环for输入学生学号和姓名
Step 3:利用二次循环输入学生成绩
Step 4:输入学生总成绩和平均分
![从文件中读取学生的学号,姓名及成绩等信息写入结构体](ReadfromFile.svg)
#### exit
## 代码实现
// 头文件的使用
@ -98,7 +572,7 @@ int main(void)
int n = 0,m = 0;
STU stu[STU_NUM];
printf("Input student number(n<%d):",STU_NUM);
scnaf("%d",&n);
scanf("%d",&n);
printf("Input course number(m<=%d):",COURSE_NUM);
scanf("%d",&m);
while(1)
@ -112,7 +586,7 @@ int main(void)
break;
case 3:AverSumofEveryStudent(stu,n,m);
break;
case 4:SortbyScore(stu,n,m,Ascending);
case 4:SortbyScore(stu,n,m,Descending);
printf("\nSort in descending order by score:\n");
PrintScore(stu,n,m);
break;
@ -140,7 +614,8 @@ int main(void)
break;
case 13:ReadfromFile(stu,&n,&m);
break;
case 0:printf("End of program!);
case 0: printf("Are you sure you want to exit?(Y/N):");
printf("End of program!");
exit(0);
default:printf("Input error!");
}
@ -153,181 +628,305 @@ int main(void)
```
int Menu(void)
{
set itemSelected
printf "Management for Students' scores\n"
printf "1 Input record\n"
printf "2 Calculate total and average score of every course\n"
printf "3 Calculate total and average score of every student\n"
printf "4 Sort in descending order by score\n"
printf "5 Sort in ascending order by score\n"
printf "6 Sort in ascending order by number\n"
printf "7 Sort in dictionary order by name\n"
printf "8 Search by number\n"
printf "9 Search by name\n"
printf "10 Statistic analysis\n"
printf "11 List record\n"
printf "12 Write to a file\n"
printf "13 Read from a file\n"
printf "0 Exit\n"
printf "Please Input your choice:"
input itemSelected //读入用户输入
return itemSelected
}
```
// 函数功能:输入 n 个学生的 m 门课成绩
```
void ReadScore(STU stu[],int n,int m)
{
function ReadScore(STU stu[],int n,int m) do
int i,j;
printf "Input student's ID ,name and score:\n"
for from i=0 to n-1 do //输入n个同学
input stu[i].num,stu[i].name
for form j=0 to m-1 do //输入m门成绩
input stu[i].score[j]
end
end
end
}
```
//函数功能:计算每个学生各门课程的总分和平均分
```
void AverSumofEveryStudent(STU stu[],int n,int m)
{
}
function AverSumofEveryStudent(STU stu[],int n,int m) do
int i,j;
for form i=0 to n-1 do
stu[i].sum = 0; //初始化每个学生总分为0
for from j=0 to m-1 do
stu[i].sum = stu[i].sum + stu[i].score[j]; //累加分数
end
stu[i].aver = m>0 ? stu[i].sum /m : -1;
printf "student %d: sum = %.0f,aver = %.0f\n"
end
end
```
//函数功能:计算每门课程的总分和平均分
```
void AverSumofEveryCourse(STU stu[],int n,int m)
{
}
function AverSumofEveryCourse(STU stu[],int n,int m) do
int i,j;
float sum[COURSE_NUM],aver[COURSE_NUM];
for from j=0 to m-1 do
sum[j] = 0;
for from i=0 to n-1 do
sum[j]+= stu[i].score[j]; //计算n个同学每门课程的总分
end
aver[j] = sum[j]/i;
printf "course %d: sum = %.0f,aver = %.0f\n"
end
end
```
//函数功能:按选择法将数组 sum 的元素值排序
```
voidSortbyScore(STU stu[],int n,int m,int(*compare)(float a,float b))
{
}
function SortbyScore(STU stu[],int n,int m,int(*compare)(float a,float b)) do
int i, j, k, t;
for from i=0 to n-2 do
k = i;
for from i+1 to n-1 do
if (*compare)(stu[j].sum, stu[k].sum) set k = j;
end
if k != i
for from t=0 to m-1 do //交换m门课程的成绩
SwapFloat(&stu[k].score[t], &stu[i].score[t]);
end
SwapFloat(&stu[k].sum, &stu[i].sum); //交换总分
SwapFloat(&stu[k].aver, &stu[i].aver); //交换平均分
SwapLong(&stu[k].num, &stu[i].num); //交换学号
SwapChar(stu[k].name, stu[i].name); //交换姓名
end
end
end
```
//使数据按升序排序
```
int Ascending(float a,float b)
{
function Ascending(float a,float b) do
return a < b; //a<b
}
end
```
//使数据按降序排序
```
int Descending(float a,float b)
{
function Descending(float a,float b) do
return a > b; // 这样比较决定了按降序排序,如果 a>b则交换
}
end
```
//交换两个单精度浮点型数据
```
void SwapFloat(float *x,float *y)
{
function SwapFloat(float *x,float *y) do
float temp;
temp = *x;
*x = *y;
*y = temp;
}
end
```
//交换两个长整型数据
```
void SwapLong(long *x,long *y)
{
}
function SwapLong(long *x,long *y) do
long temp;
temp = *x;
*x = *y;
*y = temp;
end
```
//交换两个字符串
```
void SwapChar(char x[],chary[])
{
}
```
//函数功能:按选择法将数组 sum 的元素从低到高排序
```
void AsSortbyNum(STU stu[],int n,int m)
{
int i, j, k, t;
for (i=0; i<n-1; i++)
{
k = i;
for (j=i+1; j<n; j++)
{
if ((*compare)(stu[j].sum, stu[k].sum)) k = j;
}
if (k != i)
{
for (t=0; t<m; t++) //m
{
function SwapChar(char x[],char y[]) do
char temp[MAX_LEN];
strcpy(temp, x);
strcpy(x, y);
strcpy(y, temp);
end
```
//函数功能:按选择法将数组 num 的元素从低到高排序
```
function AsSortbyNum(STU stu[],int n,int m) do
int i, j, k, t;
for from i=0 to n-2 do
int i, j, k, t;
set k = i;
for from j=i+1 to n-1 do
if stu[j].num < stu[k].num set k = j;
end
if k != i do
for from t=0 to m-1 do //交换m门课程的成绩
SwapFloat(&stu[k].score[t], &stu[i].score[t]);
}
end
SwapFloat(&stu[k].sum, &stu[i].sum); //交换总分
SwapFloat(&stu[k].aver, &stu[i].aver); //交换平均分
SwapLong(&stu[k].num, &stu[i].num); //交换学号
SwapChar(stu[k].name, stu[i].name); //交换姓名
}
}
}
end
end
end
```
//函数功能:交换法实现字符串按字典顺序排序
```
void SortbyName(STU stu[],int n,int m)
{
}
function SortbyName(STU stu[],int n,int m) do
int i, j, t;
for from i=0 to n-2 do
for from j = i+1 to n-1 do
if strcmp(stu[j].name, stu[i].name) < 0 do
for from t=0 to m-1 do //交换m门课程的成绩
SwapFloat(&stu[i].score[t], &stu[j].score[t]);
end
SwapFloat(&stu[i].sum, &stu[j].sum); //交换总分
SwapFloat(&stu[i].aver, &stu[j].aver); //交换平均分
SwapLong(&stu[i].num, &stu[j].num); //交换学号
SwapChar(stu[i].name, stu[j].name); //交换姓名
end
end
end
end
```
//函数功能:按学号查找学生成绩并显示查找结果
```
void SearchbyNum(STU stu[],int n,int m)
{
}
```
//函数功能:按姓名的字典顺序排出成绩表
```
void SearchbyName(STU stu[],int n,int m)
{
function SearchbyNum(STU stu[],int n,int m) do
long number;
int i,j;
printf"Input the number you want to search:"
input number
forfrom i=0 to n-1 do
if stu[i].num==number do
printf"\n"
for from j=0 to m-1 do
printf "%d\t"
printf "\n"
break;
end
if i==n
printf "\nNot found!\n"
end
```
//函数功能:按姓名查找学生成绩并显示查找结果
```
function SearchbyName(STU stu[],int n,int m) do
char x[MAX_LEN];
int i,j;
printf("Input the name you want to search:");
scanf("%s", x);
for(i=0;i<n;i++)
{
if(strcmp(stu[i].name,x)==0)
{
printf("%ld\t%s\t",stu[i].num,stu[i].name);
for(j=0;j<m;j++)
{
printf("%.0f\t",stu[i].score[j]);
}
printf(".0f\t%.0f\n",stu[i].sum,stu[i].aver);
printf "Input the name you want to search:"
input x
for from i=0 to n-1 do
if strcmp(stu[i].name,x)==0 do
printf "%ld\t%s\t",stu[i].num,stu[i].name"
for from j=0 to m-1 do
printf "%.0f\t"
end
printf ".0f\t%.0f\n"
return;
}
}
printf("\nNot found!\n);
}
end
end
printf "\nNot found!\n"
end
```
//函数功能:统计各分数段的学生人数及所占的百分比
```
void StatisticAnalysis(STU stu[],int n,int m)
{
funtion StatisticAnalysis(STU stu[],int n,int m) do
int i,j,t[6];
for from j=0 do m-1 do
printf "For course %d:\n"
memset(t,0,sizeof(t)); //将数组 t 的全部元素初始化为0
for from i=0 to n-1 do
if stu[i].score[j]>=0&&stu[i].score[j]<60 set t[0]++
else if stu[i].score[j]<70 set t[1]++;
else if stu[i].score[j]<80 set t[2]++;
else if stu[i].score[j]<90 set t[3]++;
else if stu[i].score[j]<100 set t[4]++;
else if stu[i].score[j]==100 set t[5]++;
end
for from i=0 to 4 do
if i==0 printf "<60\t%d\t%.2f%%\n"
else if i==5 printf "%d\t%d\t%.2f%%\n"
else printf "%d-%d\t%d\t%.2f%%\n"
end
end
end
}
```
//函数功能:打印学生成绩
```
void PrintScore(STU stu[],int n,int m)
{
}
function PrintScore(STU stu[],int n,int m) do
int i,j;
for from i=0 to n-1 do
printf "%ld\t%s\t"
for from j=0 to m-1 do
printf "%.0f\t"
end
printf "%.0f\t%.0f\n"
end
end
```
//输出 n 个学生的学号、姓名及 m 门课程的成绩到文件 student.txt 中
```
void WritetoFile(STU stu[],int n,int m)
{
}
function WritetoFile(STU stu[],int n,int m) do
FILE *fp;
int i, j;
if fp = fopen("student.txt","w") == NULL do
printf "Failure to open score.txt!\n"
exit(0);
end
fprintf(fp, "%d\t%d\n", n, m); //将学生人数和课程门数写入文件
for from i=0 to n-1 do
fprintf(fp, "%10ld%10s", stu[i].num, stu[i].name);
for from j=0 to m-1 do
fprintf(fp, "%10.0f", stu[i].score[j]);
end
fprintf(fp, "%10.0f%10.0f\n", stu[i].sum, stu[i].aver);
end
fclose(fp);
end
```
//从文件中读取学生的学号、姓名及成绩等信息写入到结构体 stu 中
```
void ReadfromFile(STU stu[],int *n,int *m)
{
}
function ReadfromFile(STU stu[],int *n,int *m) do
FILE *fp;
int i, j;
if fp = fopen("student.txt","r") == NULL do
printf "Failure to open score.txt!\n"
exit(0);
end
fscanf(fp, "%d\t%d", n, m); //从文件中读出学生人数,课程门数
for from i=0 to *n-1 do //学生人数保存在n指向的储存单元
fscanf(fp, "%10ld", &stu[i].num);
fscanf(fp, "%10s", stu[i].name);
for form j=0 to *m-1 do //课程门数保存在m指向的储存单元
fscanf(fp, "%10f", &stu[i].score[j]); //不能用%10.0f
end
fscanf(fp, "%10f%10f", &stu[i].sum, &stu[i].aver); //不能用%10.0f
end
fclose(fp);
end
```

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2412" height="3204">
<rect x="0" y="0" width="2412" height="3204" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="684,360 684,447"/>
<polygon fill="#404040" stroke="none" points="684,468 704,433 663,433"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="684,1548 684,2895"/>
<polygon fill="#404040" stroke="none" points="684,2916 704,2881 663,2881"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 360,144 A 108 108, 0, 0 0, 360 360 L 1008,360 A 108 108, 0, 0 0, 1008 144 Z"/>
<text x="684" y="165" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="684" dy="72" unicode-bidi="embed">ReadScore</tspan>
<tspan x="684" dy="72" unicode-bidi="embed">(Integer n, Integer m)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="5" stroke-dasharray="none" d="M 540,2916 A 72 72, 0, 0 0, 540 3060 L 828,3060 A 72 72, 0, 0 0, 828 2916 Z"/>
<text x="684" y="2937" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="684" dy="72" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="684,648 684,735"/>
<polygon fill="#404040" stroke="none" points="684,756 704,721 663,721"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="684,936 684,1023"/>
<polygon fill="#404040" stroke="none" points="684,1044 704,1009 663,1009"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="684,1260 684,1383"/>
<polygon fill="#404040" stroke="none" points="684,1404 704,1369 663,1369"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 468,468 L 468,648 L 900,648 L 900,468 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="468,504 900,504"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="504,468 504,648"/>
<text x="702" y="525" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="702" dy="72" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" d="M 468,756 L 468,936 L 900,936 L 900,756 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="468,792 900,792"/>
<polyline fill="none" stroke="#A0A070" stroke-width="5" stroke-dasharray="none" points="504,756 504,936"/>
<text x="702" y="813" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="702" dy="72" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 252,1044 L 144,1260 L 1116,1260 L 1224,1044 Z"/>
<text x="684" y="1065" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="684" dy="72" unicode-bidi="embed">Output &#8220;Input student's ID ,</tspan>
<tspan x="684" dy="72" unicode-bidi="embed">name and score:&quot;</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="972,1476 1260,1476 1260,1599"/>
<polygon fill="#404040" stroke="none" points="1260,1620 1280,1585 1239,1585"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1260,2304 1260,2772 756,2772 756,1568"/>
<polygon fill="#404040" stroke="none" points="756,1548 735,1582 776,1582"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1260,1764 1260,1851"/>
<polygon fill="#404040" stroke="none" points="1260,1872 1280,1837 1239,1837"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1260,2016 1260,2139"/>
<polygon fill="#404040" stroke="none" points="1260,2160 1280,2125 1239,2125"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 972,1620 L 900,1764 L 1548,1764 L 1620,1620 Z"/>
<text x="1260" y="1641" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">Input stu[i].num</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 972,1872 L 900,2016 L 1548,2016 L 1620,1872 Z"/>
<text x="1260" y="1893" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">Input stu[i].name</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1548,2232 1872,2232 1872,2355"/>
<polygon fill="#404040" stroke="none" points="1872,2376 1892,2341 1851,2341"/>
<polyline fill="none" stroke="#404040" stroke-width="9" stroke-dasharray="none" points="1872,2520 1872,2628 1332,2628 1332,2324"/>
<polygon fill="#404040" stroke="none" points="1332,2304 1311,2338 1352,2338"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="5" stroke-dasharray="none" d="M 1548,2376 L 1476,2520 L 2196,2520 L 2268,2376 Z"/>
<text x="1872" y="2397" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1872" dy="72" unicode-bidi="embed">Input stu[i].score[j]</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 1044,2160 L 972,2232 L 1044,2304 L 1476,2304 L 1548,2232 L 1476,2160 Z"/>
<text x="1260" y="2181" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1260" dy="72" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="1656" y="2109" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1656" dy="72" unicode-bidi="embed">Next</tspan>
</text>
<text x="1134" y="2325" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1134" dy="72" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="5" stroke-dasharray="none" d="M 468,1404 L 396,1476 L 468,1548 L 900,1548 L 972,1476 L 900,1404 Z"/>
<text x="684" y="1425" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="684" dy="72" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="1080" y="1353" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1080" dy="72" unicode-bidi="embed">Next</tspan>
</text>
<text x="558" y="1569" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="72" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.5 KiB

@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2821" height="3968">
<rect x="0" y="0" width="2821" height="3968" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,248 837,323"/>
<polygon fill="#404040" stroke="none" points="837,341 854,310 819,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,2201 837,3702"/>
<polygon fill="#404040" stroke="none" points="837,3720 854,3689 819,3689"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 651,124 A 62 62, 0, 0 0, 651 248 L 1023,248 A 62 62, 0, 0 0, 1023 124 Z"/>
<text x="837" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">ReadfromFile</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 713,3720 A 62 62, 0, 0 0, 713 3844 L 961,3844 A 62 62, 0, 0 0, 961 3720 Z"/>
<text x="837" y="3738" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,496 837,571"/>
<polygon fill="#404040" stroke="none" points="837,589 854,558 819,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,744 837,819"/>
<polygon fill="#404040" stroke="none" points="837,837 854,806 819,806"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,1736 837,1811"/>
<polygon fill="#404040" stroke="none" points="837,1829 854,1798 819,1798"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,1953 837,2059"/>
<polygon fill="#404040" stroke="none" points="837,2077 854,2046 819,2046"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 651,341 L 651,496 L 1023,496 L 1023,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="651,372 1023,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="682,341 682,496"/>
<text x="852" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="852" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 651,589 L 651,744 L 1023,744 L 1023,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="651,620 1023,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="682,589 682,744"/>
<text x="852" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="852" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1271,1085 1488,1085 1488,1377"/>
<polygon fill="#404040" stroke="none" points="1488,1395 1505,1364 1470,1364"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1488,1581 1488,1705 885,1705"/>
<polygon fill="#404040" stroke="none" points="868,1705 898,1722 898,1687"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="403,1085 155,1085 155,1705 788,1705"/>
<polygon fill="#404040" stroke="none" points="806,1705 775,1687 775,1722"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 837,837 L 372,1085 L 837,1333 L 1302,1085 Z"/>
<text x="837" y="1010" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">(fp = fopen(&quot;student.txt&quot;,</tspan>
<tspan x="837" dy="62" unicode-bidi="embed"> &quot;r&quot;)) == NULL</tspan>
</text>
</g>
<g>
<path fill="#D0FFD0" stroke="#70A070" stroke-width="4" stroke-dasharray="none" d="M 1178,1395 L 1085,1581 L 1798,1581 L 1891,1395 Z"/>
<text x="1488" y="1413" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1488" dy="62" unicode-bidi="embed">Output &quot;Failure to open</tspan>
<tspan x="1488" dy="62" unicode-bidi="embed"> score.txt!\n&quot;</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="837" cy="1705" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="1395" y="979" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1395" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="263" y="979" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 496,1829 L 434,1953 L 1178,1953 L 1240,1829 Z"/>
<text x="837" y="1847" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">Input fp, &quot;%d\t%d&quot;, n, m</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1085,2139 1519,2139 1519,2245"/>
<polygon fill="#404040" stroke="none" points="1519,2263 1536,2232 1501,2232"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,3503 1519,3596 899,3596 899,2218"/>
<polygon fill="#404040" stroke="none" points="899,2201 881,2231 916,2231"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,2387 1519,2462"/>
<polygon fill="#404040" stroke="none" points="1519,2480 1536,2449 1501,2449"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,2604 1519,2710"/>
<polygon fill="#404040" stroke="none" points="1519,2728 1536,2697 1501,2697"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,2852 1519,3299"/>
<polygon fill="#404040" stroke="none" points="1519,3317 1536,3286 1501,3286"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1116,2263 L 1054,2387 L 1922,2387 L 1984,2263 Z"/>
<text x="1519" y="2281" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">Input fp, &quot;%10ld&quot;, &amp;stu[i].num</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1147,2480 L 1085,2604 L 1891,2604 L 1953,2480 Z"/>
<text x="1519" y="2498" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">Input fp, &quot;%10s&quot;, stu[i].name</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1767,2790 2201,2790 2201,2896"/>
<polygon fill="#404040" stroke="none" points="2201,2914 2218,2883 2183,2883"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2201,3100 2201,3193 1581,3193 1581,2869"/>
<polygon fill="#404040" stroke="none" points="1581,2852 1563,2882 1598,2882"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1798,2914 L 1705,3100 L 2604,3100 L 2697,2914 Z"/>
<text x="2201" y="2932" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2201" dy="62" unicode-bidi="embed">Input fp, &quot;%10f&quot;, &amp;stu[i].score</tspan>
<tspan x="2201" dy="62" unicode-bidi="embed">[j]</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1333,2728 L 1271,2790 L 1333,2852 L 1705,2852 L 1767,2790 L 1705,2728 Z"/>
<text x="1519" y="2746" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="1860" y="2684" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1860" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1410" y="2870" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1410" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1116,3317 L 1023,3503 L 1922,3503 L 2015,3317 Z"/>
<text x="1519" y="3335" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">Input fp, &quot;%10f%10f&quot;, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">sum, &amp;stu[i].aver</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 651,2077 L 589,2139 L 651,2201 L 1023,2201 L 1085,2139 L 1023,2077 Z"/>
<text x="837" y="2095" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="1178" y="2033" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1178" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="728" y="2219" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="728" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2945" height="4092">
<rect x="0" y="0" width="2945" height="4092" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,310 589,385"/>
<polygon fill="#404040" stroke="none" points="589,403 606,372 571,372"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,3751 589,3826"/>
<polygon fill="#404040" stroke="none" points="589,3844 606,3813 571,3813"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 310,124 A 93 93, 0, 0 0, 310 310 L 868,310 A 93 93, 0, 0 0, 868 124 Z"/>
<text x="589" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="589" dy="62" unicode-bidi="embed">SearchbyName</tspan>
<tspan x="589" dy="62" unicode-bidi="embed">(Integer n, Integer m)</tspan>
</text>
</g>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="4" stroke-dasharray="none" d="M 403,3844 A 62 62, 0, 0 0, 403 3968 L 775,3968 A 62 62, 0, 0 0, 775 3844 Z"/>
<text x="589" y="3862" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="589" dy="62" unicode-bidi="embed">Return Integer </tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,558 589,633"/>
<polygon fill="#404040" stroke="none" points="589,651 606,620 571,620"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,806 589,881"/>
<polygon fill="#404040" stroke="none" points="589,899 606,868 571,868"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,1054 589,1129"/>
<polygon fill="#404040" stroke="none" points="589,1147 606,1116 571,1116"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,1333 589,1408"/>
<polygon fill="#404040" stroke="none" points="589,1426 606,1395 571,1395"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,1550 589,1656"/>
<polygon fill="#404040" stroke="none" points="589,1674 606,1643 571,1643"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="589,1798 589,3609"/>
<polygon fill="#404040" stroke="none" points="589,3627 606,3596 571,3596"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 310,403 L 310,558 L 868,558 L 868,403 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="310,434 868,434"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="341,403 341,558"/>
<text x="604" y="452" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="604" dy="62" unicode-bidi="embed">String x[MAX_LEN]</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 403,651 L 403,806 L 775,806 L 775,651 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="403,682 775,682"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="434,651 434,806"/>
<text x="604" y="700" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="604" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 403,899 L 403,1054 L 775,1054 L 775,899 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="403,930 775,930"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="434,899 434,1054"/>
<text x="604" y="948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="604" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 217,1147 L 124,1333 L 961,1333 L 1054,1147 Z"/>
<text x="589" y="1165" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="589" dy="62" unicode-bidi="embed">Output Input the name you</tspan>
<tspan x="589" dy="62" unicode-bidi="embed"> want to search:</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 434,1426 L 372,1550 L 744,1550 L 806,1426 Z"/>
<text x="589" y="1444" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="589" dy="62" unicode-bidi="embed">Input %s</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,1736 1457,1736 1457,1842"/>
<polygon fill="#404040" stroke="none" points="1457,1860 1474,1829 1439,1829"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1457,3410 1457,3503 651,3503 651,1815"/>
<polygon fill="#404040" stroke="none" points="651,1798 633,1828 668,1828"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1860,2077 2077,2077 2077,2338"/>
<polygon fill="#404040" stroke="none" points="2077,2356 2094,2325 2059,2325"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2077,3255 2077,3379 1505,3379"/>
<polygon fill="#404040" stroke="none" points="1488,3379 1518,3396 1518,3361"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1054,2077 806,2077 806,3379 1408,3379"/>
<polygon fill="#404040" stroke="none" points="1426,3379 1395,3361 1395,3396"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1457,1860 L 1023,2077 L 1457,2294 L 1891,2077 Z"/>
<text x="1457" y="2033" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1457" dy="62" unicode-bidi="embed">strcmp(stu[i].name, x) == 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2077,2480 2077,2586"/>
<polygon fill="#404040" stroke="none" points="2077,2604 2094,2573 2059,2573"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2077,2728 2077,3113"/>
<polygon fill="#404040" stroke="none" points="2077,3131 2094,3100 2059,3100"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1829,2356 L 1767,2480 L 2325,2480 L 2387,2356 Z"/>
<text x="2077" y="2374" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2077" dy="62" unicode-bidi="embed">Output %ld\t%s\t</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2325,2666 2542,2666 2542,2772"/>
<polygon fill="#404040" stroke="none" points="2542,2790 2559,2759 2524,2759"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2542,2914 2542,3007 2139,3007 2139,2745"/>
<polygon fill="#404040" stroke="none" points="2139,2728 2121,2758 2156,2758"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2325,2790 L 2263,2914 L 2759,2914 L 2821,2790 Z"/>
<text x="2542" y="2808" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2542" dy="62" unicode-bidi="embed">Output %.0f\t</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1891,2604 L 1829,2666 L 1891,2728 L 2263,2728 L 2325,2666 L 2263,2604 Z"/>
<text x="2077" y="2622" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2077" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="2418" y="2560" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2418" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1968" y="2746" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1968" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1829,3131 L 1767,3255 L 2325,3255 L 2387,3131 Z"/>
<text x="2077" y="3149" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2077" dy="62" unicode-bidi="embed">Output .0f\t%.0f\n</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="1457" cy="3379" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="1984" y="1971" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1984" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="914" y="1971" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="914" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 403,1674 L 341,1736 L 403,1798 L 775,1798 L 837,1736 L 775,1674 Z"/>
<text x="589" y="1692" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="589" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="930" y="1630" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="930" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="480" y="1816" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="480" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 279,3627 L 217,3751 L 899,3751 L 961,3627 Z"/>
<text x="589" y="3645" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="589" dy="62" unicode-bidi="embed">Output \nNot found!\n</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,195 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2728" height="4712">
<rect x="0" y="0" width="2728" height="4712" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,310 558,385"/>
<polygon fill="#404040" stroke="none" points="558,403 575,372 540,372"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,4371 558,4446"/>
<polygon fill="#404040" stroke="none" points="558,4464 575,4433 540,4433"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 279,124 A 93 93, 0, 0 0, 279 310 L 837,310 A 93 93, 0, 0 0, 837 124 Z"/>
<text x="558" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="62" unicode-bidi="embed">SearchbyNum</tspan>
<tspan x="558" dy="62" unicode-bidi="embed">(Integer n, Integer m)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 434,4464 A 62 62, 0, 0 0, 434 4588 L 682,4588 A 62 62, 0, 0 0, 682 4464 Z"/>
<text x="558" y="4482" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,558 558,633"/>
<polygon fill="#404040" stroke="none" points="558,651 575,620 540,620"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,806 558,881"/>
<polygon fill="#404040" stroke="none" points="558,899 575,868 540,868"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,1054 558,1129"/>
<polygon fill="#404040" stroke="none" points="558,1147 575,1116 540,1116"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,1333 558,1408"/>
<polygon fill="#404040" stroke="none" points="558,1426 575,1395 540,1395"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,1550 558,1656"/>
<polygon fill="#404040" stroke="none" points="558,1674 575,1643 540,1643"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="558,1798 558,3826"/>
<polygon fill="#404040" stroke="none" points="558,3844 575,3813 540,3813"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 310,403 L 310,558 L 806,558 L 806,403 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="310,434 806,434"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="341,403 341,558"/>
<text x="573" y="452" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="573" dy="62" unicode-bidi="embed">Integer number</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 372,651 L 372,806 L 744,806 L 744,651 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="372,682 744,682"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="403,651 403,806"/>
<text x="573" y="700" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="573" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 372,899 L 372,1054 L 744,1054 L 744,899 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="372,930 744,930"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="403,899 403,1054"/>
<text x="573" y="948" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="573" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 217,1147 L 124,1333 L 899,1333 L 992,1147 Z"/>
<text x="558" y="1165" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="62" unicode-bidi="embed">Output Input the number</tspan>
<tspan x="558" dy="62" unicode-bidi="embed"> you want to search:</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 403,1426 L 341,1550 L 713,1550 L 775,1426 Z"/>
<text x="558" y="1444" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="62" unicode-bidi="embed">Input %ld</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="806,1736 1364,1736 1364,1842"/>
<polygon fill="#404040" stroke="none" points="1364,1860 1381,1829 1346,1829"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1364,3627 1364,3720 620,3720 620,1815"/>
<polygon fill="#404040" stroke="none" points="620,1798 602,1828 637,1828"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1705,2046 1922,2046 1922,2276"/>
<polygon fill="#404040" stroke="none" points="1922,2294 1939,2263 1904,2263"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1922,3472 1922,3596 1412,3596"/>
<polygon fill="#404040" stroke="none" points="1395,3596 1425,3613 1425,3578"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1023,2046 775,2046 775,3596 1315,3596"/>
<polygon fill="#404040" stroke="none" points="1333,3596 1302,3578 1302,3613"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1364,1860 L 992,2046 L 1364,2232 L 1736,2046 Z"/>
<text x="1364" y="2002" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1364" dy="62" unicode-bidi="embed">stu[i].num == number</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1922,2418 1922,2524"/>
<polygon fill="#404040" stroke="none" points="1922,2542 1939,2511 1904,2511"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1922,2666 1922,3051"/>
<polygon fill="#404040" stroke="none" points="1922,3069 1939,3038 1904,3038"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1922,3193 1922,3286"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1767,2294 L 1705,2418 L 2077,2418 L 2139,2294 Z"/>
<text x="1922" y="2312" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1922" dy="62" unicode-bidi="embed">Output \n</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2170,2604 2356,2604 2356,2710"/>
<polygon fill="#404040" stroke="none" points="2356,2728 2373,2697 2338,2697"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2356,2852 2356,2945 1984,2945 1984,2683"/>
<polygon fill="#404040" stroke="none" points="1984,2666 1966,2696 2001,2696"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2170,2728 L 2108,2852 L 2542,2852 L 2604,2728 Z"/>
<text x="2356" y="2746" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2356" dy="62" unicode-bidi="embed">Output %d\t</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1736,2542 L 1674,2604 L 1736,2666 L 2108,2666 L 2170,2604 L 2108,2542 Z"/>
<text x="1922" y="2560" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1922" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="2263" y="2498" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2263" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1813" y="2684" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1813" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1767,3069 L 1705,3193 L 2077,3193 L 2139,3069 Z"/>
<text x="1922" y="3087" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1922" dy="62" unicode-bidi="embed">Output \n</tspan>
</text>
</g>
<g>
<polygon fill="#FFA0A0" stroke="#A04C4C" stroke-width="4" points="1979,3402 1945,3436 1898,3436 1864,3402 1864,3355 1898,3321 1945,3321 1979,3355"/>
<text x="2123" y="3335" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2123" dy="62" unicode-bidi="embed">Break</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="1364" cy="3596" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="1829" y="1940" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1829" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="883" y="1940" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="883" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 372,1674 L 310,1736 L 372,1798 L 744,1798 L 806,1736 L 744,1674 Z"/>
<text x="558" y="1692" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="899" y="1630" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="899" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="449" y="1816" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="449" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="713,3937 992,3937 992,4074"/>
<polygon fill="#404040" stroke="none" points="992,4092 1009,4061 974,4061"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,4216 992,4340 606,4340"/>
<polygon fill="#404040" stroke="none" points="589,4340 619,4357 619,4322"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="403,3937 155,3937 155,4340 509,4340"/>
<polygon fill="#404040" stroke="none" points="527,4340 496,4322 496,4357"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 558,3844 L 372,3937 L 558,4030 L 744,3937 Z"/>
<text x="558" y="3893" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="558" dy="62" unicode-bidi="embed">i == n</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 682,4092 L 620,4216 L 1302,4216 L 1364,4092 Z"/>
<text x="992" y="4110" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">Output \nNot found!\n</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="558" cy="4340" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="837" y="3831" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="263" y="3831" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,189 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="3472" height="4464">
<rect x="0" y="0" width="3472" height="4464" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,248 372,323"/>
<polygon fill="#404040" stroke="none" points="372,341 389,310 354,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1240 372,4198"/>
<polygon fill="#404040" stroke="none" points="372,4216 389,4185 354,4185"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 217,124 A 62 62, 0, 0 0, 217 248 L 527,248 A 62 62, 0, 0 0, 527 124 Z"/>
<text x="372" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">SortbyName</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 248,4216 A 62 62, 0, 0 0, 248 4340 L 496,4340 A 62 62, 0, 0 0, 496 4216 Z"/>
<text x="372" y="4234" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,496 372,571"/>
<polygon fill="#404040" stroke="none" points="372,589 389,558 354,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,744 372,819"/>
<polygon fill="#404040" stroke="none" points="372,837 389,806 354,806"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,992 372,1098"/>
<polygon fill="#404040" stroke="none" points="372,1116 389,1085 354,1085"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,341 L 186,496 L 558,496 L 558,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,372 558,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,341 217,496"/>
<text x="387" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,589 L 186,744 L 558,744 L 558,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,620 558,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,589 217,744"/>
<text x="387" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,837 L 186,992 L 558,992 L 558,837 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,868 558,868"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,837 217,992"/>
<text x="387" y="886" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer t</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="620,1178 806,1178 806,1315"/>
<polygon fill="#404040" stroke="none" points="806,1333 823,1302 788,1302"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="806,1457 806,4092 434,4092 434,1257"/>
<polygon fill="#404040" stroke="none" points="434,1240 416,1270 451,1270"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1054,1395 1705,1395 1705,1501"/>
<polygon fill="#404040" stroke="none" points="1705,1519 1722,1488 1687,1488"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1705,3875 1705,3968 868,3968 868,1474"/>
<polygon fill="#404040" stroke="none" points="868,1457 850,1487 885,1487"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2139,1767 2356,1767 2356,2090"/>
<polygon fill="#404040" stroke="none" points="2356,2108 2373,2077 2338,2077"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2356,3720 2356,3844 1753,3844"/>
<polygon fill="#404040" stroke="none" points="1736,3844 1766,3861 1766,3826"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1271,1767 1023,1767 1023,3844 1656,3844"/>
<polygon fill="#404040" stroke="none" points="1674,3844 1643,3826 1643,3861"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1705,1519 L 1240,1767 L 1705,2015 L 2170,1767 Z"/>
<text x="1705" y="1692" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1705" dy="62" unicode-bidi="embed">strcmp(stu[j].name, stu[i].</tspan>
<tspan x="1705" dy="62" unicode-bidi="embed">name) &lt; 0</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2356,2232 2356,2679"/>
<polygon fill="#404040" stroke="none" points="2356,2697 2373,2666 2338,2666"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2356,2883 2356,2958"/>
<polygon fill="#404040" stroke="none" points="2356,2976 2373,2945 2338,2945"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2356,3162 2356,3237"/>
<polygon fill="#404040" stroke="none" points="2356,3255 2373,3224 2338,3224"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2356,3441 2356,3516"/>
<polygon fill="#404040" stroke="none" points="2356,3534 2373,3503 2338,3503"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2604,2170 2945,2170 2945,2276"/>
<polygon fill="#404040" stroke="none" points="2945,2294 2962,2263 2927,2263"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2945,2480 2945,2573 2418,2573 2418,2249"/>
<polygon fill="#404040" stroke="none" points="2418,2232 2400,2262 2435,2262"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2542,2294 L 2542,2480 L 3348,2480 L 3348,2294 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2573,2294 2573,2480"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="3317,2294 3317,2480"/>
<text x="2945" y="2312" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2945" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[i].score[t], &amp;</tspan>
<tspan x="2945" dy="62" unicode-bidi="embed">stu[j].score[t])</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 2170,2108 L 2108,2170 L 2170,2232 L 2542,2232 L 2604,2170 L 2542,2108 Z"/>
<text x="2356" y="2126" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2356" dy="62" unicode-bidi="embed">t = 0 to m-1</tspan>
</text>
</g>
<text x="2697" y="2064" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2697" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="2247" y="2250" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2247" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1922,2697 L 1922,2883 L 2790,2883 L 2790,2697 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,2697 1953,2883"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2759,2697 2759,2883"/>
<text x="2356" y="2715" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2356" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[i].sum, &amp;stu[j].</tspan>
<tspan x="2356" dy="62" unicode-bidi="embed">sum)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1922,2976 L 1922,3162 L 2790,3162 L 2790,2976 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,2976 1953,3162"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2759,2976 2759,3162"/>
<text x="2356" y="2994" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2356" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[i].aver, &amp;stu[j].</tspan>
<tspan x="2356" dy="62" unicode-bidi="embed">aver)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1922,3255 L 1922,3441 L 2790,3441 L 2790,3255 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,3255 1953,3441"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2759,3255 2759,3441"/>
<text x="2356" y="3273" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2356" dy="62" unicode-bidi="embed">SwapLong(&amp;stu[i].num, &amp;stu[j].</tspan>
<tspan x="2356" dy="62" unicode-bidi="embed">num)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1953,3534 L 1953,3720 L 2759,3720 L 2759,3534 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1984,3534 1984,3720"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2728,3534 2728,3720"/>
<text x="2356" y="3552" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2356" dy="62" unicode-bidi="embed">SwapChar(stu[i].name, stu</tspan>
<tspan x="2356" dy="62" unicode-bidi="embed">[j].name)</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="1705" cy="3844" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2263" y="1661" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2263" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1131" y="1661" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1131" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 620,1333 L 558,1395 L 620,1457 L 992,1457 L 1054,1395 L 992,1333 Z"/>
<text x="806" y="1351" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="806" dy="62" unicode-bidi="embed">j = i+1 to n-1</tspan>
</text>
</g>
<text x="1147" y="1289" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1147" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="697" y="1475" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="697" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 186,1116 L 124,1178 L 186,1240 L 558,1240 L 620,1178 L 558,1116 Z"/>
<text x="372" y="1134" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">i = 0 to n-2</tspan>
</text>
</g>
<text x="713" y="1072" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="713" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="263" y="1258" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

@ -0,0 +1,240 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2914" height="5549">
<rect x="0" y="0" width="2914" height="5549" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,248 372,323"/>
<polygon fill="#404040" stroke="none" points="372,341 389,310 354,310"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1488 372,5283"/>
<polygon fill="#404040" stroke="none" points="372,5301 389,5270 354,5270"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 217,124 A 62 62, 0, 0 0, 217 248 L 527,248 A 62 62, 0, 0 0, 527 124 Z"/>
<text x="372" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">SortbyScore</tspan>
</text>
</g>
<g>
<path fill="#E0E0E0" stroke="#505050" stroke-width="4" stroke-dasharray="none" d="M 186,5301 A 62 62, 0, 0 0, 186 5425 L 558,5425 A 62 62, 0, 0 0, 558 5301 Z"/>
<text x="372" y="5319" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">Return Integer </tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,496 372,571"/>
<polygon fill="#404040" stroke="none" points="372,589 389,558 354,558"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,744 372,819"/>
<polygon fill="#404040" stroke="none" points="372,837 389,806 354,806"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,992 372,1067"/>
<polygon fill="#404040" stroke="none" points="372,1085 389,1054 354,1054"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1240 372,1346"/>
<polygon fill="#404040" stroke="none" points="372,1364 389,1333 354,1333"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,341 L 186,496 L 558,496 L 558,341 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,372 558,372"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,341 217,496"/>
<text x="387" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,589 L 186,744 L 558,744 L 558,589 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,620 558,620"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,589 217,744"/>
<text x="387" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,837 L 186,992 L 558,992 L 558,837 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,868 558,868"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,837 217,992"/>
<text x="387" y="886" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer k</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,1085 L 186,1240 L 558,1240 L 558,1085 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,1116 558,1116"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,1085 217,1240"/>
<text x="387" y="1134" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Integer t</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="620,1426 992,1426 992,1532"/>
<polygon fill="#404040" stroke="none" points="992,1550 1009,1519 974,1519"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,5084 992,5177 434,5177 434,1505"/>
<polygon fill="#404040" stroke="none" points="434,1488 416,1518 451,1518"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,1674 992,1780"/>
<polygon fill="#404040" stroke="none" points="992,1798 1009,1767 974,1767"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,1922 992,3020"/>
<polygon fill="#404040" stroke="none" points="992,3038 1009,3007 974,3007"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 806,1550 L 806,1674 L 1178,1674 L 1178,1550 Z"/>
<text x="992" y="1568" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">k = i</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1240,1860 1922,1860 1922,1966"/>
<polygon fill="#404040" stroke="none" points="1922,1984 1939,1953 1904,1953"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1922,2821 1922,2914 1054,2914 1054,1939"/>
<polygon fill="#404040" stroke="none" points="1054,1922 1036,1952 1071,1952"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2387,2232 2604,2232 2604,2524"/>
<polygon fill="#404040" stroke="none" points="2604,2542 2621,2511 2586,2511"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2604,2666 2604,2790 1970,2790"/>
<polygon fill="#404040" stroke="none" points="1953,2790 1983,2807 1983,2772"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1457,2232 1209,2232 1209,2790 1873,2790"/>
<polygon fill="#404040" stroke="none" points="1891,2790 1860,2772 1860,2807"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1922,1984 L 1426,2232 L 1922,2480 L 2418,2232 Z"/>
<text x="1922" y="2157" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1922" dy="62" unicode-bidi="embed">if ((*compare)(stu[j].sum, stu</tspan>
<tspan x="1922" dy="62" unicode-bidi="embed">[k].sum))</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2418,2542 L 2418,2666 L 2790,2666 L 2790,2542 Z"/>
<text x="2604" y="2560" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2604" dy="62" unicode-bidi="embed">k = j</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="1922" cy="2790" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2511" y="2126" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2511" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1317" y="2126" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1317" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 806,1798 L 744,1860 L 806,1922 L 1178,1922 L 1240,1860 L 1178,1798 Z"/>
<text x="992" y="1816" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">j = i+1 to n-1</tspan>
</text>
</g>
<text x="1333" y="1754" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1333" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="883" y="1940" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="883" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1147,3131 1519,3131 1519,3299"/>
<polygon fill="#404040" stroke="none" points="1519,3317 1536,3286 1501,3286"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4929 1519,5053 1040,5053"/>
<polygon fill="#404040" stroke="none" points="1023,5053 1053,5070 1053,5035"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,3131 589,3131 589,5053 943,5053"/>
<polygon fill="#404040" stroke="none" points="961,5053 930,5035 930,5070"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 992,3038 L 806,3131 L 992,3224 L 1178,3131 Z"/>
<text x="992" y="3087" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="992" dy="62" unicode-bidi="embed">k!=i</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,3441 1519,3888"/>
<polygon fill="#404040" stroke="none" points="1519,3906 1536,3875 1501,3875"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4092 1519,4167"/>
<polygon fill="#404040" stroke="none" points="1519,4185 1536,4154 1501,4154"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4371 1519,4446"/>
<polygon fill="#404040" stroke="none" points="1519,4464 1536,4433 1501,4433"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4650 1519,4725"/>
<polygon fill="#404040" stroke="none" points="1519,4743 1536,4712 1501,4712"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1767,3379 2139,3379 2139,3485"/>
<polygon fill="#404040" stroke="none" points="2139,3503 2156,3472 2121,3472"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2139,3689 2139,3782 1581,3782 1581,3458"/>
<polygon fill="#404040" stroke="none" points="1581,3441 1563,3471 1598,3471"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1705,3503 L 1705,3689 L 2573,3689 L 2573,3503 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1736,3503 1736,3689"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2542,3503 2542,3689"/>
<text x="2139" y="3521" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2139" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[k].score[t], &amp;</tspan>
<tspan x="2139" dy="62" unicode-bidi="embed">stu[i].score[t])</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1333,3317 L 1271,3379 L 1333,3441 L 1705,3441 L 1767,3379 L 1705,3317 Z"/>
<text x="1519" y="3335" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">t = 0 to m-1</tspan>
</text>
</g>
<text x="1860" y="3273" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1860" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="1410" y="3459" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1410" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,3906 L 1054,4092 L 1984,4092 L 1984,3906 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,3906 1085,4092"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,3906 1953,4092"/>
<text x="1519" y="3924" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[k].sum, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">sum)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,4185 L 1054,4371 L 1984,4371 L 1984,4185 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,4185 1085,4371"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,4185 1953,4371"/>
<text x="1519" y="4203" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapFloat(&amp;stu[k].aver, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">aver)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,4464 L 1054,4650 L 1984,4650 L 1984,4464 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,4464 1085,4650"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,4464 1953,4650"/>
<text x="1519" y="4482" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapLong(&amp;stu[k].num, &amp;stu[i].</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">num)</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1116,4743 L 1116,4929 L 1922,4929 L 1922,4743 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1147,4743 1147,4929"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1891,4743 1891,4929"/>
<text x="1519" y="4761" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1519" dy="62" unicode-bidi="embed">SwapChar(stu[k].name, stu</tspan>
<tspan x="1519" dy="62" unicode-bidi="embed">[i].name)</tspan>
</text>
</g>
</g>
<g>
</g>
<ellipse cx="992" cy="5053" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="1271" y="3025" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1271" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="697" y="3025" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="697" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 186,1364 L 124,1426 L 186,1488 L 558,1488 L 620,1426 L 558,1364 Z"/>
<text x="372" y="1382" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="372" dy="62" unicode-bidi="embed">i = 0 to n-2</tspan>
</text>
</g>
<text x="713" y="1320" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="713" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="263" y="1506" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="263" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1,385 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="4309" height="8711">
<rect x="0" y="0" width="4309" height="8711" fill="#FFFFFF"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,310 496,385"/>
<polygon fill="#404040" stroke="none" points="496,403 513,372 478,372"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,1302 496,8445"/>
<polygon fill="#404040" stroke="none" points="496,8463 513,8432 478,8432"/>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 217,124 A 93 93, 0, 0 0, 217 310 L 775,310 A 93 93, 0, 0 0, 775 124 Z"/>
<text x="496" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="496" dy="62" unicode-bidi="embed">StatisticAnalysis</tspan>
<tspan x="496" dy="62" unicode-bidi="embed">(Integer n, Integer m)</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 372,8463 A 62 62, 0, 0 0, 372 8587 L 620,8587 A 62 62, 0, 0 0, 620 8463 Z"/>
<text x="496" y="8481" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="496" dy="62" unicode-bidi="embed">End</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,558 496,633"/>
<polygon fill="#404040" stroke="none" points="496,651 513,620 478,620"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,806 496,881"/>
<polygon fill="#404040" stroke="none" points="496,899 513,868 478,868"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="496,1054 496,1160"/>
<polygon fill="#404040" stroke="none" points="496,1178 513,1147 478,1147"/>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 310,403 L 310,558 L 682,558 L 682,403 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="310,434 682,434"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="341,403 341,558"/>
<text x="511" y="452" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Integer i</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 310,651 L 310,806 L 682,806 L 682,651 Z"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="310,682 682,682"/>
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="341,651 341,806"/>
<text x="511" y="700" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Integer j</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 310,899 L 310,1054 L 682,1054 L 682,899 Z"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="310,930 682,930"/>
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="341,899 341,1054"/>
<text x="511" y="948" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="511" dy="62" unicode-bidi="embed">Integer t[6]</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="744,1240 1085,1240 1085,1346"/>
<polygon fill="#404040" stroke="none" points="1085,1364 1102,1333 1067,1333"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1085,7068 1085,8339 558,8339 558,1319"/>
<polygon fill="#404040" stroke="none" points="558,1302 540,1332 575,1332"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1085,1488 1085,1563"/>
<polygon fill="#404040" stroke="none" points="1085,1581 1102,1550 1067,1550"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1085,1705 1085,1811"/>
<polygon fill="#404040" stroke="none" points="1085,1829 1102,1798 1067,1798"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1085,1953 1085,6926"/>
<polygon fill="#404040" stroke="none" points="1085,6944 1102,6913 1067,6913"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 744,1364 L 682,1488 L 1426,1488 L 1488,1364 Z"/>
<text x="1085" y="1382" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1085" dy="62" unicode-bidi="embed">Output For course %d:\n</tspan>
</text>
</g>
<g>
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 744,1581 L 744,1705 L 1426,1705 L 1426,1581 Z"/>
<polyline fill="none" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" points="775,1581 775,1705"/>
<polyline fill="none" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" points="1395,1581 1395,1705"/>
<text x="1085" y="1599" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1085" dy="62" unicode-bidi="embed">memset(t, 0, sizeof(t))</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1333,1891 2015,1891 2015,1997"/>
<polygon fill="#404040" stroke="none" points="2015,2015 2032,1984 1997,1984"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2015,6696 2015,6789 1147,6789 1147,1970"/>
<polygon fill="#404040" stroke="none" points="1147,1953 1129,1983 1164,1983"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2015,2852 2015,2927"/>
<polygon fill="#404040" stroke="none" points="2015,2945 2032,2914 1997,2914"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2015,3596 2015,3671"/>
<polygon fill="#404040" stroke="none" points="2015,3689 2032,3658 1997,3658"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2015,4340 2015,4415"/>
<polygon fill="#404040" stroke="none" points="2015,4433 2032,4402 1997,4402"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2015,5084 2015,5159"/>
<polygon fill="#404040" stroke="none" points="2015,5177 2032,5146 1997,5146"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2015,5890 2015,5965"/>
<polygon fill="#404040" stroke="none" points="2015,5983 2032,5952 1997,5952"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2480,2263 2697,2263 2697,2555"/>
<polygon fill="#404040" stroke="none" points="2697,2573 2714,2542 2679,2542"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2697,2697 2697,2821 2063,2821"/>
<polygon fill="#404040" stroke="none" points="2046,2821 2076,2838 2076,2803"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1550,2263 1302,2263 1302,2821 1966,2821"/>
<polygon fill="#404040" stroke="none" points="1984,2821 1953,2803 1953,2838"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2015,2015 L 1519,2263 L 2015,2511 L 2511,2263 Z"/>
<text x="2015" y="2188" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2015" dy="62" unicode-bidi="embed">stu[i].score[j] &gt;= 0 &amp;&amp; stu[i].</tspan>
<tspan x="2015" dy="62" unicode-bidi="embed">score[j] &lt; 60</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2511,2573 L 2511,2697 L 2883,2697 L 2883,2573 Z"/>
<text x="2697" y="2591" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2697" dy="62" unicode-bidi="embed">t[0] = t[0]+1</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="2015" cy="2821" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2604" y="2157" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2604" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1410" y="2157" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1410" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2294,3100 2511,3100 2511,3299"/>
<polygon fill="#404040" stroke="none" points="2511,3317 2528,3286 2493,3286"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2511,3441 2511,3565 2063,3565"/>
<polygon fill="#404040" stroke="none" points="2046,3565 2076,3582 2076,3547"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1736,3100 1488,3100 1488,3565 1966,3565"/>
<polygon fill="#404040" stroke="none" points="1984,3565 1953,3547 1953,3582"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2015,2945 L 1705,3100 L 2015,3255 L 2325,3100 Z"/>
<text x="2015" y="3056" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2015" dy="62" unicode-bidi="embed">stu[i].score[j] &lt; 70</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2325,3317 L 2325,3441 L 2697,3441 L 2697,3317 Z"/>
<text x="2511" y="3335" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2511" dy="62" unicode-bidi="embed">t[1] = t[1]+1</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="2015" cy="3565" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2418" y="2994" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2418" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1596" y="2994" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1596" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2294,3844 2511,3844 2511,4043"/>
<polygon fill="#404040" stroke="none" points="2511,4061 2528,4030 2493,4030"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2511,4185 2511,4309 2063,4309"/>
<polygon fill="#404040" stroke="none" points="2046,4309 2076,4326 2076,4291"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1736,3844 1488,3844 1488,4309 1966,4309"/>
<polygon fill="#404040" stroke="none" points="1984,4309 1953,4291 1953,4326"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2015,3689 L 1705,3844 L 2015,3999 L 2325,3844 Z"/>
<text x="2015" y="3800" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2015" dy="62" unicode-bidi="embed">stu[i].score[j] &lt; 80</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2325,4061 L 2325,4185 L 2697,4185 L 2697,4061 Z"/>
<text x="2511" y="4079" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2511" dy="62" unicode-bidi="embed">t[2] = t[2]+1</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="2015" cy="4309" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2418" y="3738" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2418" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1596" y="3738" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1596" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2294,4588 2511,4588 2511,4787"/>
<polygon fill="#404040" stroke="none" points="2511,4805 2528,4774 2493,4774"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2511,4929 2511,5053 2063,5053"/>
<polygon fill="#404040" stroke="none" points="2046,5053 2076,5070 2076,5035"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1736,4588 1488,4588 1488,5053 1966,5053"/>
<polygon fill="#404040" stroke="none" points="1984,5053 1953,5035 1953,5070"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2015,4433 L 1705,4588 L 2015,4743 L 2325,4588 Z"/>
<text x="2015" y="4544" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2015" dy="62" unicode-bidi="embed">stu[i].score[j] &lt; 90</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2325,4805 L 2325,4929 L 2697,4929 L 2697,4805 Z"/>
<text x="2511" y="4823" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2511" dy="62" unicode-bidi="embed">t[3] = t[3]+1</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="2015" cy="5053" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2418" y="4482" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2418" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1596" y="4482" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1596" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2325,5363 2542,5363 2542,5593"/>
<polygon fill="#404040" stroke="none" points="2542,5611 2559,5580 2524,5580"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2542,5735 2542,5859 2063,5859"/>
<polygon fill="#404040" stroke="none" points="2046,5859 2076,5876 2076,5841"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1705,5363 1457,5363 1457,5859 1966,5859"/>
<polygon fill="#404040" stroke="none" points="1984,5859 1953,5841 1953,5876"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2015,5177 L 1674,5363 L 2015,5549 L 2356,5363 Z"/>
<text x="2015" y="5319" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2015" dy="62" unicode-bidi="embed">stu[i].score[j] &lt; 100</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2356,5611 L 2356,5735 L 2728,5735 L 2728,5611 Z"/>
<text x="2542" y="5629" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2542" dy="62" unicode-bidi="embed">t[4] = t[4]+1</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="2015" cy="5859" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2449" y="5257" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2449" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1565" y="5257" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1565" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2325,6169 2542,6169 2542,6399"/>
<polygon fill="#404040" stroke="none" points="2542,6417 2559,6386 2524,6386"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2542,6541 2542,6665 2063,6665"/>
<polygon fill="#404040" stroke="none" points="2046,6665 2076,6682 2076,6647"/>
<polyline fill="none" stroke="#FF8040" stroke-width="8" stroke-dasharray="none" points="1705,6169 1457,6169 1457,6665 1966,6665"/>
<polygon fill="#FF8040" stroke="none" points="1984,6665 1953,6647 1953,6682"/>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2015,5983 L 1674,6169 L 2015,6355 L 2356,6169 Z"/>
<text x="2015" y="6125" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2015" dy="62" unicode-bidi="embed">stu[i].score[j] == 100</tspan>
</text>
</g>
<g>
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2356,6417 L 2356,6541 L 2728,6541 L 2728,6417 Z"/>
<text x="2542" y="6435" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2542" dy="62" unicode-bidi="embed">t[5] = t[5]+1</tspan>
</text>
</g>
<g>
</g>
<ellipse cx="2015" cy="6665" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
<text x="2449" y="6063" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2449" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1565" y="6063" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1565" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 899,1829 L 837,1891 L 899,1953 L 1271,1953 L 1333,1891 L 1271,1829 Z"/>
<text x="1085" y="1847" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1085" dy="62" unicode-bidi="embed">i = 0 to n-1</tspan>
</text>
</g>
<text x="1426" y="1785" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1426" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="976" y="1971" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="976" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1302,7006 3255,7006 3255,7112"/>
<polygon fill="#404040" stroke="none" points="3255,7130 3272,7099 3237,7099"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="3255,8122 3255,8215 1147,8215 1147,7085"/>
<polygon fill="#404040" stroke="none" points="1147,7068 1129,7098 1164,7098"/>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="3410,7223 3751,7223 3751,7360"/>
<polygon fill="#404040" stroke="none" points="3751,7378 3768,7347 3733,7347"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="3751,7502 3751,8091 3303,8091"/>
<polygon fill="#404040" stroke="none" points="3286,8091 3316,8108 3316,8073"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="3100,7223 2263,7223 2263,7360"/>
<polygon fill="#404040" stroke="none" points="2263,7378 2280,7347 2245,7347"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2263,7967 2263,8091 3206,8091"/>
<polygon fill="#404040" stroke="none" points="3224,8091 3193,8073 3193,8108"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 3255,7130 L 3069,7223 L 3255,7316 L 3441,7223 Z"/>
<text x="3255" y="7179" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3255" dy="62" unicode-bidi="embed">i == 0</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 3379,7378 L 3317,7502 L 4123,7502 L 4185,7378 Z"/>
<text x="3751" y="7396" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3751" dy="62" unicode-bidi="embed">Output &lt;60\t%d\t%.2f%%\n</tspan>
</text>
</g>
<g>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2418,7471 2759,7471 2759,7608"/>
<polygon fill="#404040" stroke="none" points="2759,7626 2776,7595 2741,7595"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2759,7750 2759,7936 2311,7936"/>
<polygon fill="#404040" stroke="none" points="2294,7936 2324,7953 2324,7918"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2108,7471 1767,7471 1767,7608"/>
<polygon fill="#404040" stroke="none" points="1767,7626 1784,7595 1749,7595"/>
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1767,7812 1767,7936 2214,7936"/>
<polygon fill="#404040" stroke="none" points="2232,7936 2201,7918 2201,7953"/>
<g>
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 2263,7378 L 2077,7471 L 2263,7564 L 2449,7471 Z"/>
<text x="2263" y="7427" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2263" dy="62" unicode-bidi="embed">i==5</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 2387,7626 L 2325,7750 L 3131,7750 L 3193,7626 Z"/>
<text x="2759" y="7644" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2759" dy="62" unicode-bidi="embed">Output %d\t%d\t%.2f%%\n</tspan>
</text>
</g>
<g>
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1426,7626 L 1333,7812 L 2108,7812 L 2201,7626 Z"/>
<text x="1767" y="7644" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1767" dy="62" unicode-bidi="embed">Output %d-%d\t%d\t%.2f</tspan>
<tspan x="1767" dy="62" unicode-bidi="embed">%%\n</tspan>
</text>
</g>
<ellipse cx="2263" cy="7936" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="2542" y="7365" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2542" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="1968" y="7365" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1968" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<ellipse cx="3255" cy="8091" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
<text x="3534" y="7117" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="3534" dy="62" unicode-bidi="embed">True</tspan>
</text>
<text x="2960" y="7117" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="2960" dy="62" unicode-bidi="embed">False</tspan>
</text>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 930,6944 L 868,7006 L 930,7068 L 1240,7068 L 1302,7006 L 1240,6944 Z"/>
<text x="1085" y="6962" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1085" dy="62" unicode-bidi="embed">i = 0 to 5</tspan>
</text>
</g>
<text x="1395" y="6900" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="1395" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="976" y="7086" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="976" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
<g>
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 310,1178 L 248,1240 L 310,1302 L 682,1302 L 744,1240 L 682,1178 Z"/>
<text x="496" y="1196" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="496" dy="62" unicode-bidi="embed">j = 0 to m-1</tspan>
</text>
</g>
<text x="837" y="1134" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="837" dy="62" unicode-bidi="embed">Next</tspan>
</text>
<text x="387" y="1320" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
<tspan x="387" dy="62" unicode-bidi="embed">Done</tspan>
</text>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 26 KiB

@ -0,0 +1,367 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="699px" height="1361px" viewBox="-0.5 -0.5 699 1361" content="&lt;mxfile&gt;&lt;diagram id=&quot;k3F4nh4vAVUfQn0zDPXk&quot; name=&quot;Page-1&quot;&gt;7VtLc6M4EP41PmaL9+PoTTKzl91KLYeZPWpBtlUFyCNEbObXjzCSDQjHGAuCy3MyaomW+L5Wq7uVLMznZP+VgO3mbxzBeGFo0X5hviwMQ9c0k/2UkoJLPMeuJGuCIi47CQL0E4pXuTRHEcwaAynGMUXbpjDEaQpD2pABQvCuOWyF4+asW7CGkiAIQSxLv6GIbiqpZ2sn+V8QrTdiZvbJVU8CxGAuyDYgwruayHxdmM8EY1o9JftnGJfoCVyq976c6T0ujMCU9nqBU/EO4px/HF8YLcTXwoh9PG+mOGU/f25oErOWzh7lGfkiMpyTkKvg9FJA1lCM4hOV2mvv8WV+hTiBlBRsAIExoOi9CT3gDK6P4/irS0JAURuwxSilWU3zWylgA7g1Gg5ngtui2QSMPVQaRau2tJPoAGo3wLZ7JZ4MRlJ8Zw1NNP4rG3/Yovmyr3e+FLy1winlO0W3yt49ot+FTvZc08JaJyVlQ+i4hkvFvEnEWF43MUcV1Zr4WyfGzhvAaRO0prLP2MBRR2W30lRDzKFjuzkx5fw17MT5kWPR8ZQdmF2yAYa13R+oEv3saV3+JgClQhlbRqWv6pJMkOA8jWDEad9tEIXBFhwY3jGf3XOHv0NC4f5DI+C9pt1E2PB5e3dyn7pAfVNznU6LibrdNGj4AHPhacYAPdxgxGDrCfsFoJusKIDd+kzUrRFRx+kKkeROYLfMKWF3RvQwMM3vBHPdnhJzbzzMf+SI3gnmtjsh5kJvB+bZFqQ3YY7SBuaVvnlirk8Jedc52o5t02hZJlisFcYgy1DYxKMWpRpWPdo9hr79ot2zSNZTDAHExVC1hp7dAZ6Q3RjRtrnrG9FeVtQvXL06NWrbmqtdtSzdum58c/jNmZfRJ7W90lzPmt1MTUz3BpqY7lxQpC4lMroCxTm7FXHcz5TzwW5F7G+hyOmZBt/qVxxN8cbvSrIfbONb7QN/6MaXFKnb+EJzjZZ6HYzXr0SRqk/9SqqBDaylHVpvkCD2NZBc8g1jV8La5aknw+3HyQBNZ8xkALuuKW+6jwufAwqWt/n5FnEd5Crn0jVVcXlZkzouza7I/7oEVz+XbP0LQRSEmMy2iCZtGlPc5tSTLrfDt6tIumxf6WF2k1s8C2Y9OhK2MpOD0dYVRUdtRU99T8ZrwyNpIsNVGx85YgsoNKnhh+PnmMGTbpf2PswS2g6hQ5fCKKnL9z4aW6Y6smRVCrlSW3K4S648XxVVsiaFTHVdkzwYU4Y29Ch0LihSyJOrnifl4c9M+R0e6rSLf9pIFeb2io8TKQt1um7mHmybW23yhpqBpEjhNh8hy7k3nmxbEU+SInU8iSz3kXlyHGURTocqhVz9TvMMV1006vrj7arfKZ7h64q8n6+Nuafku8rlOyRBnuDVK3sontmqMyixN6BmKRUoe5Wnz5YoxP3tFDVLV06umigFNI8gJ2NWMDlToiTHpgEm9P+CV8Nnhs2U0HhymLHMKnD+yZPZQaN3/eHbaNjIhwVHBiTzs5rOPzkeDRr54n++RmNNeYvkyWWUAAISbmZqNrYxJThy8hlQFttkFIXLFMRFhrLZIeRYEyLky6nEG2HR1DxPKnfKo8qXS/7fCPt+ir+geH7YeFPGgb7sj8vb/hXBySzB0bURfTJrnv6ts0o9Tv8da77+Ag==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 310 620 L 230 620 Q 220 620 210 620 L 126.37 620" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 121.12 620 L 128.12 616.5 L 126.37 620 L 128.12 623.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 430 620 L 513.63 620" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 620 L 511.88 623.5 L 513.63 620 L 511.88 616.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="310" y="590" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 620px; margin-left: 311px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 24px;">
main
</font>
</div>
</div>
</div>
</foreignObject>
<text x="370" y="624" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
main
</text>
</switch>
</g>
<rect x="0" y="590" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 620px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 24px;">
choice
</font>
</div>
</div>
</div>
</foreignObject>
<text x="60" y="624" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
choice
</text>
</switch>
</g>
<rect x="0" y="730" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 760px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 24px;">
confirm
</font>
</div>
</div>
</div>
</foreignObject>
<text x="60" y="764" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
confirm
</text>
</switch>
</g>
<rect x="0" y="450" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 480px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 24px;">
menu
</font>
</div>
</div>
</div>
</foreignObject>
<text x="60" y="484" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
menu
</text>
</switch>
</g>
<rect x="0" y="870" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 900px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 24px;">
quit
</font>
</div>
</div>
</div>
</foreignObject>
<text x="60" y="904" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
quit
</text>
</switch>
</g>
<rect x="0" y="310" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 340px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<span style="font-size: 24px;">
init
</span>
</div>
</div>
</div>
</foreignObject>
<text x="60" y="344" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
init
</text>
</switch>
</g>
<path d="M 200 620 L 200 480 Q 200 470 200 460 L 200 450 Q 200 440 200 430 L 200 350 Q 200 340 190 340 L 126.37 340" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 121.12 340 L 128.12 336.5 L 126.37 340 L 128.12 343.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 200 480 L 126.37 480" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 121.12 480 L 128.12 476.5 L 126.37 480 L 128.12 483.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 200 620 L 200 890 Q 200 900 190 900 L 126.37 900" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 121.12 900 L 128.12 896.5 L 126.37 900 L 128.12 903.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 200 760 L 126.37 760" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 121.12 760 L 128.12 756.5 L 126.37 760 L 128.12 763.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="520" y="0" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 30px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<font style="font-size: 14px;">
ReadScore
</font>
</div>
</div>
</div>
</foreignObject>
<text x="605" y="34" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
ReadScore
</text>
</switch>
</g>
<path d="M 470 620 L 470 40 Q 470 30 480 30 L 513.63 30" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 30 L 511.88 33.5 L 513.63 30 L 511.88 26.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 149.5 L 513.63 149.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 149.5 L 511.88 153 L 513.63 149.5 L 511.88 146 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 269.5 L 513.63 269.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 269.5 L 511.88 273 L 513.63 269.5 L 511.88 266 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 389.5 L 513.63 389.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 389.5 L 511.88 393 L 513.63 389.5 L 511.88 386 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 500 L 513.63 500" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 500 L 511.88 503.5 L 513.63 500 L 511.88 496.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 620 L 470 1320 Q 470 1330 480 1330 L 513.63 1330" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 1330 L 511.88 1333.5 L 513.63 1330 L 511.88 1326.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 730 L 513.63 730" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 730 L 511.88 733.5 L 513.63 730 L 511.88 726.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 850 L 513.63 850" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 850 L 511.88 853.5 L 513.63 850 L 511.88 846.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 969.5 L 513.63 969.5" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 969.5 L 511.88 973 L 513.63 969.5 L 511.88 966 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 1089.5 L 513.63 1089.94" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 1089.99 L 511.85 1093.42 L 513.63 1089.94 L 511.92 1086.42 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 470 1210 L 513.63 1209.56" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 518.88 1209.51 L 511.92 1213.08 L 513.63 1209.56 L 511.85 1206.08 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="520" y="120" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 150px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
AverSumofEveryCourse
</div>
</div>
</div>
</foreignObject>
<text x="605" y="154" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
AverSumofEveryCourse
</text>
</switch>
</g>
<rect x="520" y="240" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 270px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
AverSumofEveryStudent
</div>
</div>
</div>
</foreignObject>
<text x="605" y="274" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
AverSumofEveryStudent
</text>
</switch>
</g>
<rect x="520" y="360" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 390px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SortbyScore
</div>
</div>
</div>
</foreignObject>
<text x="605" y="394" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SortbyScore
</text>
</switch>
</g>
<rect x="520" y="470" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 500px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
AsSortbyNum
</div>
</div>
</div>
</foreignObject>
<text x="605" y="504" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
AsSortbyNum
</text>
</switch>
</g>
<rect x="520" y="590" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 620px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SortbyName
</div>
</div>
</div>
</foreignObject>
<text x="605" y="624" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SortbyName
</text>
</switch>
</g>
<rect x="520" y="700" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 730px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SortbyNum
</div>
</div>
</div>
</foreignObject>
<text x="605" y="734" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SortbyNum
</text>
</switch>
</g>
<rect x="520" y="820" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 850px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
SearchbyName
</div>
</div>
</div>
</foreignObject>
<text x="605" y="854" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
SearchbyName
</text>
</switch>
</g>
<rect x="520" y="940" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 970px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
StatisticAnalysis
</div>
</div>
</div>
</foreignObject>
<text x="605" y="974" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
StatisticAnalysis
</text>
</switch>
</g>
<rect x="520" y="1060" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 1090px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
PrintScore
</div>
</div>
</div>
</foreignObject>
<text x="605" y="1094" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
PrintScore
</text>
</switch>
</g>
<rect x="520" y="1180" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 1210px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
WritetoFile
</div>
</div>
</div>
</foreignObject>
<text x="605" y="1214" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
WritetoFile
</text>
</switch>
</g>
<rect x="520" y="1300" width="170" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 1330px; margin-left: 521px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
ReadfromFile
</div>
</div>
</div>
</foreignObject>
<text x="605" y="1334" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
ReadfromFile
</text>
</switch>
</g>
</g>
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>
<a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank">
<text text-anchor="middle" font-size="10px" x="50%" y="100%">
Text is not SVG - cannot display
</text>
</a>
</switch>
</svg>

After

Width:  |  Height:  |  Size: 32 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 98 KiB

@ -0,0 +1,414 @@
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
// define定义的全局变量
#define MAX_LEN 10 //字符串最大长度
#define STU_NUM 30 //最多的考试人数
#define COURSE_NUM 6 //最多的考试科目
// 结构体的定义
typedef struct student {
long num; //每个学生的学号
char name[MAX_LEN]; //每个学生的姓名
float score[COURSE_NUM]; //每个学生COURSE_NUM门功课的成绩
float sum; //每个学生的总成绩
float aver; //每个学生的平均成绩
}STU;
// 函数声明
int Menu(void); //菜单显示、用户输入函数
void ReadScore(STU stu[], int n, int m); //学生成绩录入函数
void AverSumofEveryStudent(STU stu[], int n, int m); //求每个学生总分和平均分的函数
void AverSumofEveryCourse(STU stu[], int n, int m); //求每门课程总分和平均分的函数
void SortbyScore(STU stu[], int n, int m, int (*compare)(float a, float b)); //选择法将数组 sum 的元素排序的函数
int Ascending(float a, float b); //使数据按升序排序的函数
int Descending(float a, float b); //使数据按降序排序的函数
void SwapFloat(float* x, float* y); //用于交换两个单精度浮点数的函数
void SwapLong(long* x, long* y); //用于交换两个长整型数据的函数
void SwapChar(char x[], char y[]); //用于交换两个字符串的函数
void AsSortbyNum(STU stu[], int n, int m); //选择法将数组 num 的元素值从低到高排序的函数
void SortbyName(STU stu[], int n, int m); //交换法实现字符串按字典顺序排序的函数
void SearchbyNum(STU stu[], int n, int m); //按学号查找学生成绩并显示查找结果的函数
void SearchbyName(STU stu[], int n, int m); //按姓名的字典顺序排出成绩表的函数
void StatisticAnalysis(STU stu[], int n, int m); //统计各分数段的学生人数及所占的百分比的函数
void PrintScore(STU stu[], int n, int m); //打印学生成绩的函数
void WritetoFile(STU record[], int n, int m); //输出学生信息到文件中的函数
void ReadfromFile(STU record[], int* n, int* m); //从文件中读取学生信息的函数
// 主函数
int main(void)
{
char ch;
int n = 0, m = 0;
STU stu[STU_NUM];
printf("Input student number(n<%d):", STU_NUM);
scanf("%d", &n);
printf("Input course number(m<=%d):", COURSE_NUM);
scanf("%d", &m);
while (1)
{
ch = Menu(); //显示菜单,并读取用户输入
switch (ch)
{
case 1:ReadScore(stu, n, m);
break;
case 2:AverSumofEveryCourse(stu, n, m);
break;
case 3:AverSumofEveryStudent(stu, n, m);
break;
case 4:SortbyScore(stu, n, m, Descending);
printf("\nSort in descending order by score:\n");
PrintScore(stu, n, m);
break;
case 5:SortbyScore(stu, n, m, Ascending);
printf("\nSort in ascending order by number:\n");
PrintScore(stu, n, m);
break;
case 6:AsSortbyNum(stu, n, m);
printf("\nSort in ascending order by number:\n");
PrintScore(stu, n, m);
break;
case 7:SortbyName(stu, n, m);
printf("\nSort in dictionary order by name:\n");
PrintScore(stu, n, m);
break;
case 8:SearchbyNum(stu, n, m);
break;
case 9:SearchbyName(stu, n, m);
break;
case 10:StatisticAnalysis(stu, n, m);
break;
case 11:PrintScore(stu, n, m);
break;
case 12:WritetoFile(stu, n, m);
break;
case 13:ReadfromFile(stu, &n, &m);
break;
case 0: printf("Are you sure you want to exit?(Y/N):");
printf("End of program!");
exit(0);
default:printf("Input error!");
}
}
return 0;
}
// 函数功能:显示菜单并获得用户键盘输入的选项
int Menu(void)
{
int itemSelected;
printf("Management for Students' scores\n");
printf("1 Input record\n");
printf("2 Calculate total and average score of every course\n");
printf("3 Calculate total and average score of every student\n");
printf("4 Sort in descending order by score\n");
printf("5 Sort in ascending order by score\n");
printf("6 Sort in ascending order by number\n");
printf("7 Sort in dictionary order by name\n");
printf("8 Search by number\n");
printf("9 Search by name\n");
printf("10 Statistic analysis\n");
printf("11 List record\n");
printf("12 Write to a file\n");
printf("13 Read from a file\n");
printf("0 Exit\n");
printf("Please Input your choice:");
scanf("%d", &itemSelected); //读入用户输入
return itemSelected;
}
// 函数功能:输入 n 个学生的 m 门课成绩
void ReadScore(STU stu[], int n, int m)
{
int i, j;
printf("Input student's ID ,name and score:\n");
for (i = 0; i < n; i++) //输入n个同学
{
scanf("%ld%s", &stu[i].num, stu[i].name);
for (j = 0; j < m; j++) //输入m门成绩
scanf("%f", &stu[i].score[j]);
}
}
//函数功能:计算每个学生各门课程的总分和平均分
void AverSumofEveryStudent(STU stu[], int n, int m)
{
int i, j;
for (i = 0; i < n; i++)
{
stu[i].sum = 0; //初始化每个学生总分为0
for (j = 0; j < m; j++)
{
stu[i].sum = stu[i].sum + stu[i].score[j]; //累加分数
}
stu[i].aver = m > 0 ? stu[i].sum / m : -1;
printf("student %d: sum = %.0f,aver = %.0f\n", i + 1, stu[i].sum, stu[i].aver);
}
}
//函数功能:计算每门课程的总分和平均分
void AverSumofEveryCourse(STU stu[], int n, int m)
{
int i, j;
float sum[COURSE_NUM], aver[COURSE_NUM];
for (j = 0; j < m; j++)
{
sum[j] = 0;
for (i = 0; i < n; i++)
{
sum[j] += stu[i].score[j]; //计算n个同学每门课程的总分
}
aver[j] = sum[j] / i;
printf("course %d: sum = %.0f,aver = %.0f\n", j + 1, sum[j], aver[j]);
}
}
//函数功能:按选择法将数组 sum 的元素值排序
void SortbyScore(STU stu[], int n, int m, int(*compare)(float a, float b))
{
int i, j, k, t;
for (i = 0; i < n - 1; i++)
{
k = i;
for (j = i + 1; j < n; j++)
{
if ((*compare)(stu[j].sum, stu[k].sum)) k = j;
}
if (k != i)
{
for (t = 0; t < m; t++) //交换m门课程的成绩
{
SwapFloat(&stu[k].score[t], &stu[i].score[t]);
}
SwapFloat(&stu[k].sum, &stu[i].sum); //交换总分
SwapFloat(&stu[k].aver, &stu[i].aver); //交换平均分
SwapLong(&stu[k].num, &stu[i].num); //交换学号
SwapChar(stu[k].name, stu[i].name); //交换姓名
}
}
}
//使数据按升序排序
int Ascending(float a, float b)
{
return a < b; //这样比较决定了按升序排序如果a<b则交换
}
//使数据按降序排序
int Descending(float a, float b)
{
return a > b; // 这样比较决定了按降序排序,如果 a>b则交换
}
//交换两个单精度浮点型数据
void SwapFloat(float* x, float* y)
{
float temp;
temp = *x;
*x = *y;
*y = temp;
}
//交换两个长整型数据
void SwapLong(long* x, long* y)
{
long temp;
temp = *x;
*x = *y;
*y = temp;
}
//交换两个字符串
void SwapChar(char x[], char y[])
{
char temp[MAX_LEN];
strcpy(temp, x);
strcpy(x, y);
strcpy(y, temp);
}
//函数功能:按选择法将数组 num 的元素从低到高排序
void AsSortbyNum(STU stu[], int n, int m)
{
int i, j, k, t;
for (i = 0; i < n - 1; i++)
{
k = i;
for (j = i + 1; j < n; j++)
{
if (stu[j].num < stu[k].num) k = j;
}
if (k != i)
{
for (t = 0; t < m; t++) //交换m门课程的成绩
{
SwapFloat(&stu[k].score[t], &stu[i].score[t]);
}
SwapFloat(&stu[k].sum, &stu[i].sum); //交换总分
SwapFloat(&stu[k].aver, &stu[i].aver); //交换平均分
SwapLong(&stu[k].num, &stu[i].num); //交换学号
SwapChar(stu[k].name, stu[i].name); //交换姓名
}
}
}
//函数功能:交换法实现字符串按字典顺序排序
void SortbyName(STU stu[], int n, int m)
{
int i, j, t;
for (i = 0; i < n - 1; i++)
{
for (j = i + 1; j < n; j++)
{
if (strcmp(stu[j].name, stu[i].name) < 0)
{
for (t = 0; t < m; t++) //交换m门课程的成绩
{
SwapFloat(&stu[i].score[t], &stu[j].score[t]);
}
SwapFloat(&stu[i].sum, &stu[j].sum); //交换总分
SwapFloat(&stu[i].aver, &stu[j].aver); //交换平均分
SwapLong(&stu[i].num, &stu[j].num); //交换学号
SwapChar(stu[i].name, stu[j].name); //交换姓名
}
}
}
}
//函数功能:按学号查找学生成绩并显示查找结果
void SearchbyNum(STU stu[], int n, int m)
{
long number;
int i, j;
printf("Input the number you want to search:");
scanf("%ld", &number);
for (i = 0; i < n; i++)
if (stu[i].num == number)
{
printf("\n");
for (j = 0; j < m; j++)
printf("%d\t", stu[i].score[j]);
printf("\n");
break;
}
if (i == n)
printf("\nNot found!\n");
}
//函数功能:按姓名查找学生成绩并显示查找结果
void SearchbyName(STU stu[], int n, int m)
{
char x[MAX_LEN];
int i, j;
printf("Input the name you want to search:");
scanf("%s", x);
for (i = 0; i < n; i++)
{
if (strcmp(stu[i].name, x) == 0)
{
printf("%ld\t%s\t", stu[i].num, stu[i].name);
for (j = 0; j < m; j++)
{
printf("%.0f\t", stu[i].score[j]);
}
printf(".0f\t%.0f\n", stu[i].sum, stu[i].aver);
return;
}
}
printf("\nNot found!\n");
}
//函数功能:统计各分数段的学生人数及所占的百分比
void StatisticAnalysis(STU stu[], int n, int m)
{
int i, j, t[6];
for (j = 0; j < m; j++)
{
printf("For course %d:\n", j + 1);
memset(t, 0, sizeof(t)); //将数组 t 的全部元素初始化为0
for (i = 0; i < n; i++)
{
if (stu[i].score[j] >= 0 && stu[i].score[j] < 60) t[0]++;
else if (stu[i].score[j] < 70) t[1]++;
else if (stu[i].score[j] < 80) t[2]++;
else if (stu[i].score[j] < 90) t[3]++;
else if (stu[i].score[j] < 100) t[4]++;
else if (stu[i].score[j] == 100) t[5]++;
}
for (i = 0; i <= 5; i++)
{
if (i == 0) printf("<60\t%d\t%.2f%%\n", t[i], (float)t[i] / n * 100);
else if (i == 5) printf("%d\t%d\t%.2f%%\n", (i + 5) * 10, t[i], (float)t[i] / n * 100);
else printf("%d-%d\t%d\t%.2f%%\n", (i + 5) * 10, (i + 5) * 10 + 9, t[i], (float)t[i] / n * 100);
}
}
}
//函数功能:打印学生成绩
void PrintScore(STU stu[], int n, int m)
{
int i, j;
for (i = 0; i < n; i++)
{
printf("%ld\t%s\t", stu[i].num, stu[i].name);
for (j = 0; j < m; j++)
{
printf("%.0f\t", stu[i].score[j]);
}
printf("%.0f\t%.0f\n", stu[i].sum, stu[i].aver);
}
}
//输出 n 个学生的学号、姓名及 m 门课程的成绩到文件 student.txt 中
void WritetoFile(STU stu[], int n, int m)
{
FILE* fp;
int i, j;
if ((fp = fopen("student.txt", "w")) == NULL)
{
printf("Failure to open score.txt!\n");
exit(0);
}
fprintf(fp, "%d\t%d\n", n, m); //将学生人数和课程门数写入文件
for (i = 0; i < n; i++)
{
fprintf(fp, "%10ld%10s", stu[i].num, stu[i].name);
for (j = 0; j < m; j++)
{
fprintf(fp, "%10.0f", stu[i].score[j]);
}
fprintf(fp, "%10.0f%10.0f\n", stu[i].sum, stu[i].aver);
}
fclose(fp);
}
//从文件中读取学生的学号、姓名及成绩等信息写入到结构体 stu 中
void ReadfromFile(STU stu[], int* n, int* m)
{
FILE* fp;
int i, j;
if ((fp = fopen("student.txt", "r")) == NULL)
{
printf("Failure to open score.txt!\n");
exit(0);
}
fscanf(fp, "%d\t%d", n, m); //从文件中读出学生人数,课程门数
for (i = 0; i < *n; i++) //学生人数保存在n指向的储存单元
{
fscanf(fp, "%10ld", &stu[i].num);
fscanf(fp, "%10s", stu[i].name);
for (j = 0; j < *m; j++) //课程门数保存在m指向的储存单元
{
fscanf(fp, "%10f", &stu[i].score[j]); //不能用%10.0f
}
fscanf(fp, "%10f%10f", &stu[i].sum, &stu[i].aver); //不能用%10.0f
}
fclose(fp);
}

@ -0,0 +1,312 @@
### C1: 启动程序
命令行中执行命令./app,系统启动,显示提示信息,然后显示功能菜单,等待用户输入命令。
```
Management for Students'scores
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice:
```
### C2: 显示命令菜单
调用 Menu() 函数显示命令菜单,用户输入选项后,将结果返回主函数
```
Management for Students'scores
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice:
```
### C3: 退出程序
选择菜单命令 0 ,再输入 y 确认,则退出程序。
```
Please Input your choice: 0
Are you sure you want to exit?(Y/N): y
End of program!
```
### C4: 添加学生信息
选择菜单命令 1 假设n=4,m=3,提示输入学生的学号,姓名和成绩,然后利用循环逐个输入学生的学号和姓名以及各科成绩。
```
Please Input your choice: 1
Input student's ID, name and score:
2214111006 XuZilin 100 95 86
2214111009 XuZigui 77 89 99
2214111011 ZhangYu 85 91 98
2214111025 LiYujia 75 89 100
```
### C5: 计算学生各门课程总分和平均分
选择菜单命令 2 ,计算学生各门课程总分和平均分,然后利用循环逐个输出学生的顺序,总成绩和平均分,结果都取整数。
```
Please Input your choice: 2
student 1: sum = 281, aver = 93
student 2: sum = 265, aver = 88
student 3: sum = 274, aver = 91
student 4: sum = 264, aver = 88
```
### C6: 计算每门课程的总分和平均分
选择菜单命令 3 ,计算每门课程的总分和平均分,然后利用循环逐个输出每门课程的总分和平均分,结果都取整数。
```
Please Input your choice: 3
course 1: sum = 337, aver = 84
course 2: sum = 364, aver = 91
course 3: sum = 383, aver = 95
```
### C7: 学生总分排序
如果a < b, 4 sum
如果a > b,则按降序排序。选择菜单命令 5 ,按选择法将数组 sum 的元素值按降序进行排序,显示提示信息,最后打印出学生成绩。
```
Please Input your choice: 4
Sort in descending order by score:
2214111006 XuZilin 100 95 86 281 93
2214111011 ZhangYu 85 91 98 274 91
2214111009 XuZigui 77 89 99 265 88
2214111025 LiYujia 75 89 100 264 88
Please Input your choice: 5
Sort in ascending order by score:
2214111025 LiYujia 75 89 100 264 88
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111006 XuZilin 100 95 86 281 93
```
### C8: 学号顺序排序
选择菜单命令 6 ,按学号从小到大进行排序,显示提示信息,最后打印学生信息。
```
Please Input your choice: 6
Sort in ascending order by number:
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
### C9: 姓名顺序排序
选择菜单命令 7 ,按姓名的字典顺序进行排序,显示提示信息,最后打印学生信息。
```
Please Input your choice: 7
Sort in dictionary order by name:
2214111025 LiYujia 75 89 100 264 88
2214111009 XuZigui 77 89 99 265 88
2214111006 XuZilin 100 95 86 281 93
2214111011 ZhangYu 85 91 98 274 91
```
### C10: 学生信息查询
- 选择菜单命令 8 ,提示输入学生学号,若该学号存在,则输出学生信息;否则提示没有找到并结束。
```
Please Input your choice: 8
Input the number you want to search:2214111011
2214111011 ZhangYu 85 91 98 274 91
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 8
Input the number you want to search:2214111001
Not found!
```
- 选择菜单命令 9 ,提示输入学生姓名,若该姓名存在,则输出学生信息;否则提示没有找到并结束。
```
Please Input your choice: 9
Input the name you want to search:LiYujia
2214111025 LiYujia 75 89 100 264 88
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 9
Input the name you want to search:SunYizhe
Not found!
```
### C11: 统计各分数段学生人数及所占百分比
选择菜单命令 10提示输入学生成绩通过循环得出各分数段学生人数及所占百分比
```
Please Input your choice: 10
For course 1:
<60 0 0.00%
60-70 0 0.00%
70-80 2 50.00%
80-90 1 25.00%
90-100 0 0.00%
100 1 25.00%
For course 2:
<60 0 0.00%
60-70 0 0.00%
70-80 0 00.00%
80-90 2 50.00%
90-100 2 50.00%
100 0 0.00%
For course 3:
<60 0 0.00%
60-70 0 0.00%
70-80 0 0.00%
80-90 1 25.00%
90-100 2 50.00%
100 1 25.00%
```
### C12: 打印学生信息
选择菜单命令11打印
```
Please Input your choice: 11
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
### C13: 将学生信息保存在文件中
选择菜单命令 12 ,将学生信息保存在文件 student.txt 中。如果文件不存在,则给出错误信息并退出程序,否则逐个读入
```
Please Input your choice: 12
Failure to open score.txt!
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 12
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
### 从文件中读取学生信息
选择菜单命令 13 ,从文件中读取学生的学号、姓名及成绩等信息写入到结构体数组 stu 中。如果文件为空,则给出错误信息并退出程序,反之,逐个读入
```
Please Input your choice: 13
Failure to open score.txt!
1 Input record
2 Calculate total and average score of every course
3 Calculate total and average score of every student
4 Sort in descending order by score
5 Sort in ascending order by score
6 Sort in ascending order by number
7 Sort in dictionary order by name
8 Search by number
9 Search by name
10 Statistic analysis
11 List record
12 Write to a file
13 Read from a file
0 Exit
Please Input your choice: 13
2214111006 XuZilin 100 95 86 281 93
2214111009 XuZigui 77 89 99 265 88
2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88
```
Loading…
Cancel
Save