summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.10/2_10.sce
blob: e7d1bb64f47bd125fd2b50c9be5dfd7c0671a0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);