/* Worksheet 7 Write a method (called RandomMatrix - public static) that takes in an integer `n` as a parameter and returns a short[][] symmetric matrix (of size `n` by `n`) where the off diagonals are uniformly distributed random numbers (short/integer) between lower and upper inclusive and the diagonal values are set to upper (i.e. elements (1,1), (2,2) etc...) if the input size (`n`) is less than or equal to zero then the method should return . if `lower` is greater than `upper`, then is also returned The following method prototype can be used as guidance for what is needed. public static short[][] RandomMatrix(int n,short upper,short lower){ } Worksheet 4 Write a method (called PrefixAverage - public static) that computes the prefix averages for an ArrayList of Float returned in an ArrayList of Float If the input ArrayList is empty or the ArrayList is then the method should return The following method prototype can be used as guidance for what is needed. public static ArrayList PrefixAverage(ArrayList)X{ } */
©