Imagine you are a physician in 1854 London in the midst of a cholera outbreak. Your theory that contaminated water is the cause meets resistance from the medical establishment which holds that it is spread via the air.
Imagine further that you somehow have access to computing.
Write a combination of high-level design document and pseudocode to pinpoint the offending water pump given:
class Location:
double x();
double y();
double distanceTo(Location other)
class WaterPump:
Location location()
class CholeraDeath:
Location location()
WaterPump[] waterPumps = {...}
CholeraDeath[] deaths = {...}
|
|