当前位置: 首页 > news >正文

网站建设评价量规wordpress 自定义 分类

网站建设评价量规,wordpress 自定义 分类,WordPress导入hexo,医院网站建设费用某班有最多不超过30人#xff08;具体人数由键盘输入#xff09;参加某门课程的考试#xff0c;用一维数组作函数参数编程实现如下学生成绩管理#xff1a; #xff08;1#xff09;录入每个学生的学号和考试成绩#xff1b; #xff08;2#xff09;计算课程的总分…某班有最多不超过30人具体人数由键盘输入参加某门课程的考试用一维数组作函数参数编程实现如下学生成绩管理 1录入每个学生的学号和考试成绩 2计算课程的总分和平均分 3按成绩由高到低排出名次表 4按学号由小到大排出成绩表 5按学号查询学生排名及其考试成绩 6按优秀90~100、良好80~89、中等70~79、及格60~69、不及格0~595个类别统计每个类别的人数以及所占的百分比 7输出每个学生的学号、考试成绩。 #include iostream #include iomanip using namespace std; void input(int a[], float b[],int); void caculate(float a[],int); void sort_in_descending_order_by_score(int a[], float b[],int); void sort_in_ascending_order_by_number(int a[],float b[],int); void search(int a[],float b[],int); void statistic(float a[],int); int main() {int n;cout Input student number(n30):;cin n;int choice;int xvehao[30];float score[30];while (1){cout endl;cout Management for Students scores endl;cout 1.Input record endl;cout 2.Caculate total and average score of course endl;cout 3.Sort in descending order by score endl;cout 4.Sort in ascending order by number endl;cout 5.Search by number endl;cout 6.Statistic analysis endl;cout 7.List record endl;cout 0.Exit endl;cout Please Input your choice:;cin choice;if (choice 1)input(xvehao, score, n);else if (choice 2)caculate(score, n);else if (choice 3)sort_in_descending_order_by_score(xvehao, score, n);else if (choice 4)sort_in_ascending_order_by_number(xvehao, score, n);else if (choice 5)search(xvehao, score, n);else if (choice 6)statistic(score, n);else if (choice 7)sort_in_ascending_order_by_number(xvehao, score, n);else if (choice 0)break;else{cout Please input any number from 0 to 7!endl; continue;}}return 0; } void input(int a[], float b[],int n) {int i;cout Input students ID, name and score: endl;for (i 1; i n; i){cin a[i] b[i];}} void caculate(float a[], int n) {float sum0,aver;int i;for (i 1; i n; i){sum a[i];}aver sum / n;cout sum sum , aver fixed setprecision(2) aver;cout endl; } void sort_in_descending_order_by_score(int a[], float b[], int n) {int i, j,k;for (i 1; i n; i){k i;for (j i1; j n ; j){if (b[k] b[j])k j;}int x a[i], y b[i];a[i] a[k]; b[i] b[k];a[k] x; b[k] y;}for (i 1; i n; i){cout a[i] b[i] endl;} } void sort_in_ascending_order_by_number(int a[], float b[], int n) {int i, j,k;for (i 1; i n; i){k i;for (j i 1; j n; j){if (a[j] a[k])k j;}int x a[i], y b[i];a[i] a[k]; b[i] b[k];a[k] x; b[k] y;}for (i 1; i n; i){cout a[i] b[i] endl;} } void search(int a[], float b[], int n) {int number;cin number;int i,k;for (i 1; i n; i){if (a[i] number){cout a[i] b[i]endl;k 1;break;}else k 0;}if (k 0)cout Cant find this student!endl; } void statistic(float a[], int n) {int i;int A 0, B 0, C 0, D 0, E 0, F 0;for (i 1; i n; i){if (a[i] 100)A;else if (a[i] 90 a[i] 99)B;else if (a[i] 80 a[i] 89)C;else if (a[i] 70 a[i] 79)D;else if (a[i] 60 a[i] 69)E;else F;}cout 60 F fixedsetprecision(2) ((float)F / n) * 100 % endl;cout 60-69 E fixed setprecision(2) ((float)E / n) * 100 % endl;cout 70-79 D fixed setprecision(2) ((float)D / n) * 100 % endl;cout 80-89 C fixed setprecision(2) ((float)C / n) *100 %endl;cout 90-99 B fixed setprecision(2) ((float)B / n) * 100 % endl;cout 100 A fixed setprecision(2) ((float)A / n) * 100 % endl; }
http://www.huolong8.cn/news/281166/

相关文章:

  • 怎么增加网站流量网站建立的步骤是( )
  • 海淀制作网站的公司揭阳自助建站
  • 徐州网站制作机构微信软文怎么写
  • 做网站申请多少类商标什么网站可以学习建设工程法律实践
  • 网站安全制度体系的建设情况江门网站制作公司
  • 交网站建设 域名计入什么科目北洼路网站建设
  • 怎么做自己的快递查询网站php网站开发练手项目
  • 为什么做儿童音乐网站民族文化网站建设的作用
  • 做app网站的软件有哪些内容吗手机网站图片宽度
  • 网络系统搭建站长工具seo综合查询网
  • 杭州萧山网站开发超变传奇手游刀刀切割无会员散人
  • 江阴网站建设培训电商视觉设计网站
  • 南昌h5建站学点啥网站
  • 佛山网站建设shundeit网络推广方法
  • 高端网站建设服务商广告设计好学吗
  • 吴忠市建设工程质量监督站网站网页版微信登录提示二维码已失效
  • 策划书的网站wordpress 视差模板
  • 网站建设属于技术服务吗工程中标公示查询怎么查
  • 绚丽网站哪个网站是做包装材料珍珠棉包管
  • 扁平化设计 科技感网站素材推广资源整合平台
  • 网站建设课程设计报告图文网页设计与制作的原则
  • 做网站后面加什么wordpress编辑器图片
  • 如何评价一个网站做的是否好河北建设厅网站开通账号
  • 旅游网站推广方案wordpress弹窗广告
  • 网站管理员怎样管理员权限济宁网站制作
  • 服务器上怎么搭建网站电子商务网站建设与管理课后答案
  • cms内容网站管理系统大公司网站色彩设计
  • 个人做 下载类网站公司注册网上申请流程
  • 建立网站需要什么软件电子商务网站建设的规划和实施
  • 做pc端网站基本流程网站前端设计与制作ppt