thanks Marilyn
i have done something similar but its not working,i'm try tocount and then catgorize grades instead of cows would i be better off with arrays u think.. can you see where i went wrong?
public class GradeCount
{
public static void main (
String[] args)
int grade, count = 0, sum = 0;
System.out.println ("Enter the first Grade");
grade = Keyboard.readInt();
while( grade = 90 && < 100)
{
count++;
sum += grade;
System.out.println (" Number of A's = "+ count);
}
while( grade = 80 && < 89)
{
count++;
sum += grade;
System.out.println (" Number of B's = "+ count);
}
while( grade = 70 && < 79)
{
count++;
sum += grade;
System.out.println (" Number of C's = "+ count);
}
while( grade = 60 && < 69)
{
count++;
sum += grade;
System.out.println (" Number of D's = "+ count);
}
while( grade = 0 && < 59)
{
count++;
sum += grade;
System.out.println (" Number of F's = "+ count);
}