summaryrefslogtreecommitdiff
path: root/1484/CH2/EX2.1/2_1.sce
blob: f04af1406ce7f1c65625418ab6cace15a48e1762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)