You are chief of protocol for the embassy ball. The crown prince instructs you to either invite Peru or to exclude Qatar. The queen asks you to invite either Qatar or Romania or both. The king, in spiteful mood, wants to snub Peru or Romania or both. Is there a guest list that will satisfy the whims of the entire royal family?
Design a circuit that has three inputs (Peru,
Qatar and Romania) and an output
(acceptable). Each input represents the fact that a country
is invited (1) or not invited (0). The output indicates whether the
invitations satisfy the whims of the royal family.
module embassy_ball (Peru, Qatar, Romania, acceptable);
input Peru, Qatar, Romania;
output acceptable;Peru, Qatar and Romania
indicate whether these countries are invited to the embassy
ball.
acceptable indicates whether the invitations satisfy
the whims of the royal family.