summaryrefslogtreecommitdiff
path: root/1553/CH16/EX16.6/16Ex6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH16/EX16.6/16Ex6.sce')
-rw-r--r--1553/CH16/EX16.6/16Ex6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1553/CH16/EX16.6/16Ex6.sce b/1553/CH16/EX16.6/16Ex6.sce
new file mode 100644
index 000000000..ab8fae3f1
--- /dev/null
+++ b/1553/CH16/EX16.6/16Ex6.sce
@@ -0,0 +1,14 @@
+//chapter 16 Ex 6
+clc;
+clear;
+close;
+//let pipes be A B and leak be C
+t1=14; t2=16; //time taken by A and B to fill cistern individually
+t3=32/60;
+A1hour=1/t1; B1hour=1/t2; //part filled by A and B in 1 hour each
+AB1hour=A1hour+B1hour;
+
+ABC1hour=1/(1/AB1hour+t3); //part filled by all 3 pipes in 1 hour
+C1hour=AB1hour-ABC1hour; //part emptied by C in 1 hour
+
+mprintf("Thus the leak empties the cistern in %.0f hours",1/C1hour);