summaryrefslogtreecommitdiff
path: root/2024/CH11/EX11.10/11_10.sce
blob: d6bd7b346a3cc73f95a0dedd30f7796759c9d80e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
//Initialization of variables
N2=79.7
M=29
ba=2.12
x4=0.3
x5=3.7
x6=14.7
//calculations
O2=N2/3.76
c=14.7
b= x4*4 + x5*2 + x6*2
a=b/ba
AF=(O2+N2)*M/(a*12 + b)
//results
printf("Air fuel ratio = %.1f lbm air/lbm fuel",AF)