新版学生成绩标准管理系统.doc
《新版学生成绩标准管理系统.doc》由会员分享,可在线阅读,更多相关《新版学生成绩标准管理系统.doc(13页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、/成绩管理系统v1.0 / 能动1302 王清栋 #include #include #define N 30#define M 6void Input (long num,int scoreM,int n,int m);void Totalave (int scoreM,int n,int m);void evestuTotalave (int scoreM,int n,int m,long num);void Scoredes (long num,int scoreM,int n,int m);void Scoreas (long num,int scoreM,int n,int m);v
2、oid Numas (long num,int scoreM,int n,int m);void Search (long num,int scoreM,int n,int x,int m);void statistis (long num,int scoreM,int n,int m);void List (long num,int scoreM,int n,int m);int main() int n,scoreNM,c,x,m; long numN; printf(输入学生人数); scanf(%d,&n); printf(输入考试科目); scanf(%d,&m); printf(1
3、.Input recordn); printf(2.Caculate totel and average score of every coursen); printf(3.Caculate totel and average score of every studentn); printf(4.Sort in descending order by total score of every studentn); printf(5.Sort in ascending order by total score of every studentn); printf(6.Sort in ascend
4、ing order by numbern); printf(7.Search by numbern); printf(8.Statistic analysis for every coursen); printf(9.List recordn); printf(0.Exitn); printf(Please enter your choice:n); printf(n); for(;) scanf(%d,&c); switch(c) case 1: /录入学生学号和各科成绩 Input (num,score,n,m); printf(Please enter your choice:n); b
5、reak; case 2: /计算每门课程总分和平均分 Totalave (score,n,m); printf(Please enter your choice:n); break; case 3: /计算每个学生总分和平均分 evestuTotalave (score,n,m,num); break; case 4: /按每个学生总分由高到低排出名次表 Scoredes (num,score,n,m); printf(Please enter your choice:n); break; case 5: /按每个学生总分由低到高排出名次表 Scoreas (num,score,n,m);
6、printf(Please enter your choice:n); break; case 6: /按学号由小到大排出名次表 Numas (num,score,n,m); printf(Please enter your choice:n); break; case 7: /按学号查询学生排名及其各科成绩 printf(请输入查找学号n); scanf(%d,&x); Search (num,score,n,x,m); printf(Please enter your choice:n); break; case 8: /成绩分析 所占比例 statistis (num,score,n,m
7、); printf(Please enter your choice:n); break; case 9: /所有输出 List (num,score,n,m); Totalave (score,n,m); printf(Please enter your choice:n); break; case 0: exit(0); return 0;void Input (long num,int scoreM,int n,int m) /1 int i,j; for(i=0;in;i+) printf(Input students ID and score); scanf(%ld,&numi);
8、for(j=0;jm;j+) scanf(%d,&scoreij); void Totalave (int scoreM,int n,int m) /2.计算每门课程总分和平均分 int i,j,sumM; double aveM; for(j=0;jm;j+) sumj=0; for(i=0;in;i+) sumj=sumj+scoreij; avej=(double)sumj/n; for(i=0;im;i+) printf(科目%d总分=%d,课程平均分=%fn,i+1,sumi,avei);void evestuTotalave (int scoreM,int n,int m,long
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 新版 学生 成绩 标准 管理 系统
限制150内