diff options
Diffstat (limited to '680/CH14/EX14.07')
-rwxr-xr-x | 680/CH14/EX14.07/14_07.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/680/CH14/EX14.07/14_07.sce b/680/CH14/EX14.07/14_07.sce new file mode 100755 index 000000000..73ccc9290 --- /dev/null +++ b/680/CH14/EX14.07/14_07.sce @@ -0,0 +1,15 @@ +//Problem 14.07:
+
+//initializing the variables:
+xCO2 = 0.0314;
+xO2 = 0.0584;
+P = 1; // in atm
+T = 250; // in deg F
+K = 1.015E-33;
+
+//calculation:
+yCO = xCO2*K/xO2^0.5
+yCOppm = yCO*1E6
+
+printf("\n\nResult\n\n")
+printf("\n the mole fraction of CO is %.2E and in ppm %.2E ppm",yCO, yCOppm)
\ No newline at end of file |