summaryrefslogtreecommitdiff
path: root/3718/CH13/EX13.8
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3718/CH13/EX13.8
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 '3718/CH13/EX13.8')
-rw-r--r--3718/CH13/EX13.8/Ex13_8.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3718/CH13/EX13.8/Ex13_8.sce b/3718/CH13/EX13.8/Ex13_8.sce
new file mode 100644
index 000000000..47d526e4c
--- /dev/null
+++ b/3718/CH13/EX13.8/Ex13_8.sce
@@ -0,0 +1,30 @@
+//Chapter 13: Fuel and Combustions
+//Problem: 8
+clc;
+
+//Declaration of Variables
+C = 86 // %
+H = 4 // %
+N = 1.3 // %
+S = 3 // %
+O = 4 // %
+Ash = 1.7 // %
+wt = 500 // g
+
+// Solution
+wt_C = C / 100.0
+wt_S = S / 100.0
+wt_H = H / 100.0
+wt_O = O / 100.0
+
+mprintf("Nitrogen and ash are incombustible, so they do not require oxygen\n")
+
+wt_O_C = 32 / 12.0 * wt_C
+wt_O_S = 32 / 32.0 * wt_S
+wt_O_H = 32 / 4.0 * wt_H
+
+totw = wt_O_H + wt_O_S + wt_O_C
+wt_O_n = totw - wt_O
+wt_a = (100.0 / 23.0 * wt_O_n) * 500 / 1000.0
+
+mprintf(" Minimum Wt. of air required by 500g of fuel %.2f kg",wt_a)