A/D Converter Simulator
 
        Here is the circuit.

Here is how the A/D Simulator works. Try the simulator, using different voltages within the allowable range, i.e. 0-5v.  Then check what happens when the voltage is out of range.