summaryrefslogtreecommitdiff
path: root/2510/CH5/EX5.7/Ex5_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2510/CH5/EX5.7/Ex5_7.sce')
-rwxr-xr-x2510/CH5/EX5.7/Ex5_7.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2510/CH5/EX5.7/Ex5_7.sce b/2510/CH5/EX5.7/Ex5_7.sce
new file mode 100755
index 000000000..98300a583
--- /dev/null
+++ b/2510/CH5/EX5.7/Ex5_7.sce
@@ -0,0 +1,12 @@
+//Variable declaration:
+R = 10.73 //Universal gas constant (psia . ft^3/lbmol .°R)
+T = 70+460 //Temperature in Rankine scale (°R)
+v = 10.58 //Specific volume (ft^3/lb)
+P = 14.7 //Absolute pressure (psia)
+
+//Calculation:
+MW = R*T/v/P //Molecular weight of gas (lb/lbmol)
+
+//Result:
+printf("The molecular weight of the gas is : %.2f lb/lbmol.",MW)
+printf("It appears that the gas is HCl (i.e., hydrogen chloride).")