summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.10/2_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH2/EX2.10/2_10.sce')
-rw-r--r--1427/CH2/EX2.10/2_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1427/CH2/EX2.10/2_10.sce b/1427/CH2/EX2.10/2_10.sce
new file mode 100644
index 000000000..e7d1bb64f
--- /dev/null
+++ b/1427/CH2/EX2.10/2_10.sce
@@ -0,0 +1,14 @@
+//ques-2.10
+//Calculating percentage results of the analysis
+clc
+W=2.5;//Weight of sample (in g)
+w1=2.415;//Mass of residue after step-1 (in g)
+w2=1.528;//Mass of residue after step-2 (in g)
+w3=0.245;//Mass of ash (in g)
+m1=W-w1;//Mass of moisture in coal sample (in g)
+m2=w1-w2;//Mass of volatile matter (in g)
+p1=(m1/W)*100;//Percentage of moisture
+p2=(m2/W)*100;////Percentage of volatile matter
+p3=(w3/W)*100;//Percentage of ash
+C=100-(p1+p2+p3);//Percentage of fixed carbon
+printf("The percentage of moisture, volatile matter, ash and fixed carbon are %.1f, %.2f, %.1f and %.2f respectively.\n",p1,p2,p3,C);