A majority circuit is a circuit with an odd number of inputs whose output is a 1 if and only if a majority of its inputs are 1.
(a) Find the truth table for a three-input majority circuit.
(b) From the truth table,find the Boolean equation for the circuit.
(c) Write a Verilog data flow model of the circuit.