Predicting Observation Alerts
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
Question Leaderboard
Not enough data yet to show leaderboard.
