Cx330_ReadScore

Cx330_ReadScore
Cx330 2 years ago
parent b200d3af48
commit 5923b7ca2f

@ -413,6 +413,11 @@ Step 2.16:if c == 0 then exit
#### ReadScore #### ReadScore
Step 1:显示提示信息,要求输入学生的学号,姓名和成绩
Step 2利用循环输入学生的学号成绩和各科成绩
![学生信息输入](ReadScore.svg)
#### AverSumofEveryStudent #### AverSumofEveryStudent
#### AverSumofEveryCourse #### AverSumofEveryCourse

@ -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

Loading…
Cancel
Save