Let $E$ be uniformly distributed between $0$ and $10$. The cumulative distribution function of $\max(E-6,0)$ is: $$F(x) = \left\{ \begin{array}{ll} 0 & \mbox{if } x < 0 \\ \frac{6+x}{10} & \mbox{if } 0 \leq x \leq 4 \\ 1 & \mbox{if } x > 4 \end{array} \right. $$
How does one arrive at this result?