summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.4/Chapter5_Example4.sce
blob: 7119f2a0248a23acf3222b8b2dc5598636ad28a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
clear 
//Input data 
v=1;//The volume of oxygen at N.T.P in cm^3 
d=13.6;//The density of mercury in g/cm^3 
r=4.62*10^4;//The R.M.S velocity of oxygen molecules at 0 degree centigrade in cm/s 
m=52.8*10^-24;//Mass of one molecule of oxygen in g 
g=980;//Gravitational constant in gms/s^2 

//Calculations 
P=76*g*d;//The pressure in dynes/cm^2 
n=((3*P)/(m*r^2));//Number of molecules in 1 cc of oxygen at N.T.P 

//Output 
printf('The number of molecules in 1 c.c of oxygen at N.T.P is n = %3.4g ',n)