7 A factory is supplied with grain at the beginning of each week. The weekly demand, \(X\) thousand tonnes, for grain from this factory is a continuous random variable having the probability density function given by
$$f ( x ) = \begin{cases} 2 ( 1 - x ) & 0 \leqslant x \leqslant 1
0 & \text { otherwise } \end{cases}$$
Find
- the mean value of \(X\),
- the variance of \(X\),
- the quantity of grain in tonnes that the factory should have in stock at the beginning of a week, in order to be \(98 \%\) certain that the demand in that week will be met.