summaryrefslogtreecommitdiff
path: root/2021/CH4/EX4.6/EX4_6.sce
blob: 41d34e5572965ed3bc452354490bf9c770ef4d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Finding of  Weight and Metacentric height
//Given
l=4;
b=2;
h=1;
d=0.6;
v=l*b*d;
rho=1000;
g=9.81;
//To Find
wd=rho*g*v;
disp("Weight of the body ="+string(wd)+" Newtons");
I=(l*b^3)/12;
h1=h/2;
d1=d/2;
h2=h1-d1;
mh=(I/v)-h2;
disp("Metacentric Height ="+string(mh)+" meter");