summaryrefslogtreecommitdiff
path: root/1475/CH1/EX1.63/Example_1_63.sce
blob: 9270e2e63dfbd7136de7778981a55bcb9a6f6002 (plain)
1
2
3
4
5
6
7
// Example 1.63 A man has the choice of running either a hot snack stall
clc;
clear;
disp(0.6,"Probab. of cool summer",0.4,"Probab. of hot summer");
disp(5000,"Gain from Hot snack stall if weather is cool",1000, "Gain from Hot snack Stall if weather is hot ");
disp(1000,"Gain from Ice cream if weather is cool",6500, "Gain from Ice cream Stall if weather is hot ");
disp((0.4*6500)+(0.6*1000),"Expected gain from ice cream stall",(0.4*1000)+(0.6*5000),"Expected gain from hot snack stall");