summaryrefslogtreecommitdiff
path: root/291/CH3/EX3.5d/eg3_5d.sce
diff options
context:
space:
mode:
Diffstat (limited to '291/CH3/EX3.5d/eg3_5d.sce')
-rwxr-xr-x291/CH3/EX3.5d/eg3_5d.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/291/CH3/EX3.5d/eg3_5d.sce b/291/CH3/EX3.5d/eg3_5d.sce
new file mode 100755
index 000000000..fc6b7a990
--- /dev/null
+++ b/291/CH3/EX3.5d/eg3_5d.sce
@@ -0,0 +1,7 @@
+men = 6;
+women = 9;
+reqd_size =5;
+total =factorial(men+women)/(factorial(reqd_size)*factorial(men+women-reqd_size));
+given_committee = factorial(men)*factorial(women)/(factorial(3)*factorial(2)*factorial(men-3)*factorial(women-2));
+prob = given_committee/total;
+disp(prob, "Probability that the committee consists of 3 men and 2 women is") \ No newline at end of file