It is mostly a science. It deals with computer science and discrete mathematics.
Answer:
Less than 45 centimeters, as the ball transforms some of its potential energy into thermal energy and sound energy.
Explanation:
Although the initial energy (potential energy is preserved), the energy of deformation as the ball strikes a surface creates energy dissipation in the form of frictional heat and audible sound energy.
Every time the ball bounces, its height will be less than its previous height.
Answer:
previousAddition instance variable
Explanation:
In order to accomplish this you would need to add a previousAddition instance variable. In this variable you would need to save the amount that was added at the end of the process. Therefore, if a mistake were to occur you can simply call the previousAddition variable which would have that amount and subtract it from the total. This would quickly reverse the mistake, and can be easily called from the undo() method.
Moore's Law is the idea that the processing power of computers doubles every two years. :)