Hello Ladies and Gentlemen,

I'm having a couple of problems with my program and any help or suggestions would be greatly appreciated. I cant seem to get it to calculated grades or the
percentage.If anyone can shine some light on what I'm doing wrong that would be great.

import java.util.Scanner;

int testscore = 0;
int[] grades = new int[10];//Created an array
int[] studentId = new int[10];//Created an Array

Scanner keyboard = new Scanner(System.in);

System.out.println("How many question were on the test?");

question = keyboard.nextInt();

while(question < MIN)
{
System.out.println("You can not enter a number less then 1 "
+"for the amount of questions");
System.out.println("Please reenter the the amount of questions "
+"on the test");
question = keyboard.nextInt();
}


for(int counter=0,s = 1;counter < 3;counter++,s++)
{

System.out.println("Please enter the student's I.D number? "+"Student# "+ s);

studentId[counter] = keyboard.nextInt();

System.out.println("Please enter the test score for Student# "+ s);

testscore = keyboard.nextInt();

while(testscore < MIN || testscore > question)
{
if(testscore < MIN)
{
System.out.println("You can not enter a score of 0 "
+"Please reenter the student's test score");

testscore = keyboard.nextInt();
}
if(testscore > question)
{
System.out.println("You can not enter a score"+
" greater than the amount of questions");
testscore = keyboard.nextInt();
}
}

grades[counter] = testscore;
}


System.out.println("TEST REPORT - Total Questions on Exam : "+question);
System.out.println("-----------------------------------------------------");
System.out.println("Student ID\t\t#Correct\t\t%Correct\t\tGrade");
System.out.println("-----------\t\t----------\t\t----------\t\t-----");
for(int counter=0;counter < studentId.length;counter++)
{
System.out.println(studentId[counter] + "\t\t\t"+ grades[counter] + "\t\t\t"+ ((grades[counter]/question)*100) +"\t\t\t"+ getLetterGrade(grades[counter]));
}

System.out.println("\n\nAVERAGE SCORE: " + calcAerageForAll(grades) );
System.out.println("AVERAGE LETTER GRADE: " );



}

public static char getLetterGrade(double test)
{
char result;


if (test >= 90.0 && test <= 100.0)
{
result = 'A';

}
else if(test >= 80.0 && test <= 89.0)
{
result = 'B';


}
else if(test >= 70.0 && test <= 79.0)
{
result = 'C';

}
else if(test >= 60.0 && test <= 69.0)
{
result = 'D';

}
else
{
result = 'F';
}
return result;
}

public static double calcAverage(int[] testscore,int question)
{
int total = 0;
double testaverage=0;

for(int counter=0;counter < testscore.length;counter++)
{


total+= testscore[counter];



}
testaverage=(double)total/(double)question*testscore.length;
testaverage*=100;
return testaverage;

}

public static double calcAerageForAll(int [] testscore)
{
int total = 0;
double testaverage = 0;

for(int counter=0;counter < testscore.length;counter++)
{
total+= testscore[counter];
}

testaverage=(double)total/(double)10*testscore.length;
testaverage+=100;

return testaverage;
}

public static double calPercent(int value,int total)
{
double percent= 0;

percent = (value/total)*100;

return percent;
}
}