Simulator with Gemini and Code.pen

I'm preparing a workshop on floating for fourth-grade students. I prefer hands-on activities, but to better understand Archimedes' principle, I asked Gemini to create an interactive simulator. It wasn't easy, because it used incorrect parameters, and some cubes were thrown into the air instead of sinking! Anyway, here's the correct simulator.

Thanks to Andrea Cartotto, who suggested creating the simulators.