VotingMachine
0 Stars     9 Views    

Author: Abdulkadir Gorur

Project access type: Public

Description:

Suppose you are asked to design an automatic voting machine.
Assume,

  • there are 2 candidates.
  • there are 3 voters, everyone gets a single vote. (If Voter votes True it goes to Candidate A, if votes False vote goes to candidate B)

The candidate with the most votes wins.
What logical variables would you use?
Can you write a logical expression, which evaluates who wins (True = Candidate A, False = Candidate B)?

Created: Apr 21, 2021

Updated: Aug 26, 2023


Comments

You must login before you can post a comment.