How will the following word problem work as a logic program? - ProProfs Discuss
Advertisement

How will the following word problem work as a logic program?

The light bulb(L) is ON if switch A (A) is OFF and switch B (B) is ON and either switch B (B) is OFF or switch (C) is ON.

Asked by Alex_yeo, Last updated: Apr 09, 2024

+ Answer
Request
Question menu
Vote up 1 Vote down

1 Answer

John Adney

John Adney

John Adney
John Adney

Answered Sep 19, 2017

The Answer is
L = (A AND B) and (B NOR C)

upvote downvote 1
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.