//File:	Driver.java
import iostuff.*;
import java.text.DecimalFormat;
public class Driver
{
	public static void main (String [] args)
	{
		int number [];
	
		System.out.print ("How many numbers? ");
		int n = Keyboard.readInt();
	
		number = new int [n];
		
		//inputs the numbers into the array
		for (int k=0; k<n; k++)
		{
			System.out.print("Next score please: ");
			number [k]= Keyboard.readInt();
		}

		//The following code displays the list to the screen
		for (int k=0; k<number.length; k++)
		{
			System.out.println (number[k]);
		}
		System.out.println();
				
		int avg = NumberList.average(number);
		int deviation = NumberList.sd (number, avg);
		
		DecimalFormat output = new DecimalFormat("0");
		System.out.println ("The average is: " + output.format(avg));
		System.out.println ("The standard deviation is: " + output.format(deviation));
	}
}