Imagine that the user provides a two dimensional list. Return a one dimensional list that is the
version of that original list where each row is the average of the original row. For example, if the user enters [[3, 1], [2, 4, 3], [], [1]] ,
your code would return the array [2, 3, 0, 1] . Both the inputs and the returned average values will always be integers (don't use double).
Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the
assessment. |