How to connect an LED to a battery with a switch and determine the value of the resistor?

Published --