/*
//---------------------------------------------------------------------
Name your methods as they appear in the println's in the main method.
The return types should all be integers except for the getAverage() and getMedian() methods.
Make it so the average and median is rounded to TWO decimal places. You can do this 
with some simple arithmetic and casting. You will have to think a little!
Note: The methods inside this class must be static.
//---------------------------------------------------------------------
*/

/**
 * Write a description of class Lab1App here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Lab1App
{
    // instance variable
    private static int[] listOfNumbers = {4, 2, 9, 1, 7, 6, 22, 11, 54, 32, 19, 27, 32};
    
    /**
     * Application program.
     * Will print out a statistical analysis.
     */
    public static void main(String[] args)
    {        
		// for lab 2 
		//System.out.print("The list: ");
                //Utility.printList(listOfNumbers);
                //System.out.println("");
		
        System.out.println("The minimum value in the list is: " + getMinimum());
        System.out.println("The maximum value in the list is: " + getMaximum());
        System.out.println("The average value in the list is: " + getAverage());
        System.out.println("The mode of the list is: " + getMode());
        System.out.println("The median in the list is: " + getMedian());                                

		// uncomment what is below for lab 2!
		/* FOR LAB 2
		System.out.print("In ascending order: ");
                Utility.printList(Utility.sort(listOfNumbers, "ASC"));
                System.out.println("");
		System.out.print("In descending order: ");
                Utility.printList(Utility.sort(listOfNumbers, "DESC"));
                System.out.println("");
		*/ 

    }
    
    // YOU ARE TO DEFINE THE statistical METHODS BELOW
    // :)
}