//File:	TestTable1.java
import iostuff.*;
public class TestTable1
{
	public static void main (String [] args)
	{
		int [] [] score;
		
		System.out.print ("How many students are enrolled? ");
		int students = Keyboard.readInt();
		
		System.out.print ("How many quizzes were given? ");
		int quizzes = Keyboard.readInt();
		
		score = new int [students] [quizzes];
		
		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();
		
		//IntTable.display (score);
		IntTable.display (score, students, quizzes);
	}
}