/**
*
* @author: Kevin
* @date :2011-07-18
* @function: to mark 0-10 point to Players,and the result is delete the highest
* and the lowest, at last reserve the average marks.
*/
package com.Homework;
import java.util.Scanner;
public class MarkSystem {
//main method
public static void main(String[] args) {
Voter voter= new Voter();
System.out.println("The last mark is :"+voter.lastMark());
System.out.println("The Worst Judger is No.:"+voter.getWorst());
}
}
//-------------------------------------------
//create class Player
class Voter
{
private float[] mark =null;
private int size = 8;
//constructor
public Voter()
{
Scanner s= new Scanner(System.in);
System.out.println("请输入参加评审人数(3人以上):");
size = s.nextInt();
mark= new float[size];
for (int i=0 ;i
- 【Java 数据结构及算法实战】系列 015:HJ1 字符串最后一个单词的长度
- Vue 3系列之04——Vue 3组件与Web组件的异同点
- 【Java 数据结构及算法实战】系列 013:Java队列07——双端队列Deque
- 【Java数据结构及算法实战】系列011:数组实现的优先级队列PriorityQueue
- 【Java数据结构及算法实战】系列010:Java队列04——链表实现的阻塞队列LinkedBlockingQueue
- HarmonyOS初探04——使用DevEco Studio时设置Gradle仓库镜像
- 【Java数据结构及算法实战】系列008:Java队列02——阻塞队列BlockingQueue
- 鸿蒙新作《鸿蒙HarmonyOS应用开发从入门到精通》拆箱
- HarmonyOS初探03——DevEco Studio创建应用问题ERROR Unable to tunnel through proxy. Proxy returns HTTP1.1 403
- 从Java 8升级到Java 11的注意事项
微信扫码登录
