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 --- 1484/CH2/EX2.1/2_1.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 1484/CH2/EX2.1/2_1.sce (limited to '1484/CH2/EX2.1') diff --git a/1484/CH2/EX2.1/2_1.sce b/1484/CH2/EX2.1/2_1.sce new file mode 100755 index 000000000..f04af1406 --- /dev/null +++ b/1484/CH2/EX2.1/2_1.sce @@ -0,0 +1,18 @@ +clc +//initialisation of variables +l= 60 //ft +w= 10 //ft +h= 5 //ft +t= 3/16 //in +sp = 7.75 +H= 4 //ft +w1= 62.4 //lb/ft^3 +y= 4 //ft +//CALCULATIONS +V= (l*w+2*w*h+2*l*h)*t/12 +W= V*w1*sp +x= W/(w1*l*w) +W1= H*l*w*w1 +dW= (W1-W)/2238 +//RESULTS +printf ('weight of water displaced= %.1f tons',dW) -- cgit