We know that a current passing through a resistance has a heating effect, the magnitude of which we measure in…