diff options
Diffstat (limited to '3831/CH1/EX1.5/Ex1_5.sce')
-rw-r--r-- | 3831/CH1/EX1.5/Ex1_5.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3831/CH1/EX1.5/Ex1_5.sce b/3831/CH1/EX1.5/Ex1_5.sce new file mode 100644 index 000000000..817f351d9 --- /dev/null +++ b/3831/CH1/EX1.5/Ex1_5.sce @@ -0,0 +1,14 @@ +// Example 1_5
+clc;funcprot(0);
+// Given data
+D=0.07;// The diameter in m
+R=D/2;// The radius in m
+h=0.15;// The height in m
+L=(3/4)*h;// m
+rho=1000;// The density in kg/m^3
+M=18;// kg/kg mole
+
+// Calculation
+m=(%pi*R^2*L)*rho;// The mass of water in the glass in kg
+n=m/M;// The number of moles in kg moles
+printf("\nThe number of kilogram moles of water in the glass,n=%0.3f kgmole",n);
|