问答题
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. print in (fenshu+" "); sumfenshu+=fenshu; i++; } System.out.println(); if(_________) System. out. println ( "团队通过") else System. out.println ("团队测试不通过"); } }
【参考答案】
import java.math.*; Math.random()*100 (i==10)&&((sumfenshu/1......
(↓↓↓ 点击下方‘点击查看答案’看完整答案、解析 ↓↓↓)
点击查看答案&解析
相关考题
-
问答题
Self-introduction (This task will take about 2 minutes.) Interlocutor: Good morning (afternoon/evening). Could I have your mark sheets please Thank you (Hand over the mark sheets to the Assessor) My name is... and this is my colleague... He/She is not going to ask you any questions, but he/she is just going to be listening to us. So, your name is... and... Thank you. First of all we’d like to know something about you, so I’m going to ask you some questions about yourselves. (Begin with Candidate A, then move on to Candidate B) Now... (Say the name of the Candidate A and ask questions.) -
问答题
Presentation (This part will take about 8 minutes.) Now, in this part of the test I’m going to give each of you a list of three different topics. I’d like you to select one of the topics and give a short presentation of about 2 minutes. When... (say the name of candidate A) has finished talking, I’d like you... (say the name of candidate B), to ask him/her one or two questions. You may make notes while you are preparing and take notes while the other person is talking. All right Here are your topics. (Hand over the topic card, A and B, some blank paper and a pencil to each candidate.) Now you have 2 minutes to prepare. (The candidates are given 2 minutes.) Topic Card Aa. LifeWhat does a "high quality of life" meanto youb. TechonologyDoes techonology threaten our quality oflifec. PollutionDo you think that man is the main causeof pollutionBa. EducationShould educators provide students with aset of ideas or with job preparationb. HealthIs wine a good thing or a had thing forhealthc. FoodDo you like the chinese cuisine or theWesternAll right. Now... (say the name of candidate A), would you begin by telling us which topic you have chosen and then give your presentation please -
问答题
Collaboration (This part will take about 5 minutes.) Discussion Topic: Water shortage Now, (say the names of candidate A and candidate B) here is a list of causes for water shortage (Hand out the list to the candidates and let them read it through) what do you think the main causes of water shortage I’d like each of you to choose three from the list and tell each other why, if you had different opinions you may argue and you may also add your own ideas that are not listed here. You just talk to each other and I won’t join you. You have 5 minutes. All right. Would you begin (The interlocutor may sit back and intervene only when necessary.) Causes for Water Shortage: ·Low price of water ·Growth of population ·Waste of water ·Polluted rivers ·Climate ·Lack of advanced technology Candidate A=A Candidate B=B