diff options
Diffstat (limited to '3755/CH2/EX2.18/Ex2_18.sce')
-rw-r--r-- | 3755/CH2/EX2.18/Ex2_18.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3755/CH2/EX2.18/Ex2_18.sce b/3755/CH2/EX2.18/Ex2_18.sce new file mode 100644 index 000000000..0bfb4030b --- /dev/null +++ b/3755/CH2/EX2.18/Ex2_18.sce @@ -0,0 +1,19 @@ +clear
+//
+//
+//
+
+//Variable declaration
+a=0.356*10^-9; //cube edge(m)
+M=12.01; //atomic weight
+N=6.023*10^26; //avagadro number
+
+//Calculations
+n=8/a^3; //number of atoms
+m=M/N; //mass(kg)
+rho=m*n; //density of diamond(kg/m^3)
+
+//Result"
+printf("\n number of atoms is %0.2f *10^29",n/10^29)
+printf("\n density of diamond is %0.1f kg/m^3",rho)
+printf("\n answer in the book is wrong")
|