Answer:
(a) n≥4 (b) n≥7
Step-by-step explanation:
The confidence interval is defined as

So the difference between upper limit (UL) and lower limit (LL) must be

We can clear the number of observations rearranging the last equation

(a) UL-LL must be less than 30. For a 95% CI, z=1.96.

The sample needs to be at least 4 observations.
(b) UL-LL must be less than 30. For a 99% CI, z=2.576.

The sample needs to be at least 7 observations.