简答题:本题中数组arr中存储了学生的成绩,分别为87,45,56,78,67,56,91,62,82,63,程序的功能是计算低

  • 题目分类:Java
  • 题目类型:简答题
  • 查看权限:VIP
题目内容:
本题中数组arr中存储了学生的成绩,分别为87,45,56,78,67,56,91,62,82,63,程序的功能是计算低于平均分的人数,并打印输出结果。请在程序空缺部分填写适当内容。使程序能正确运行。
public class javal{
public static void main(String[]args){
int arr[]={56,91,78,67,56,87,45,62,82,63};
int num=arr.length
int i=0;
int sumScore= 0;
int sumNum=0;
double average;
while(i<num){
sumScore=sumScore+arr[i];

}
average=
i=0;
do{
if(arr[i]<average)
sumNum++:
i++;
}while( );
System.OUt.println("average:"+average+",be-
lows average:"+sumNum);
}
}
参考答案:
答案解析:

Well—mannered children have usually been properly________up

Well—mannered children have usually been properly________up by their parents. A

查看答案

第55题答案是(  )

第55题答案是(  )

查看答案

阅读短文,回答题:Indians always shake (摇) their heads(Example:0 ____

阅读短文,回答题:Indians always shake (摇) their heads(Example:0 __________ ) they talk

查看答案

I__________go there this morning,so I stayed at home.

I__________go there this morning,so I stayed at home. A.didn’t need to B.didn’t

查看答案

50. Buying gifts from Presents for Purpose allows mothers t

50. Buying gifts from Presents for Purpose allows mothers toA.enjoy good sleep

查看答案