private double average(int[] record){
		int sum=0;
		int i;
		double avg;
		int ct = 0;
		for (i=0;i<record.length;i++){
			sum = sum+record[i];
			System.out.printf("\n the %d th record is %d\n",i, record[i]);
			if (record[i]!=0)
				ct=i;
		}
		avg = sum/(ct+1);
		System.out.printf("\n the avg score is %f\n", avg);
		return avg;
	}