I wanna add:
system print of the average of all the scores that were entered.
and a system print of the maximum of all the scores that were entered.

Can anyone help me and add that in there? ive been trying for hours, even bought a java book. couldnt figure it out haha. And if they could explain what you did thanks!


public static void main(String[] args) {
        // TODO code application logic here
     String fName = null;
     int count = 0; 
 
 
 
 
Scanner scan = new Scanner(System.in);
 
while ( fName != "stop" ) {
System.out.println("Enter the user's score from 0 to 100 ");
System.out.println("....or you can always enter STOP to quit the app.");
System.out.println("So far you have entered only " + count + " grades.");
System.out.print("\nINPUT: ");
int score = scan.nextInt();
 
count++;
 
if (score >= 101) {
System.out.println("Too high!");
 
else
 
 
switch(score / 10)
  {
  case 10:
  case 9: System.out.println("Letter grade is A\n");
  break;
  case 8: System.out.println("Letter grade is B\n");
  break;
  case 7: System.out.println("Letter grade is C\n");
  break;
  case 6: System.out.println("Letter grade is D\n");
  break;
  default: System.out.println("Letter grade is F\n");
}
    }
  }
}