diff options
Diffstat (limited to '2510/CH5/EX5.4/Ex5_4.sce')
-rwxr-xr-x | 2510/CH5/EX5.4/Ex5_4.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/2510/CH5/EX5.4/Ex5_4.sce b/2510/CH5/EX5.4/Ex5_4.sce new file mode 100755 index 000000000..beeb4ad81 --- /dev/null +++ b/2510/CH5/EX5.4/Ex5_4.sce @@ -0,0 +1,11 @@ +//Variable declaration: +P = 14.7 //Absolute pressure of air (psia) +MW = 29 //Molecular weight of air (lb/lbmol) +T = 75+460 //Temperature in Rankine scale (°R) +R = 10.73 //Universal gas constant (ft^3.psi/lbmol.°R) + +//Calculation: +p = P*MW/R/T //Density of air (lb/ft^3) + +//Result: +printf("The density of air at 75°F and 14.7 psia is : %.4f lb/ft^3",p) |