(b) thermal energy is appearing in the resistance