AllRowsSum2

This problem checks your ability to use helper methods as described to solve a bigger problem involving 2D arrays.

Complete the method allRowsSum, which finds the sum of every row in the given two-dimensional array returns them all stored in a one-dimensional array.

You must use the given helper method rowSum shown below which takes in a one-dimensional array of integers and returns their sum.

An example is shown below

input:

1 2 4
3 1 5

result: { 7, 9}

input:

1 2 4
3 1 5
3 3 3

result: {7, 9, 9}

Type your solution        
Skills Practiced:
3.C
3.E
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.