Resistors perform two basic functions in a circuit: they limit current flow and set voltage levels within a circuit. We…