Name (print clearly): _________________________________________________


Student ID (print clearly; 1 digit per underline): _____ _____ _____ _____ _____ _____

CSE 231s Quiz 15: Epidemiology

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 the following data:

class Location:
    double getDistanceTo(Location other)

class WaterPump:
    Location getLocation()

class CholeraDeath:
    Location getLocation()

WaterPump[] waterPumps = {...}
CholeraDeath[] deaths = {...}

John Snow Cholera Map