(e) The MATLAB code and result is as below:
u = unifrnd(0,1,[5000,1]);x = 2./(1-u);mean(x)ans =14.4154