The following FSMs have input b and output z If a user press
       The following FSMs have input b and output z. If a user presses a button, b becomes 1. If a user releases a button, b becomes 0. To turn a light on, the FSM sets z to 1. To turn a light off, the FSM sets z to 0.  Determine the values of N, P, Q, and R given the desired FSM behavior below.  For FSM (1): A light is initially off. If a user presses a button, the FSM will repeatedly blink the light on and off.  NPQR =  For FSM (2): A light is initially on. The first button press turns the light off. The second button press turns the light on. Subsequent button presses switch the light off and on.  NPQR =   
  
  Solution
a)A light is intially off means A is 0. In a sequence way when it comes to NPQR=1101
b)A light is initially on means A is 0. But when first button press the light off i.e A is 0.In a sequence off and on the NPQR=1101

