Physics help on coefficient of restitution
	
	
		A ball is projected with an initial velocity u with an angle X to the horizontal surface. If e is the coefficient of restitution, then find 
 a) Total time taken by the ball to settle on the surface 
 b) Total horizontal distance / range covered by the ball before it settles on the ground 
 c) Sum of maximum heights reached by the ball before it settles on the surface
I have tried the first question by adding all the times of flight and got the answer as 
(2u sin X) / (g - ge) but I couldn't get the answers to the second and third questions. Please explain with solutions and give the final answer in terms of u, e, X and g.