学生成绩管理系统

上传人:蜕变 文档编号:191435941 上传时间:2023-03-03 格式:DOC 页数:9 大小:73.50KB
收藏 版权申诉 举报 下载
学生成绩管理系统_第1页
第1页 / 共9页
学生成绩管理系统_第2页
第2页 / 共9页
学生成绩管理系统_第3页
第3页 / 共9页
资源描述:

《学生成绩管理系统》由会员分享,可在线阅读,更多相关《学生成绩管理系统(9页珍藏版)》请在装配图网上搜索。

1、-学生成绩管理系统 V1.04 分#C,功能已实现,但是网页上的运行结果显示错误,暂时没找到问题所在题目内容:*班有最多不超过 30 人具体人数由键盘输入参加*门课程的考试,用一维数组作函数参数编程实现如下学生成绩管理:1录入每个学生的*和考试成绩;2计算课程的总分和平均分;3按成绩由高到低排知名次表;4按*由小到大排出成绩表;5按*查询学生排名及其考试成绩;6按优秀90100、良好8089、中等7079、及格6069、不及格0595 个类别,统计每个类别的人数以及所占的百分比;7输出每个学生的*、考试成绩。程序运行结果例如:Input student number(n30):6Managem

2、ent for Students scores 1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic analysis7.List record0.E*itPlease Input your choice:1Input students ID, name and score: 11003001 87 11003005 98 110030

3、03 75 11003002 48 11003004 6511003006 100Management for Students scores 1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic analysis7.List record0.E*itPlease Input your choice:.z.-2sum=473,aver=

4、78.83Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic analysis7.List record0.E*itPlease Input your choice:3Sort in descending order by score:11003006 10011003005

5、 9811003001 8711003003 7511003004 6511003002 48Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic analysis7.List record0.E*itPlease Input your choice:4Sort in asce

6、nding order by number:11003001 8711003002 4811003003 7511003004 6511003005 9811003006 100Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number.z.-6.Statistic analysis7.List reco

7、rd0.E*itPlease Input your choice:5Input the number you want to search:1100300411003004 65Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic analysis7.List record0.

8、E*itPlease Input your choice:660 1 16.67%60-69 1 16.67%70-79 1 16.67%80-89 1 16.67%90-99 1 16.67%100 1 16.67%Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic ana

9、lysis7.List record0.E*itPlease Input your choice:711003001 8711003002 4811003003 7511003004 6511003005 9811003006 100Management for Students scores1.Input record.z.-2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.S

10、tatistic analysis7.List record0.E*itPlease Input your choice:8Input error!Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.Sort in ascending order by number5.Search by number6.Statistic analysis7.List record0.E*itPlease Inpu

11、t your choice:0End of program!输入格式: 1 录入学生的人数:*输入数据格式:%d*提示信息:Input student number(n30):n 2 录入每个学生的*和考试成绩:*输入数据格式:%ld%f*提示信息:Input students ID, name and score:n输出格式:菜单项的输出显示:Management for Students scores1.Input record2.Caculate total and average score of course3.Sort in descending order by score4.S

12、ort in ascending order by number5.Search by number6.Statistic analysis7.List record0.E*itPlease Input your choice:计算课程的总分和平均分:*输出总分与平均分格式:sum=%.0f,aver=%.2fn按成绩由高到低排知名次表:.z.-*输出格式:%ldt%.0fn*提示信息:Sort in descending order by score:n按*由小到大排出成绩表:*输出格式:%ldt%.0fn*提示信息:Sort in ascending order by number:n按*

13、查询学生排名及其考试成绩:*如果未查到此*的学生,提示信息:Not found!n*如果查询到该学生,输出格式:%ldt%.0fn按优秀90100、良好8089、中等7079、及格6069、不及格0595 个类别,统计每个类别的人数以及所占的百分比:*成绩60 输出格式:60t%dt%.2f%n*成绩=100 输出格式:%dt%dt%.2f%n*其他输出百分比格式:%d-%dt%dt%.2f%n为防止出现格式错误,请直接拷贝粘贴题目中给的格式字符串和提示信息到你的程序中。#源代码#include #include #include#define N 30void input(long haoN

14、,float recordN,int n);void calcu(float recordN,float cal2,int n);void sort_score(long haoN,float recordN,int n);void sort_num(long haoN,float recordN,int n);void search(long haoN,float recordN,int n);void analy(float recordN,int n);void menu();菜单void analy(float recordN,int n)1.录入2.计算总分与平均分3.按成绩排名4/

15、7.按*排名5.按*查询6.按类别统计int i,num6=0;float per6=0;for(i=0;i=90) num1+;else if(recordi=80) num2+;else if(recordi=70) num3+;else if(recordi=60) num4+;else num5+;for(i=0;i6;i+)peri=(float)numi/n*100;printf(60t%dt%.2f%n,num5,per5);.z.-printf(%d-%dt%dt%.2f%n,60,69,num4,per4);printf(%d-%dt%dt%.2f%n,70,79,num3,

16、per3);printf(%d-%dt%dt%.2f%n,80,89,num2,per2);printf(%d-%dt%dt%.2f%n,90,99,num1,per1);printf(%dt%dt%.2f%n,100,num0,per0);void search(long haoN,float recordN,int n)int i;long sear;printf(Input the number you want to search:n);getchar();scanf(%ld,&sear);for(i=0;in;i+)if(haoi=sear)printf(%ldt%.0fn,haoi

17、,recordi);break;if(i=n)printf(Not found!n);void sort_num(long haoN,float recordN,int n)int count,i;printf(Sort in ascending order by number:n);for(count=1;count=n;count+)for(i=0;in;i+)if(int)haoi%10=count)printf(%ldt%.0fn,haoi,recordi);break;void sort_score(long haoN,float recordN,int n).z.-int coun

18、t,i,ma*,pos;float re30;for(i=0;in;i+)rei=recordi;printf(Sort in descending order by score:n);for(count=0;countn;count+)ma*=re0;pos=0;for(i=0;ima*)ma*=rei;pos=i;printf(%ldt%.0fn,haopos,repos);repos=0;void calcu(float recordN,float cal2,int n)int i;for(i=0;in;i+)cal0 += recordi;cal1=cal0/n;void input(

19、long haoN,float recordN,int n)int i;printf(Input students ID, name and score:n);for(i=0;in;i+)scanf(%ld%f,&haoi,&recordi);void menu()printf(Management for Students scoresn);.z.-printf(1.Input recordn);printf(2.Caculate total and average score of coursen); printf(3.Sort in descending order by scoren)

20、; printf(4.Sort in ascending order by numbern); printf(5.Search by numbern); printf(6.Statistic analysisn);printf(7.List recordn);printf(0.E*itn);printf(Please Input your choice:n);int main( )int n,flag;float record30;long hao30;float cal2=0;printf(Input student number(n30):n);scanf(%d,&n);menu();sc

21、anf(%d,&flag);while(flag!=0)if(flag=1)input(hao,record,n);menu();scanf(%d,&flag);else if(flag=2)calcu(record,cal,n);printf(sum=%.0f,aver=%.2fn,cal0,cal1);menu();scanf(%d,&flag);else if(flag=3)sort_score(hao,record,n);menu();scanf(%d,&flag);else if(flag=4 | flag=7)sort_num(hao,record,n);.z.-menu();scanf(%d,&flag);else if(flag=5)search(hao,record,n);menu();scanf(%d,&flag);else if(flag=6)analy(record,n);menu();scanf(%d,&flag);elseprintf(Input error!n);menu();scanf(%d,&flag);if(flag=0)printf(End of program!);return 0;.z.

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!