题目内容

请补充main函数,该函数的功能是:从键盘输入学生的成绩(用回车键作为分隔符),并统计各分数段学生的人数。具体要求为:A类为90~100分,B类为80~89分,C类为70~79分,D类为60~69分,59分以下的为E类。当成绩为0时结束成绩的输入,并且最后输入的0不进行统计。 例如,输入89,99,45,64,56,78,88,74,66,55,0。结果为 A:1 B:2 C:2 D:2 E:3 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。 试题程序: #include<stdio.h> #include<conio.h> #define N 100 main() float score[N]; int bb[5]; int grade, i=-1,n=0; char ch=’A’; clrscr(); printf("Input a score(0~100);\n"); do i++; n++; printf("score[%d]=",i); scanf ( 【1】 ); while (score[i]!=0); for(i=0;i<5;i++) 【2】 ; for(i=0;i<n-1;i++) grade= 【3】 ; switch(grade) case 10: case 9:bb[0]++;break; case 8:bb[1]++;break; case 7:bb[2]++;break; case 6:bb[3]++; break; default:bb[4]++; for(i=0;i<5;i++) printf("\n%c:%d",ch+i,bb[i]);

查看答案
更多问题

将考生文件夹下STREET文件夹中的文件AVENUE.obj复制到考生文件夹下TIGER文件夹中。

Passage ThreeQuestions 32 to 35 are based on the passage you have just heard.

A. Because women do much work than men.
Because people think women weaker than men.
C. Because sport is easier for men than for women.
D. Because in sport the two sexes are always separate.

Volunteers like Dave Weiss are helping teachers in ______ . 6 How old are Dave Weiss’ students 7 Is Dave Weiss welcome among the students 8 Many elementary school teachers have ______ experience in science. 9 Dave Weiss tries to let his students have a solid ______ . 10

Questions 17~20 are based on the following introduction to motorcycle meetings in America. You now have 20 seconds to read Questions 17~20. Which of the following is NOT true

A. You can enjoy concerts in Bike Week.
B. The Iron Butt Meeting can be very hard.
C. The Iron Butt Meeting is held twice each year.
D. Rolling Thunder is held once each year.

答案查题题库