Click to reopen instructions.

This is FRQ Question 4 from the 2022 exam. For the full instructions you will need to look at the PDF starting on page 14.

Questions of

“(a) Write the repopulate method, which assigns a newly generated random value to each element of grid.” (See the rest of the instructions for this question in the PDF starting on page 15.)

“(b) Write the countIncreasingCols method, which returns the number of columns in grid that are in increasing order.” (See the rest of the instructions for this question in the PDF starting on page 16.)