1
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.

Farmer dog cabbage

Embed Size (px)

DESCRIPTION

DIELECT example problem

Citation preview

Page 1: Farmer dog cabbage

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.