Problem 2:
I think you have this right. But I am not exactly clear as to what you have done.
Define E as any convenient value. Let's call it zero; this is completely arbitrary. Since the velocity is 0 at the top, the energy is mgh at the top, so we also have to define h=0 at the top.
At...