Click to reopen instructions.

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

Questions of

“(a) Write the constructor for the LightBoard class, which initializes lights so that each light is set to on with a 40% probability. ” (See the rest of the instructions for this question in the PDF starting on page 16.)

“(b) Write the method evaluateLight, which computes and returns the status of a light at a given row and column based on the following rules.” (See the rest of the instructions for this question in the PDF starting on page 17.)