class Main { public static void main(String[] args) { int [] theList = new int[(int)(Math.random()*20)]; for(int i = 0; i < theList.length; i++) { theList[i] = (int)(Math.random()*100); } printList(theList); System.out.println("The sum of all elements = " + addListElements(theList)); System.out.println("The average of all elements = " + averageListElements(theList)); } // Traverse the list and print each element to the screen using System.out.println public static void printList(int[] list) { for(int i = 0; i < list.length; i++) { System.out.println(list[i]); } } // Traverse the list and find the sum of the elements in the list public static int addListElements(int[] list) { // TO DO } // Traverse the list and find the average of the elements in the list public static double averageListElements(int[] list) { // To DO } }