Compute the cdf :
F(t)=0 if t<1
The median is the value m such that . Shouldn't be too difficult...
The variance is
Note : the fact that it is piecewise is not that important. Here, it just tells you the range of the distribution.