diff options
Diffstat (limited to '575/CH3/EX3.1.1/3_1_1.sce')
-rwxr-xr-x | 575/CH3/EX3.1.1/3_1_1.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/575/CH3/EX3.1.1/3_1_1.sce b/575/CH3/EX3.1.1/3_1_1.sce new file mode 100755 index 000000000..596b7ae7a --- /dev/null +++ b/575/CH3/EX3.1.1/3_1_1.sce @@ -0,0 +1,10 @@ +clc
+pathname=get_absolute_file_path('3_1_1.sce')
+filename=pathname+filesep()+'311.sci'
+exec(filename)
+density=13.546*62.43
+printf("density of mercury=%f lbm/ft^3",density);
+//the multiplication factor is to convert density from gm/cc to lbm/ft^3.
+volume=mass/(.454*density) ; //ft^3
+//the division by 0.454 is to convert mass in kg to lbm.
+printf(" \n The volume of %d kg of mercury is %f ft^3",mass,volume)
|