Final answer:
To complete the percentages in the resamples function, use a loop and the one resampled percentage function to generate 2500 bootstrapped estimates of the percentage of voters who will vote for Brown Sugar Cafe.
Step-by-step explanation:
To complete the percentages in the resamples function, you need to use the one resampled percentage function mentioned above. This function should return an array of 2500 bootstrapped estimates of the percentage of voters who will vote for Brown Sugar Cafe.
Here is an example:
- Define the resamples function as a loop that runs 2500 times.
- Inside the loop, call the one resampled percentage function to get a bootstrapped estimate of the percentage.
- Store each estimate in an array.
- After the loop, return the array of estimates.
By using the resamples function, you will get 2500 different bootstrapped estimates of the percentage of voters who will vote for Brown Sugar Cafe.