summaryrefslogtreecommitdiff
path: root/1364/CH1/EX1.4.2/1_4_2.sce
blob: 857eb5e6c4aaea965350537c29016d25da980cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//initialisation of variables
p= 20 //lbf/in^2
d1= 4 //in
d2= 18 //in
d3= 0.5 //in
sw= 62.3 //lbf/ft^3
//CALCULATIONS
Fa= p*(%pi/4)*d3^2
Fb= (4/d2)*3.92
V= 1.5*(Fb/sw)*1728
r= (0.75*(V/%pi))^(1/3)*2
//RESULTS
printf ('diameter of the float= %.2f in',r)