How Do I Build a Logic Gate for a Voting System?

AI Thread Summary
To build a logic gate for a voting system, the correct expression for the SUCCESS light is S = (C AND (X OR Y OR Z)) OR (X AND Y AND Z). The user is unsure about the next steps after deriving this expression, questioning whether to create a truth table or directly implement the logic gates. It is clarified that AND and OR statements can have multiple inputs. Creating a truth table may not be necessary unless specifically requested. The discussion emphasizes understanding the logic circuit design based on the voting criteria.
JosephF
Messages
14
Reaction score
0

Homework Statement



I'm studying logic gates and trying to create my first one.

Homework Equations



3. In a TV programme, the panel votes on new performers.
The panel consists of a Chairman (C) and three others (X, Y and Z) who each press a button to register their vote.

The SUCCESS light is switched on if:
Either The Chairman and at least one of the panellists vote yes
Or All three panellists vote yes

Otherwise the FAIL light is switched on.

Design a logic circuit which correctly switches each light on according to the voting of the panel.

The Attempt at a Solution



I've written all the statements our and managed to derive:

S = C AND (X OR Y OR Z) OR (X AND Y AND Z)

Which I think is correct. I'm now not sure where to go from here. I've googled but can't find any think relevant.

Regards,
 
Last edited:
Physics news on Phys.org
JosephF said:

Homework Statement



I'm studying logic gates and trying to create my first one.

Homework Equations



3. In a TV programme, the panel votes on new performers.
The panel consists of a Chairman (C) and three others (X, Y and Z) who each press a button to register their vote.

The SUCCESS light is switched on if:
Either The Chairman and at least one of the panellists vote yes
Or All three panellists vote yes

Otherwise the FAIL light is switched on.

Design a logic circuit which correctly switches each light on according to the voting of the panel.

The Attempt at a Solution



I've written all the statements our and managed to derive:

S = C AND (X OR Y OR Z) OR (X AND Y AND Z)

Which I think is correct. I'm now not sure where to go from here. I've googled but can't find any think relevant.

Regards,

I think you will want to be clear with your grouping.

S = (C Λ (X V Y V Z)) V ( X Λ Y Λ Z)
 
Ah yes, that looks better.

Whats my next step? Do I need to input it into a truth table or do I go streight to the logic gates? Also, can and AND statement have more than 2 inputs?

Thanks,
 
JosephF said:
Ah yes, that looks better.

Whats my next step? Do I need to input it into a truth table or do I go streight to the logic gates? Also, can and AND statement have more than 2 inputs?

Thanks,

Sure you can put as many inputs into an And or Or or Nand or Nor as you want.

Unless you are asked for a Truth Table ... why bother?
 
Thread 'Voltmeter readings for this circuit with switches'
TL;DR Summary: I would like to know the voltmeter readings on the two resistors separately in the picture in the following cases , When one of the keys is closed When both of them are opened (Knowing that the battery has negligible internal resistance) My thoughts for the first case , one of them must be 12 volt while the other is 0 The second case we'll I think both voltmeter readings should be 12 volt since they are both parallel to the battery and they involve the key within what the...
Thread 'Trying to understand the logic behind adding vectors with an angle between them'
My initial calculation was to subtract V1 from V2 to show that from the perspective of the second aircraft the first one is -300km/h. So i checked with ChatGPT and it said I cant just subtract them because I have an angle between them. So I dont understand the reasoning of it. Like why should a velocity be dependent on an angle? I was thinking about how it would look like if the planes where parallel to each other, and then how it look like if one is turning away and I dont see it. Since...
Back
Top