//File:	TestTable0.java
import iostuff.*;
public class TestTable0
{
	public static void main (String [] args)
	{
		int [] [] score = new int [30] [15];
		
		System.out.print ("How many students are enrolled? ");
		int students = Keyboard.readInt();
		
		System.out.print ("How many quizzes were given? ");
		int quizzes = Keyboard.readInt();
		
		for (int student = 0; student < students; student++)
		{
			System.out.println ("Enter scores for student " +  (student+1));
			for (int quiz=0; quiz < quizzes; quiz++)
			{
				score [student] [quiz] = Keyboard.readInt();
			}
		}
		
		
		//The following sets up the headers for the table
		System.out.println ("The gradebook is as follows: ");
		System.out.print ("Quiz\t");
		for (int k=1; k<=quizzes; k++)
		{
			System.out.print (k + "\t");
		}
		System.out.println();
		System.out.println();
		
		for (int s=0; s<students; s++)
		{
			System.out.print (s+1);
			for (int q=0; q<quizzes; q++)
			{
				System.out.print ("\t" + score [s] [q]);
			}
			System.out.println();
		}
	}
}