Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In operation, questions are read to the contestants. When contestants know the a

ID: 1814627 • Letter: I

Question

In operation, questions are read to the contestants. When contestants know the answer, they must buzz-in by pressing their respective button before answering. The first one to buzz-in, causes the Buzzer output to turn on along with the respective Win lamp for 2 seconds. For example, if player 2 is the first to buzz-in, the Buzzer andWin2 outputs will switch on for 2 seconds indicating that player 2 was first. At the same time, players 1 and 3 will be locked out; i.e. their pushbuttons will be disabled until the previous win times out. If two or more players buzz-in at exactly the same time, it doesn't matter which is chosen as the winner, but only one must win (a tie is not allowed). The outputs will stay on for 2 seconds only, even if any or all pushbuttons remain pressed

Explanation / Answer

Here is the logic

If( player1 = ON)

{

buzzer = ON

Win1=on

Win2=disable

Win3=disable

Wait 2 sec

}

Else if ( player2 = ON)

{

buzzer = ON

Win1= disable

Win2= ON

Win3=disable

Wait 2 sec

}

Else if ( player3 = ON)

{

buzzer = ON

Win1= disable

Win2= disable

Win3= ON

Wait 2 sec

}

Endif

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote