Display a buoyant force calculation result table according to Archimedes' Principle, which states
that the buoyant force exerted on an object is equal to the weight of the fluid that is displaced
by the object.
B=p_(f)vvg
B= Buoyant force in Newtons
p_(f)= Fluid density, which will be 1000k(g)/(m^(3)) for water
V= Volume of displaced fluid
g = Acceleration due to gravity, which is 9.81(m)/(s)2
The buoyancy must be calculated in a MATLAB function that accepts a volume of fluid and
returns the buoyancy force.
Use a script to generate the table
The output should be aligned and formatted as shown below.
Volume (m^(3)) Buoyant Force (N)
1. Display a buoyant force calculation result table according to Archimedes'Principle,which states
that the buoyant force exerted on an object is equal to the weight of the fluid that is displaced by the object.
B=pfVg
B=Buoyant force in Newtons
Pf = Fluid density, which will be 1000 kg/m^3 for water
V=Volume of displaced fluid
g = Acceleration due to gravity, which is 9.81 m/s2
The buoyancy must be calculated in a MATLAB function that accepts a volume of fluid and returns the buoyancy force
Use a script to generate the table The output should be aligned and formatted as shown below
Volume (m^3)Buoyant Force (N)
0.00
X^XXXXX
0.05
XXXXX.X
0.10
XXXXX.X
0.15
XXXXX.X
0.20
XXXXXX
2.00
XXXXX-XX