A 0.500-kg cube connected to a light spring for which the force constant is 20.0 N/m oscillates on a horizontal, frictionless track. (a) Calculate the total energy of the system and the maximum speed of the cube if the amplitude of the motion is 3.00 cm.