ztt1
tong tong zhang 2 years ago
parent 22196db1da
commit 6da90c3533

@ -289,6 +289,7 @@ Please Input your choice: 13
2214111011 ZhangYu 85 91 98 274 91 2214111011 ZhangYu 85 91 98 274 91
2214111025 LiYujia 75 89 100 264 88 2214111025 LiYujia 75 89 100 264 88
```` ````
//李玉璇、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
概要设计 概要设计
系统主要分为用户界面和数据处理两大模块。 系统主要分为用户界面和数据处理两大模块。
用户界面模块包括系统初始化init显示菜单display_menu选择菜单命令make_choice、确认confirm、退出quit等子模块。 用户界面模块包括系统初始化init显示菜单display_menu选择菜单命令make_choice、确认confirm、退出quit等子模块。
@ -300,19 +301,19 @@ Please Input your choice: 13
各模块的主要功能如下: 各模块的主要功能如下:
main # main
系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。 系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。
init # init
系统初始化 系统初始化
menu #menu
显示菜单命令 显示菜单命令
详细设计 #详细设计
针对概要设计 针对概要设计
//李玉璇
main #main
Step 1:初始化 Step 1:初始化
Step 2:根据用户选择的命令执行相应的操作 Step 2:根据用户选择的命令执行相应的操作
Step 2.1:显示菜单 Step 2.1:显示菜单
@ -334,28 +335,27 @@ Step 2.16:if c == 0 then exit
[详细设计](257e234fdfd1fa6b1b8baa163ceaaa4./) [详细设计](257e234fdfd1fa6b1b8baa163ceaaa4./)
系统模块图 系统模块图
```` ````
输入n个学生的m门课成绩 1输入n个学生的m门课成绩
ReadScore ReadScore
Step 1:显示提示信息,要求输入学生的学号,姓名和成绩 Step 1:显示提示信息,要求输入学生的学号,姓名和成绩
Step 2利用循环输入学生的学号成绩和各科成绩 Step 2利用循环输入学生的学号成绩和各科成绩
```` ````
计算每个学生各门课程的总分和平均分 ![信息存入](ztt4.drawio.svg)
```` 2计算每个学生各门课程的总分和平均分
AverSumofEveryStudent AverSumofEveryStudent
step1 step1输入一门学生的成绩
step2将学生成绩相加输出总分
step3输出课程平均值
step4输入下一门课程
```` ````
![总分和平均分](ztt1.drawio.svg) ![总分平均分](ztt1.drawio.svg)
Step 1:利用for循环给 sum 赋初值为 0
Step 2:利用第二重循环重新计算每个学生的总分
Step 3:计算每个学生的平均分
Step 4:将结果按照舒徐,总分和平均分的顺序进行输出
````
计算每个学生各门课程的总分和平均分
AverSumofEveryCourse AverSumofEveryCourse
````
step1 step1
step2
```` ````
计算每门课程的总分和平均分 lct
3计算每门课程的总分和平均分
SortbyScore SortbyScore
按选择法将数组sum的元素值排序 按选择法将数组sum的元素值排序
SortbyScore SortbyScore

@ -0,0 +1,108 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="181px" height="671px" viewBox="-0.5 -0.5 181 671" content="&lt;mxfile&gt;&lt;diagram id=&quot;urJaBnW9558vqsQlialJ&quot; name=&quot;Page-1&quot;&gt;1ZfLkpswEEW/pvfYvMQSPDjZpJKKF1kr0AOqCETJ8itfH2GEgcgeu2ocprLB0u0W6HYfyxjcVXX8JGlTfhE5clg6+RHcF1guXcfT11Y4dYIfkE4oJMs7aTEIG/YbjegYdcdy3E4SlRBcsWYqZqKuMVMTjUopDtO0V8GnT21ogZawySi31R8sV2WnEt8Z9M/IirJ/8sIxkYr2yUbYljQXh5HkpuCupBCqG1XHFfK2dn1dunXrG9HLxiTW6pEFphF7ynfGm9mXOvVmMdfezbQWtf5ISlVxPVvoYZfe5tzcgZG2Yiczk2Weoqgs0GS5F/eaGhQVKnnSKRI5VWw/vTs1/SsueYNFPTAurzteWo4rymrbNeeaptbsoWQKNw097/2geb5WgD1Khce3S2Cb6xf0eJivQ2Cmh4GtRQ9MOeKKOO8vR/AxALg2AP5MALiW4+9I800mJFrW5+/95Yy71/zgCc0nH9N8325+OFPzfdtxSiBJIXIh9YH4EPvtIH6BOIA0hMiDaH0exEC8UUgnryEJIdXXFZDVORSa+0QOkJdRKABCWlHfJ0kgjqwy69+Bph02UmS43d4/dn7S7Fchxa7Ov+4UZ21j/hWSrjcjkj3+czMZ2kxGMzEZPsBkDakHCYE4fhqdNxGkknKOXBSSVrqeDUqmPaH8O/ZtCNyj9ZUdsX+PexKl4RRSL7wCKbkC6YXu97QseqBlFaQRRCHEpI3F6zacnqckGbXsvz4agmtVf9LRoKfDe/A5Nvoz4aZ/AA==&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/>
<g>
<path d="M 90 80 L 90 143.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 90 148.88 L 86.5 141.88 L 90 143.63 L 93.5 141.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="90" cy="40" rx="60" ry="40" 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: 40px; margin-left: 31px;">
<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;">
main
</div>
</div>
</div>
</foreignObject>
<text x="90" y="44" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
main
</text>
</switch>
</g>
<path d="M 90 210 L 90 273.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 90 278.88 L 86.5 271.88 L 90 273.63 L 93.5 271.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="30" y="150" 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: 180px; margin-left: 31px;">
<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;">
ReadScore
</div>
</div>
</div>
</foreignObject>
<text x="90" y="184" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
ReadScore
</text>
</switch>
</g>
<path d="M 90 340 L 90 403.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 90 408.88 L 86.5 401.88 L 90 403.63 L 93.5 401.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="30" y="280" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 42 280 L 42 340 M 138 280 L 138 340" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" 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: 94px; height: 1px; padding-top: 310px; margin-left: 43px;">
<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;">
输入学生的学号,姓名,成绩
</div>
</div>
</div>
</foreignObject>
<text x="90" y="314" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
输入学生的学号,姓名,成绩
</text>
</switch>
</g>
<path d="M 90 510 L 90 603.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 90 608.88 L 86.5 601.88 L 90 603.63 L 93.5 601.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 0 510 L 20 410 L 180 410 L 160 510 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" 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: 178px; height: 1px; padding-top: 460px; 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;">
输入n个学生的学号姓名
</div>
</div>
</div>
</foreignObject>
<text x="90" y="464" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
输入n个学生的学号姓名
</text>
</switch>
</g>
<rect x="30" y="610" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 42 610 L 42 670 M 138 610 L 138 670" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" 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: 94px; height: 1px; padding-top: 640px; margin-left: 43px;">
<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;">
输入m门课程的成绩
</div>
</div>
</div>
</foreignObject>
<text x="90" y="644" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
输入m门课程的成绩
</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: 9.4 KiB

Loading…
Cancel
Save