Assumptions - Energy Conservation in Simple Harmonic Motion (Vertical Spring)
The applet demonstrates energy conservation for a weighted vertical spring performing simple harmonic motion.

It is assumed that

The suspension point of the spring is located somewhere above the applet window. Its location above the window is adjusted by the applet such that the block's equilibrium position for any mass m and any spring constant k is always in the center of the applet window.