[quote]
There are 5 different version available: at message 2,6,10,11,15
[/quote]
I think version 10 or 11 is the one I was referring to that worked best (except the vector has to be removed)

[quote]
The highest point on the ramp is determined by the total energy of the system.
[/quote]
This is exactly what I want to show.
 
[quote]
The assumption for the above two settings is the block were compressed at the same displacement initially(before released).
Once the block is released, the highest point on the ramp is not dependent on spring constant k.
[/quote]

I realize the height on the ramp doesn't depend on the spring constant directly.  But, help me understand:  If there were two springs - each with the same displacement (x), wouldn't there be a difference in the stored elastic energy depending on the spring constant?  Wouldn't it then translate to different heights on the ramp (conservation of energy)?   

My interest is in demonstrating conservation of energy by varying the energy in the spring to achieve different heights up the ramp - 2 settings.  The same spring (k) could provide both settings if the displacement is varied (since it is the squared value).  So, either having 2 settings for the constant (k) or 2 settings for the displacement (x) would work.  I would rather not have both because I want to make it visually uncomplicated and because I would like to add friction to both settings eventually.