import CSLib.*; public class NumberList { public static int input (InputBox box, int [] list) { //Prompt the user for how many items in list box.setPrompt ("How many items in the list?"); int n = box.readInt(); //Get each number from the user, one at a time for (int k=0; k largestSoFar) { largestSoFar = list[k]; } } return largestSoFar; } public static int average (int [] list) { int sum = 0; for (int k=0; k largestSoFar) { largestSoFar = list[k]; } } return largestSoFar; } //The following function returns the location of the first //occurrence of "number" in "list". If the number is not in //the list, then it returns -1. public static int find (int number, int [] list) { //Cycle (loop?) through the list and check each //item to see if it's the same as "number" //If it is, then return index + 1 //If you cycle throught the entire list and don't //find it, then return -1 for (int k=0; k