Login or Create an Account to view the mark scheme, comment, and add to a test
Given a 2D array called SCORES[row index][column index] of size 4x3 (rows x columns) where each row contains the game scores for a different computer game, construct an algorithm to output a new 1D array called TOTALS containing the total score of each computer game, that is, the sum of each row in SCORES (in row order).
[5]For example, consider the following 2D array:
![Question Image](https://res.cloudinary.com/n7-education/image/upload/v1648874615/user-content/261b3d92-2258-47f6-9232-e6ef72154f43/569b0d47-7538-4f4f-b11d-232489b11ebe.png)
The correctly functioning algorithm applied to the 2D array above yields the following 1D array:
![Question Image](https://res.cloudinary.com/n7-education/image/upload/v1648874658/user-content/261b3d92-2258-47f6-9232-e6ef72154f43/8e0cb9b3-00db-4575-8d14-6f9bc2d22a63.png)
Short Answer5 MarksPremium
46 Uses95 Views3 Likes