Click to reopen instructions.

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

Questions of

“(a) Write the cleanData method, which modifies the temperatures instance variable by removing all values that are less than the lower parameter and all values that are greater than the upper parameter.” (See the rest of the instructions for this part in the PDF starting on page 12.)

“(b) Write the longestHeatWave method, which returns the length of the longest heat wave found in the temperatures instance variable.” (See the rest of the instructions for this part in the PDF starting on page 13.)