A farmer owns a dog, goat, cabbages, and two barns. He needs a logic circuit that will sound an alarm if the dog and goat are left alone in the same barn together, or if the goat and cabbages are left alone in the same barn, to prevent the dog from biting the goat or the goat from eating the cabbages.
A farmer owns a dog, goat, cabbages, and two barns. He needs a logic circuit that will sound an alarm if the dog and goat are left alone in the same barn together, or if the goat and cabbages are left alone in the same barn, to prevent the dog from biting the goat or the goat from eating the cabbages.
A farmer owns a dog, goat, cabbages, and two barns. He needs a logic circuit that will sound an alarm if the dog and goat are left alone in the same barn together, or if the goat and cabbages are left alone in the same barn, to prevent the dog from biting the goat or the goat from eating the cabbages.
A farmer owns a dog, goat, cabbages, and two barns. He needs a logic circuit that will sound an alarm if the dog and goat are left alone in the same barn together, or if the goat and cabbages are left alone in the same barn, to prevent the dog from biting the goat or the goat from eating the cabbages.
A farmer has a dog, a goat and basketful of cabbages.
In addition, he owns 2 barns, a
north barn and a south barn. It is assumed that any of the characters in this problem could only be in the north barn or in the south barn. If the dog and goat are left without the farmer, the dog will bite the goat. If the goat and cabbages are left without the farmer, the goat will eat the cabbages. Design a logic circuit that will trigger an alarm if any of the aforementioned disasters is likely to occur.