% LMex100203_4th.m
% Number of students and variance
% Written by Eugene.Gallagher@umb.edu 11/21/10
n=50
p1 = 1-normcdf(90,80,5)
Ex1=n*p1
Varx1=n*p1*(1-p1)
p2 = normcdf(90,80,5)-normcdf(80,80,5)
Ex2=n*p2
Varx2=n*p2*(1-p2)
p3 = normcdf(80,80,5)-normcdf(70,80,5)
Ex3=n*p3
Varx3=n*p3*(1-p3)
p4 = normcdf(70,80,5)-normcdf(60,80,5)
Ex4=n*p4
Varx4=n*p4*(1-p4)
p5 = normcdf(60,80,5)
Ex5=n*p5
Varx5=n*p5*(1-p5)
