The quarter sinks. The aircraft carrier floats. Both are steel. The difference isn't material—it's geometry.
An object floats if the weight of fluid it displaces ≥ its own weight. Shape determines displaced volume.
Average density (mass/total volume) decides. Ship's total volume includes air-filled hull. Average density < water. Quarter's total volume = metal only. Average density > water.
Ship takes on water (flooding) → air volume replaced by water → average density rises → sinks. This is why watertight compartments matter. The quarter has no compartments.
Material is irrelevant. A steel bowl floats. A steel needle sinks. Shape writes the buoyancy story.