The property of objects that determines the direction of heat flow when they are placed in direct thermal contact. The temperature is the energy of microscopic…