//Example 1.60 A man purchases a lottery ticket, in which he win clc; clear; disp(1-(0.0001+0.0004),"Probab. that man does not get any prize=",0.0004,"Probab. that ma wins second prize of Rs 4000=",0.0001,"Probab. that man wins first prize of Rs 10,000="); disp((0.0001*10000+0.0004*4000+0.9995*0),"The Mathematical Expectation is (0.0001*10000+0.0004*4000+0.9995*0)=");