pdd= 0.09;
pda = 0.21;
pad = 0.21;
paa = 0.49;

disp(pdd, "Probability that the number of acceptable components is 0 is")
disp(pda+pad, "Probability that the number of acceptable components is 1 is")
disp(paa, "Probability that the number of acceptable components is 2 is")
disp(pdd, "Probability that I is 0  is")

disp(paa+pad+pda, "Probability that I is 1 is")
