summaryrefslogtreecommitdiff
path: root/3763/CH3/EX3.5/Ex3_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3763/CH3/EX3.5/Ex3_5.sce')
-rw-r--r--3763/CH3/EX3.5/Ex3_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3763/CH3/EX3.5/Ex3_5.sce b/3763/CH3/EX3.5/Ex3_5.sce
new file mode 100644
index 000000000..66335084d
--- /dev/null
+++ b/3763/CH3/EX3.5/Ex3_5.sce
@@ -0,0 +1,18 @@
+clear
+//
+//
+//
+
+//Variable declaration
+n=8 //number of atoms
+r=2.351*10**-10 //bond length(angstrom)
+A=28.09 //Atomic wt. of NaCl
+N=6.02*10**26 //Avagadro number
+
+//Calculation
+a=4*r/sqrt(3)
+rho=n*A/(N*a**3) //density(kg/m**3)
+
+//Result
+printf("\n density is %0.0f kg/m**3",rho)
+printf("\n answer varies due to rounding off errors")