Rounding to the nearest 10 or 100

This was inspired by John Ulbright's applet [url=https://www.geogebra.org/m/qDUeV4Qc]https://www.geogebra.org/m/qDUeV4Qc[/url][br]I used his work as a mentor applet in order to learn some coding.

Information: Rounding to the nearest 10 or 100