#include <stdio.h>
#include <stdlib.h>


int sumArray (int array[], int length) {
  /* Write code to add up all of the
     elements of the array here*/
  return 0;
}


int findMax (int array[], int length) {
  /* Write code to find the largest int in
     the array here.  You may assume that
     the array contains at least one element*/
  return 0;
}



void printAllElements (int array[], int length) {
  /* Write code here to print out each element
     of the array.  The output should look like
     array[0] = 10
     array[1] = 15
     array[2] = 7
     etc
  */


}

void sortArray (int array[], int length) {
  /* this function should sort the array into increasing order
     (i.e. array[0] is the smallest, array[length -1] is 
     the largest.
     You may use any sorting algorithm that you want.
  */
  
}



int main(void) {
  int testArray[10] = {10, 15, 7, 9, 32, -4, 17, 8, 14, 0};
  int arrayLength = 10;

  printf("All of the elements of the array are:\n");
  printAllElements (testArray, arrayLength);

  printf("The elements of the array sum to %d\n", sumArray (testArray, arrayLength));
  
  printf("The largest element of the array is %d\n", findMax (testArray, arrayLength));

  sortArray (testArray, arrayLength);

  printf("Once sorted, the array contains:\n");
  printAllElements (testArray, arrayLength);

  return EXIT_SUCCESS;

}

