Archimedes' principle states that when an object is totally or partially immersed in a liquid, an upthrust acts on it…