Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Sort All Arrays Write a method sortA11 ). sortA1 should take in an array of int

ID: 3703698 • Letter: S

Question

Sort All Arrays Write a method sortA11 ). sortA1 should take in an array of int arrays (an int [] []), which we will call myArrays, and sort each individual int [ within myArrays. 2 Matrix Sum Write a method called matrixSm ), which takes in two int UU representing matrices and returns a new int[] 1 containing the sum of the matrices. Re- member, you can only add two matrices together if they are the same size, so return null if they are different sizes 3 Extra Credit: 5 points Write a method that does matrix imultiplication 4 Grading rli' ri, are a total of 50 points. Fach prolle"? is ?0rth 20 points. All additional 10 points awarded for proper formatting et indentiation)

Explanation / Answer

2) Matrix Sum

public static int matrixSum(int[] a)

{

                int sum=0;

                for(int i=0;i< a.length; i++)

                                sum+=a[i];

              return sum;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote