Link to assignment that I need help with is below: http://web.cse.ohio-state.edu/cse2123/currentsem/closedlabs/ClosedLab01.html Solution import java.util.*; import java.io.*; public class ClosedLab01a { // Method to find index of max element in list private static int findMin(ArrayList list) { int index = 0; double minValue = list.get(0); for (int i = 1; i < list.size(); i++) { if(list.get(i) < minValue) { minValue = list.get(i); index = i; } } return index; } // Method to find index of max element in list private static int findMax(ArrayList list) { int index = 0; double maxValue = list.get(0); for (int i = 1; i < list.size(); i++) { if(list.get(i) > maxValue) { maxValue = list.get(i); index = i; } } return index; } // Method to compute average of a list of values. private static double computeAverage(ArrayList list) { double average = 0; for (double value: list) { average += value; } average = average/list.size(); return average; } public static void main (String[] args) throws IOException { Scanner keyboard = new Scanner(System.in); System.out.print(\"Enter a filename: \"); String fname = keyboard.nextLine(); try { Scanner infile = new Scanner(new File(fname)); ArrayList purchases = new ArrayList(); while(infile.hasNext()) { double purch=infile.nextDouble(); purchases.add(purch); } infile.close(); double average = computeAverage(purchases); System.out.println(\"The average purchase value was \" + average); int maxIndex = findMax(purchases); System.out.println(\"The maximum purchase value is at index (\" + maxIndex + \") and value is \" + purchases.get(maxIndex)); int minIndex = findMin(purchases); System.out.println(\"The minimum purchase value is at index (\" + minIndex + \") and value is \" + purchases.get(minIndex)); } catch (IOException e) { System.out.println(\"Error reading file \"+fname+\" \"+e); } } }.