summaryrefslogtreecommitdiff
path: root/2024/CH11/EX11.8/11_8.sce
blob: 1f3868afa4c289bf535bfb294fb3d01def88807a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//Initialization of variables
p=14.7 //psia
ps=0.363 //psia
n2=7.52 //moles
n1=1 //moles
//calculations
x= (n1+n2)*ps/p /(1-ps/p)
n=n1+n2+x
y1=n1/n
y2=n1/(n1+n2)
//results
printf("Percentage of co2 on a wet basis = %.1f percent",y1*100)
printf("\n percentage of co2 on a dry basis = %.2f percent",y2*100)