Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
medium

Predicting Observation Alerts

Mark
< Prev
Next >

A community science app alerts users when a rare plant is observed nearby. The program maintains a state table of recent observations and user alert settings.

The program sends an alert if the observed species matches the user’s target species AND the observation distance is less than or equal to the user’s maximum radius.

User Target Species Max Radius (km) Observed Species Distance (km)
User A Orchid 5 Orchid 4
User B Fern 10 Fern 12
User C Orchid 2 Orchid 3
User D Moss 8 Fern 5

Based on the program’s logic and the state table, which user will receive an alert?

A

User B

B

User A

C

User D

D

User C

Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|