Solve the following problem:
Q: Write a program to compute binomial probabilities and compare the results with the Poisson approximation for the following cases:
a) P(X = 2) when n = 7, p = 0.1
b) P(X = 8) when n = 10, p = 0.95
c) P(X = 0) when n = 11, p = 0.1
d) P(X = 4) when n = 9, p = 0.2