summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.23/Ex2_23.sce
blob: f609e6bbd95134c39918fbcef524219dbfa1a118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//
//
//

//Variable declaration
r=1.278*10^-8;        //atomic radius(cm)
M=63.54;         //molecular weight(g/mol)
N=6.02*10^23;      //avagadro number
n=4;     //number of atoms

//Calculations
a=4*r/sqrt(2);       //lattice constant(cm)
rho=n*M*10^3/(N*a^3);       //density(kg/m^3)

//Result
printf("\n density of copper is %0.0f kg/m^3",rho)
printf("\n answer in the book is wrong")