Explanation:
We have proportion p = 50/100 = 0.50
Probability of success = 1-0.50 = 0.50
To conduct simulation, let's assume experiment is to be done 10 times
1. Use binomial parameters n, number = 10, p = 0.50. we then get the necessary size of population To carry out the sampling.
2. We get a random sample and get the size of people who support an against smoking with kids in the car.
3. We repeat this process after drawing sample and also get the number of those in support of ban.
4. After getting n, we find proportion.