>} KoyJot ()
{(Input [3] == 0 amp; amp; Input [4] == 1)=0; (Input [3] == 1 amp; amp; Input [4] == 0)=1; (Input [3] == 1 amp; amp; Input [4] == 1 amp; amp; Quas == 1)=0; (Input [3] == 1 amp; amp; Input [ 4] == 1 amp; amp; Quas == 0)=1; (Input [3] == 1 amp; amp; Input [4] == 1 amp; amp; Revs == 1)=1; (Input [3] == 1 amp; amp; Input [4] == 1 amp; amp; Revs == 0)=0;
} SieRa ()
{int p;=0; (Input [1] == 0 amp; amp; Input [2] == 0)
{= 0; } (Input [1] == 1 amp; amp; Input [2] == 0)
{= 1; p=2; } (Input [1] == 0 amp; amp; Input [2] == 1)
{= 0; Revs=1; p=3; } (Input [1] == 1 amp; amp; Input [2] == 1)
{= 1; Quas=0; C=0; Revs=1; } p;
} calculations ()
{b=0; (Input [0] == 1 amp; amp; C == 0)
{= 0;=SieRa (); (b == 1)
{cout lt; lt; n t tERROR messenge: inputs R and S have valua 1 raquo ;; [0]=0; [1]=0; [2]=0; [3]=0; [4]=0;
} (b == 0) ();
} (Quas == 0)=1; (Quas == 1)=0; (Input [0] == 0)=0;
} SetDirectParameters ()
{cout lt; lt; n n n t t tWrite InPut Valuas of MEMORY: n
lt; lt; n t tSynchro Impuls= raquo ;; gt; gt; Input [0]; lt; lt; n t tValua on InPut S= raquo ;; gt; gt; Input [1]; lt; lt; n t tValua on InPut R= raquo ;; gt; gt; Input [2]; lt; lt; n t tValua on InPut J= raquo ;; gt; gt; Input [3]; lt; lt; n t tValua on InPut K= raquo ;; gt; gt; Input [4];
} SetOJKDirectParameters (int a, int b, int ss)
{Input [3]=a; [4]=b; [0]=ss;
} SetORSDirectParameters (int a, int b)
{Input [1]=a; [2]=b;
} OutPut ()
{return Quas;
} RevsOutPut ()
{return Revs;
}
}; REGISTER: protected ELEMENT
{: Drop; Select; obj [8]; RInput [8] [5]; RC; :( string name): ELEMENT (name, 40, 16)
{= 0;=0;=0; (int i=0; i lt; 8; i ++)
{for (int j=0; j lt; 5; j ++)
{RInput [i] [j]=0; }}
} OutInput (int r, int e)
{= e - 1;=r - 1; RInput [r] [e];
} RSetDirectParameters ()
{int SI=0; lt; lt; n n n t t t tWrite InPuts Valuas of REGISTER: n n n raquo ;; lt; lt ; t tValua of Synchro Signal= raquo ;; gt; gt; SI; lt; lt; n t tValua on InPut S= raquo ;; gt; gt; Select; lt; lt; laquo ; n t tValua on InPut R= raquo ;; gt; gt; Drop; (int i=0; i lt; 8; i ++)
{[i] [0]=SI; [i] [1]=Select; [i] [2]=Drop; lt; lt; n n n n t t tWhite InPut Valuas of TRIGER MEMORY lt; lt; i + 1 lt; lt; laquo ;: n raquo ;; lt; lt; n n t t tValua on InPut J= raquo ;; gt; gt; RInput [i] [3]; lt; lt; n n t t tValua on InPut K= raquo ;; gt; gt; RInput [i] [4]; ( cls ); [i]. SetOJKDirectParameters (RInput [i] [3], RInput [i] [4], RInput [i] [0]); [i]. SetORSDirectParameters (RInput [i] [1], RInput [i] [2]);
}
} RegisterCalculations ()
{(); ( cls ); lt; lt; n t t tOutPut value of REGISTER Outputs: n raquo ;; (int i=0; i lt ; 8; i ++)
{(RInput [i] [0] == 1 amp; amp; RC == 0)
{[i]. calculations ();
} lt; lt; n t tMEMORY No. lt; lt; i + 1 lt; lt; is lt; lt; obj [i]. OutPut () lt; lt; lt; lt; Reverse is lt; lt; obj [i]. RevsOutPut ();
} (RInput [0] [0] == 0)=0; (RInput [0] [0] == 1)=1;
}
}; main ()
{m=0; int n=0; int g=0; int v=0; lt; lt; n n t t tWellcome to NOIR's Course Project! raquo ;; x=0; (x!=4)
{x=5; ( cls ); lt; lt; n n t n tChose Digital Element Which you want to Test: raquo ;; lt; lt ; n n t t1 - Combinatoric Element raquo ;; lt; lt; n t t2 - Memory Triger raquo ;; lt; lt; n t t3 - Register JK raquo ;; lt; lt; n t t4 - Quit n n t tAnd u chose is: raquo ;; gt; gt; x; (x == 1)
{int x1=1; ( cls ); lt; lt; n n n t tWrite amount inputs of combination element raquo ;; gt; gt; n ; ob ( Richard , n); lt; lt; n t tWrite...