//File:	TestNumberList.java
import CSLib.*;
public class TestNumberList
{
	public static void main (String [] args)
	{
		/*
		int [] number = {10, 20, 30};	//Reserves exactly 3 memory locations
                                                //AND assigns: number[0]=10, number[1]=20, number[2]=30
		*/
		
		int [] number = new int [100];
		InputBox in = new InputBox();
		int n = NumberList.input (in, number);		
		
		OutputBox out = new OutputBox("Testing NumberList Class");
		out.setSize(350, 150);
		
		out.println ("The list of numbers is: "  );
		NumberList.display(out, number, n);
		
		int small = NumberList.smallest (number, n);
		out.println ("The smallest number in the list is:  "
				+ small);
				
		out.println ("It is located in position " 
				+ NumberList.find (small, number));
				
		out.println ("The largest number in the list is: "
				+ NumberList.largest (number, n));
							
		out.println ("The average of the list of numbers is: "
				+ NumberList.average (number, n));
	}
}
