CSC 16 Lab 1 This Assignment is due next Tuesday For our first lab session you will familiarize yourself with your account, and write some basic programs for the purpose of review. Create a folder "csc16" in your home directory, and use the filename "lab1.java". This is required, since I will be looking for your assignments there. 1. Rewrite the multiplication table method I did in class so that the output looks like the following: 1 2 3 4 5 6 7 8 9 2 4 6 8 10 12 14 16 18 3 9 12 15 18 21 24 27 4 16 20 24 28 32 36 5 25 30 35 40 45 6 36 42 48 54 7 49 56 63 8 64 72 9 81 2. Write a function: public static double smallest(double[] A) that returns the smallest double found in A. Be careful. There could be positive and negative numbers, so the default value should not be 0, it should be A[0]. 2b. Write a function public static int smallestind(double[] A) that returns the INDEX of the smallest number in A. This function would be more useful than the one above. 3. Write a function public static boolean allpositive(double[] A) that returns true if all numbers in A are greater than 0. Hint: the default result should be true. 4. Write a function public static boolean sorted(double[] A) that returns true if the numbers of A are in increasing order. Be careful as to how your loop ends.