summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.17
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.17
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.17')
-rw-r--r--1427/CH2/EX2.17/2_17.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1427/CH2/EX2.17/2_17.sce b/1427/CH2/EX2.17/2_17.sce
new file mode 100644
index 000000000..23896674b
--- /dev/null
+++ b/1427/CH2/EX2.17/2_17.sce
@@ -0,0 +1,19 @@
+//ques-2.17
+//Calculating quantities of dry products of combustion
+clc
+C=662;//Mass of carbon in 1kg of coal sample (in g)
+H=42;//Mass of hydrogen in 1kg of coal sample (in g)
+O=61;//Mass of oxygen in 1kg of coal sample (in g)
+N=14;//Mass of nitrogen in 1kg of coal sample (in g)
+S=29;//Mass of sulphur in 1kg of coal sample (in g)
+moist=97;//Mass of moisture in 1kg of coal sample (in g)
+ash=95;//Mass of ash in 1kg of coal sample (in g)
+e=25;//Percentageof excess air used
+min_O=C*(32/12)+H*(16/2)+S-O;//Minimum weight of oxygen required (in g)
+min_air=min_O*(100/23);//Minimum weight of air required for complete combustion (in g)
+m_C=C*(44/12);//Weight of carbon dioxide (with excess air) (in g)
+m_S=S*(64/32);//Weight of sulphur dioxide (with excess air) (in g)
+m_N=N+min_air*(1+e/100)*(77/100);//Weight of nitrogen (with excess air) (in g)
+m_O=min_O*(e/100);//Weight of excess oxygen (in g)
+Total=m_C+m_S+m_N+m_O;//Total weight of dry products (in g)
+printf("The total weight of dry products is %.3f kg.",Total/1000);