ohm’s law and law of resistance