summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.2/2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH2/EX2.2/2_2.sce')
-rw-r--r--1427/CH2/EX2.2/2_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1427/CH2/EX2.2/2_2.sce b/1427/CH2/EX2.2/2_2.sce
new file mode 100644
index 000000000..bf8d1cba7
--- /dev/null
+++ b/1427/CH2/EX2.2/2_2.sce
@@ -0,0 +1,13 @@
+//ques-2.2
+//Calculating percentage of hydrogen and Higher calorific value
+clc
+C=90;//Percentage of Carbon in coal
+O=3;//Percentage of Oxygen in coal
+S=0.5;//Percentage of Sulphur in coal
+NCV=8490.5;//Net calorific value (in kcal/kg)
+//HCV=NCV+0.09*H*587;
+//HCV=(8080*C+34500*(H-O/8)+2240*S)/100;
+//Solving for H
+H=1335.7/292.2;//Percentage of hydrogen
+HCV=NCV+0.09*H*587;//Higher calorific value
+printf("The pecentage of Hydrogen is %.3f and Higher calorific value is %.1f kcal/kg.\n",H,HCV);