summaryrefslogtreecommitdiff
path: root/3856/CH2/EX2.2/Ex2_2.sce
blob: 0161d0283733c89b43c1de946d60093b549c91dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//Calculate the mass of Oxygen

//Example 2.2

clc;

clear;

PT=758;    //Total partial pressure in torr

PH2O=19.8;   //Partial pressure of water in torr

PO2=(PT-PH2O)*0.00131579;    //Partial pressure of oxygen in torr

V=0.186;   //Volume of oxygen in Litre

M=32;   //Molar mass of oxygen in g/ mol

R=0.08206;  //Gas constant in L atm K^-1 mol^-1

T=295;   //Tempreture in kelvin

m=(PO2*V*M)/(R*T); //Mass of the Oxygen molecule in g

printf("Mass of Oxygen molecule = %.3f g",m);