Answer:
The workdone is

Step-by-step explanation:
From the question we are told that
The height of the cylinder is

The face Area is

The density of the cylinder is

Where
is the density of freshwater which has a constant value

Now
Let the final height of the device under the water be

Let the initial volume underwater be

Let the initial height under water be

Let the final volume under water be

According to the rule of floatation
The weight of the cylinder = Upward thrust
This is mathematically represented as


So

=>

Now the work done is mathematically represented as

![= \rho_w g A [(h^2)/(2) ] \left | h_f} \atop {h}} \right.](https://img.qammunity.org/2021/formulas/physics/college/hywlmt25lpu6dmceknbz3dahklro37cp8f.png)
![= (g A \rho)/(2) [h^2 - h_f^2]](https://img.qammunity.org/2021/formulas/physics/college/p7f1h25i96b7ioteht45emcoc3simpbe3x.png)
![= (g A \rho)/(2) (h^2) [1 - (h_f^2)/(h^2) ]](https://img.qammunity.org/2021/formulas/physics/college/9urxlh7a1zw8ly1wae97ysws1fvlzqty65.png)
Substituting values
