Temperature is a measure of the average heat or thermal energy of the particles in a substance. Since it is…