summaryrefslogtreecommitdiff
path: root/2309/CH1/EX1.a.3/A_Ex1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2309/CH1/EX1.a.3/A_Ex1_3.sce')
-rwxr-xr-x2309/CH1/EX1.a.3/A_Ex1_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2309/CH1/EX1.a.3/A_Ex1_3.sce b/2309/CH1/EX1.a.3/A_Ex1_3.sce
new file mode 100755
index 000000000..a0ae9fbc6
--- /dev/null
+++ b/2309/CH1/EX1.a.3/A_Ex1_3.sce
@@ -0,0 +1,19 @@
+// Chapter 1 addl_Example 3
+//==============================================================================
+clc;
+clear;
+
+//input data
+
+v = 1440; // velocity of ultrasonics in sea water in m/s
+t = 0.33 // time taken b/w tx and rx in sec
+
+//Calculations
+
+d = v*t; // distance travelled by ultrasonics
+D = d/2; // depth of submerged submarine in m
+
+//output
+mprintf('Depth of submerged submarine = %3.1f m',D);
+
+//==============================================================================