In class we discussed an op amp comparator circuit as shown
     In class, we discussed an op amp comparator circuit as shown below in Figure 4. For this circuit, whenever v, > vref. Vo goes to the positive power rail. Else, vo goes to the negative power rail. Throughout this part, assume that the power rails are ±5 V. Vi re Figure 4. Comparator circuit. Now consider the circuit of Figure 5  
  
  Solution
Answer for Figure 5
For Vi = 1 volt then Vout will be positive rail
For positive rail LED1 will turn ON
For Vi = -1 volt then Vout will be negative rail
For negative rail LED2 will turn ON

