You might want to consider the following things :
- The equations of motion, to calculate the instantaneous velocity $v$ and the distance traveled $s$.
- The air resistance which is directly proportional to the instantaneous velocity squared $v^2$. The proportionality constant $k$ would depend upon air density $\rho$, drag coefficient $C_d$ and surface area $A$ of the ball.
$$F_r=kv^2=\frac12 \rho C_d A v^2$$
- The coefficient of restitution $e$. It will calculate what velocity $v'$ the ball will start jumping with again, given that it hits the floor with velocity $v$. And this has to be applied recursively, each time the ball hits the floor.
- If you want to simulate a large height, you might want to consider a variable air resistance through the fall and rise (look here for details on that), and also a variable gravitational field.
I guess this is enough for a simple simulation. Right now, no other factor is coming in my mind.
As for the loss of energy, at every step, calculate the height the ball is reaching and calculate the potential energy. Subtract the previous potential energy and you will get the loss in the energy for that rise and jump.