Domain and range from the graph of a piecewise function