summaryrefslogtreecommitdiff
path: root/2024/CH10/EX10.10/10_10.sce
blob: c1cd78ba8669256e9572978a1bf3544613050343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
//Initialization of variables
ps=0.5069 //psia
p=20 //psia
m1=0.01
m2=1
M1=18
M2=29
//calculations
xw= (m1/M1)/(m1/M1+m2/M2)
pw=xw*p
//results
printf("partial pressure of water vapor = %.3f psia",pw)