Executive Committee

The Executive Committee of a prestigious football team has four members: President (P), Secretary (S), Treasurer (T) and Vocal (V). For the approval of proposals, the Committee has an electronic voting system in which each member can press the “Yes” or “No” buttons. The proposals are approved when three members vote in favour. In case of a tie, the qualified vote of the President decides.

Design a circuit that receives the votes of the four members (0=“No”, 1=“Yes”) and outputs a signal indicating whether the proposal is approved (1=“Approved”, 0=“Rejected”).

Specification

module votes(P, S, T, V, Approved);
    input P, S, T, V;
    output Approved;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:20:11.371Z

© Jutge.org, 2006–2026.
https://jutge.org