From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2510/CH5/EX5.7/Ex5_7.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2510/CH5/EX5.7/Ex5_7.sce (limited to '2510/CH5/EX5.7/Ex5_7.sce') 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).") -- cgit