/*
   Author:
   Description:

   Given an array of integers, prints:

    a. the smallest integer,
    b. the largest integer,
    c. the average (in double),
    d. the number that is closest to the average.

    Extra 1:
    prints the number of odd and even scores

    Extra 2:
    sort the array in ascending order [smiley faces in Camp Alpha]
*/


import java.io.*;
import java.util.*;

public class Minmax
{
    public static void main(String[] argv)
    {
	// just an example, your program should work with other numbers as well
	int[] scores = new int[] {5, 4, 6, 2, 1, 3}; 

	// find and print the average score (in double)
        // average = (double)total / scores.length;  // if total is an int
	// start instructions here




	// find and print the smallest score
	// start instructions here




	// find and print the largest score
	// start instructions here




	// find and print the score closest to the average
        // Math.abs(x) returns the absolute value of x
	// start instructions here




        // Extra 1: find and print the number of odd and even scores
	// start instructions here


	// Extra 2: sort/order the array in ascending order and print it
	// start instructions here






	// print the sorted array
	for (int pos = 0; pos < scores.length; pos++)
	    {
		System.out.println(pos);
	    }
    }
}
