Answer:
(A) The minimum sample size required achieve the margin of error of 0.04 is 601.
(B) The minimum sample size required achieve a margin of error of 0.02 is 2401.
Step-by-step explanation:
Let us assume that the percentage of support for the candidate, among voters in her district, is 50%.
(A)
The margin of error, <em>MOE</em> = 0.04.
The formula for margin of error is:

The critical value of <em>z</em> for 95% confidence interval is: 
Compute the minimum sample size required as follows:

Thus, the minimum sample size required achieve the margin of error of 0.04 is 601.
(B)
The margin of error, <em>MOE</em> = 0.02.
The formula for margin of error is:

The critical value of <em>z</em> for 95% confidence interval is: 
Compute the minimum sample size required as follows:

Thus, the minimum sample size required achieve a margin of error of 0.02 is 2401.