Well, one thing at a time:
System.out.println ("StudentID Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Total Grade");
System.out.print (" ");
Why are you printing two spaces - without a newline after the header? It will simply add these two spaces to the next line - like it does.
As far as the other issues - I'd strongly encourage you to add some System.out.prinln() statements here and there to understand what is going on.
Felissa