We have:
Sample proportion, p = 80% = 0.8
Sample size, n = 1001 × 0.8 = 800.8
Population size, N = 1001
Confidence interval 95% ⇒ the z-value for this is 1.96
We'd need to work out the standard deviation (σ) and the error margin (E) in order to work out the confidence interval
σ =

Substituting the value we have
σ =

σ =

σ = 0.006325
Calculating the margin of error (E)
Standard Deviation × Critical Value = 0.006325 × 1.96 = 0.012397
So, the sample 95% interval is given as 80% ⁺/₋ 0.012 which means between 0.788 and 0.812