No, it is not illegal. Actually a lot of schools around the world use this as a method of punishment. In some schools there are not even janitors the kids have to clean the school themselves punishment or not.
Militarism is a political idea that focuses on building a military. It is built around the idea that nations need to have strong militaries if they are to protect the interests of their people. If those interests create a conflict with the interests of another nation, the military is there to solve that through things like wars. Militarism is usually about territorial expansion.
It influenced them because the nations needed colonies in order to stay relevant on the worldwide market and be powerful. Britain and France had numerous colonies while Germany wanted to get some of them and Austria-Hungary and Ottomans had problems with people wanting to become independent. This resulted in all of them heavily focusing on their militaries which eventually brought world war 1.
The Constitution provides that an amendment may be proposed either by the Congress with a two-thirds majority vote in both the House of Representatives and the Senate or by a constitutional convention called for by two-thirds of the State legislatures.