您当前的位置: 首页 >  _waylau Java

java 编程 之【评分系统】可以计算平均成绩和最烂评委

_waylau 发布时间:2011-07-19 16:54:00 ,浏览量:7

/**
*
* @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

关注
打赏
查看更多评论

_waylau

暂无认证

  • 7浏览

    0关注

    244博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录