diff options
Diffstat (limited to '2024/CH10/EX10.2')
-rwxr-xr-x | 2024/CH10/EX10.2/10_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2024/CH10/EX10.2/10_2.sce b/2024/CH10/EX10.2/10_2.sce new file mode 100755 index 000000000..4526a2c08 --- /dev/null +++ b/2024/CH10/EX10.2/10_2.sce @@ -0,0 +1,16 @@ +clc
+//Initialization of variables
+m1=5.28
+m2=1.28
+m3=23.52
+//calculations
+m=m1+m2+m3
+x1=m1/m
+x2=m2/m
+x3=m3/m
+C=12/44 *m1/ m
+O=(32/44 *m1 + m2)/m
+N=m3/m
+//results
+printf("From gravimetric analysis, co2 = %.1f percent , o2 = %.1f percent and n2 = %.1f percent",x1*100,x2*100,x3*100)
+printf("\n From ultimate analysis, co2 = %.2f percent , o2 = %.2f percent and n2 = %.2f percent",C*100,O*100,N*100)
|