I've been told to come up with something I want to produce rather than the assignment.
That last circuit will not read a logic zero when the switch is not made due to the forward volts drop on the LED plus the voltage across the resistor will mean that the voltage on the input can never reach logic zero levels.
Yes it works,
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16