summaryrefslogtreecommitdiff
path: root/3720/CH3/EX3.10/Ex3_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3720/CH3/EX3.10/Ex3_10.sce')
-rw-r--r--3720/CH3/EX3.10/Ex3_10.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3720/CH3/EX3.10/Ex3_10.sce b/3720/CH3/EX3.10/Ex3_10.sce
new file mode 100644
index 000000000..b4d2bc524
--- /dev/null
+++ b/3720/CH3/EX3.10/Ex3_10.sce
@@ -0,0 +1,11 @@
+//Example 3_10
+clc;clear;funcprot(0);
+//Given values
+h_sub=0.1;// m
+rho_w=1000;// Density of water in kg/m^3
+R=0.005;// m
+
+// Calculation
+V_sub=%pi*R^2*h_sub;// m^3
+m=rho_w*V_sub;// kg
+printf('The mass of lead,m=%0.5f kg\n',m);