Click to reopen instructions.

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

Questions of

“(a) Write the ReviewAnalysis method getAverageRating, which returns the average rating (arithmetic mean) of all elements of allReviews.” (See the rest of the instructions for this question in the PDF starting on page 12.)

“(b) Write the ReviewAnalysis method collectComments, which collects and formats only comments that contain an exclamation point.” (See the rest of the instructions for this question in the PDF starting on page 13.)