% LMex050304_4th
% Written by Eugene.Gallagher@umb.edu
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th ed.
% page 374
% Written 10/29/10
n=LMtheorem050302_4th(0.02,.05)
fprintf('The smallest acceptable sample size is %3.0f.\n',ceil(n))
% If p is 0.2
p=.2;n=LMtheorem050302_4th(0.02,.05,0.2)
fprintf('If p=%3.1f, the smallest acceptable sample size is %3.0f.\n',...
    p,ceil(n));