皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列给定,函数fun()的功能是:从n个学生的成绩中统计出高于平均分的学生人数,人数由函数值返回,平均分存放在形参aver所指的存储单元中。例如输入8名学生的成绩: 85 65.5 69 95.5 87 55 62.5 75 则高于平均分的学生人数为4(平均分为74.312500)。 请改正的错误,使它能得到正确结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include <stdio.h> include <conio.h> define N 20 int fun(float *S,int n,float *aver) { /*************found*************/ int ave,t=0; int count=0,k,i; for(k=0;k<n;k++) t+=s[k]; ave=t/n; for(i=0;i<n;i++) /*************found***************/ if(s[i]<ave) count++; /*************found*************/ aver=ave; return count; } main() { float S[30],aver; int m,i; clrscr(); printf('/nPlease enter m:'); scanf('%d',&m); printf('/nPlease enter%d mark:/n',m); for(i=0;i<m;i++) scanf('%f',s+i); printf('/nThe number of students:%d/n', fun(S,m,&aver)); printf(“AVe=%f/n”,aver); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】国际中规定的几种图纸幅面中,幅面最大的是()
A.
A0.
B.
A1.
C.
A2.
D.
A3
【单选题】人参根茎上的凹窝状茎痕称为
A.
芦头
B.
芦碗
C.
D.
珍珠疙瘩
E.
铁线纹
【单选题】我国消费税税目共有( )个。 【显示答案】
A.
、 11
B.
、 12
C.
、 13
D.
、 14
【简答题】英译汉 Please download the application form from our official website, fill it in and send it to us within one week.
【简答题】从写法上区分,背景的类型有
【单选题】人参主根上部的根茎称为( )
A.
芦头
B.
人参艼
C.
人参体
D.
珍珠点
E.
芦碗
【单选题】人参的茎痕、根茎、不定根分别称为()
A.
芦头、芦碗、艼
B.
艼、芦头、芦碗
C.
芦碗、芦头、艼
D.
珍珠点、芦头、艼
E.
芦头、珍珠点、芦碗
【判断题】人参的根状茎被称为芦头。
A.
正确
B.
错误
【简答题】Please download the informative speech outline template from the QQ share folder. Write the outline for your informative speech and submit it in the attachment.
【单选题】人参根状茎上的不定根在药材学上称为()。
A.
根头
B.
芦头
C.
芦碗
D.
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题