3. A machine is set to fill bags with flour such that the mean weight is 1010 grams.
To check that the machine is working properly, a random sample of 8 bags is selected. The weight of flour, in grams, in each bag is as follows.
$$\begin{array} { l l l l l l l l }
1010 & 1015 & 1005 & 1000 & 998 & 1008 & 1012 & 1007
\end{array}$$
Carry out a suitable test, at the \(5 \%\) significance level, to test whether or not the mean weight of flour in the bags is less than 1010 grams. (You may assume that the weight of flour delivered by the machine is normally distributed.)
(Total 8 marks)