summaryrefslogtreecommitdiff
path: root/2135/CH1/EX1.7/Exa_1_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2135/CH1/EX1.7/Exa_1_7.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2135/CH1/EX1.7/Exa_1_7.sce')
-rwxr-xr-x2135/CH1/EX1.7/Exa_1_7.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2135/CH1/EX1.7/Exa_1_7.sce b/2135/CH1/EX1.7/Exa_1_7.sce
new file mode 100755
index 000000000..1c093edd9
--- /dev/null
+++ b/2135/CH1/EX1.7/Exa_1_7.sce
@@ -0,0 +1,22 @@
+//Exa 1.7
+clc;
+clear;
+close;
+format('v',7);
+
+//Given Data :
+rho=1000;//Kg/m^3
+d=0.3;//m
+C=1.5;//m/s
+h=4.5;//m
+FlowRate=2000;//Kg/min
+d2=15/100;//diameter of discharging line in meter
+t=15;//min
+r=3;//m
+WaterDischarge=rho*%pi/4*(d/2)^2*C*t*60;//Kg
+WaterReceived=FlowRate*t;//Kg
+NetWaterReceived=WaterReceived-WaterDischarge;//Kg
+disp(NetWaterReceived,"Mass change in tank in Kg : ");
+//m=rho*A*h
+h=NetWaterReceived/rho/(%pi/4*r^2);//m
+disp(h,"Water level in meter : ");