HI! i need to create a program that lets user input as many numeric grades as they like.... in return they get the letter grade for each and the their grade average, minimum, and maximum.

this is all i have so far......

public static void main (String [] args){

if ( 92 <= grade <= 95)
if ( 90 <= grade <= 91)
if ( 86 <= grade <= 89)
if ( 82 <= grade <= 85)
if ( 80 <= grade <= 81)
if ( 76 <= grade <= 79)
if ( 72 <= grade <= 75)
if ( 70 <= grade <= 71)
if ( 66 <= grade <= 69)
if ( 62 <= grade <= 65)
if ( 60 <= grade <= 61)
if ( -1 < grade <= 59)
}
}

so which part are you having trouble with?

what i have so far wont complie and i dont know how to loop it so that it asks for multiple grades

will u plz make it more clear......
for eg how many subject do a student have or u want d average,max. etc of a particular student or of whole d class.........

what i have so far wont complie and i dont know how to loop it so that it asks for multiple grades

i think it will work..
System.out.print("\nenter d no of max grades?");
int n=in.nextInt();
for(i=0;i<n;i++)
{
//body of ur program...
}

will u plz make it more clear......
for eg how many subject do a student have or u want d average,max. etc of a particular student or of whole d class.........

i need the average, max, and min (in letter grades) of the student's list of grades (how ever many grades they have)

[code=JAVA] // paste code here

[/code]

``````import TerminalIO.KeyboardReader;

public static void main (String [] args){

if ( 92 <= grade <= 95)
if ( 90 <= grade <= 91)
if ( 86 <= grade <= 89)
if ( 82 <= grade <= 85)
if ( 80 <= grade <= 81)
if ( 76 <= grade <= 79)
if ( 72 <= grade <= 75)
if ( 70 <= grade <= 71)
if ( 66 <= grade <= 69)
if ( 62 <= grade <= 65)