Construct a basic queuing system that is used in banks, counters. Given a situation that Mr.A in room 1 and Mr.B in room 2, both of them have a push button which gives +1 logic when pushed and 0 when released. Here is the conditions needed to be fulfilled:
1) If. Mr. A pushes the button, 1 will be displayed in the LED 7-segment display
2) if Mr. B pushes the button, 2 will be displayed in the LED 7-segment display
3) If they press the buttons together at the same time, Mr.A takes priority and 1 will be displayed.
1 and 2 i definitely know, but i don't know how to implement condition 3 although it sounds very very simple. Hope seniors here can enlighten me. Thank you