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 --- 575/CH3/EX3.1.1/3_1_1.jpg | Bin 0 -> 71737 bytes 575/CH3/EX3.1.1/3_1_1.sce | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100755 575/CH3/EX3.1.1/3_1_1.jpg create mode 100755 575/CH3/EX3.1.1/3_1_1.sce (limited to '575/CH3/EX3.1.1') diff --git a/575/CH3/EX3.1.1/3_1_1.jpg b/575/CH3/EX3.1.1/3_1_1.jpg new file mode 100755 index 000000000..923d88754 Binary files /dev/null and b/575/CH3/EX3.1.1/3_1_1.jpg differ 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) -- cgit