A resistor is an electrical component with a known specific value of resistance. It is probably the most common component…