In almost every case in nature, adding heat to a liquid
causes the density of the liquid to decrease. That is,
when the liquid gets warmer, it expands and occupies
more space.
The one big exception to this rule is water !
Starting with a block of ice at zero°C (32°F), as the ice melts,
becomes water at zero°C, and all the way to 4°C (about 39°F),
its density increases all the way. That is, it shrinks and occupies
less volume as it goes from ice at zero°C to water at 4°C.
This sounds like an interesting but insignificant quirk ... until
you realize that if water didn't do this, then life on Earth would
be impossible !
Answer: The answer is the masses of the objects and the distance between them
Explanation: Gravity is affected by mass and distance between two objects becuase if and object is too far the force of gravity will not be strong. The larger the object, the stronger the force of gravity will be.
Heat equation, Q = m.c.Δt
Here, c represents " the specific heat of the substance "
Hope this helps!