题目内容
(请给出正确答案)
[主观题]
10位同学参加某团队测试,要求每位同学都必须及格,同时团队平均分不少于80分,整个团队才能够通过。
每位同学的成绩可以通过随机数产生(0~100)。请在程序的每条横线处填写一条语句,使程序的功能完整。
注意;请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
源程序文件代码清单如下:
______;
public class While
{
public static void main(String args[])
{
int fenshu=60;
int sumfenshu=0;
int i=1;
while((fenshu>=60)&&(i<=10))
{
fenshu=(int)(______);
System.out.println(fenshu+" ");
sumfenshu+=fenshu;
i++;
}
System.out.println();
if(______)
System.out.println("团队通过");
else
System.out.println("团队测试不通过");
}
}
如搜索结果不匹配,请 联系老师 获取答案