summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.24/2_24.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH2/EX2.24/2_24.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1427/CH2/EX2.24/2_24.sce')
-rw-r--r--1427/CH2/EX2.24/2_24.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1427/CH2/EX2.24/2_24.sce b/1427/CH2/EX2.24/2_24.sce
new file mode 100644
index 000000000..eb391ffe8
--- /dev/null
+++ b/1427/CH2/EX2.24/2_24.sce
@@ -0,0 +1,18 @@
+//ques-2.24
+//Finding percentage composition of dry products of combustion
+clc
+C=900;//weight of carbon in fuel (in g)
+H=6;//weight of hydrogen in fuel (in g)
+p=90;//Percentage of air used for combustion
+W_Th=(C*(32/12)+H*(16/2))*(100/23);//theoretical weight of air used (in g)
+W=W_Th*(p/100);//actual weight of air (in g)
+x1=(W_Th-W)/5.797;//weight of C oxidised to CO (in g)
+x2=C-x1;//weight of C oxidised to CO2 (in g)
+w1=x1*(28/12);//weight of CO (in g)
+w2=x2*(44/12);//weight of CO2 (in g)
+w3=W*(77/100);//weight of N2 (in g)
+T=w1+w2+w3;//total weight (in g)
+p1=(w1/T)*100;//percentage of CO in dry products
+p2=(w2/T)*100;//percentage of CO2 in dry products
+p3=(w3/T)*100;//percentage of N2 in dry products
+printf("The percentages of carbon monoxide, carbon dioxide and nitrogen in dry product are %.2f, %.2f and %.2f respectively.",p1,p2,p3);