Pros: Readability. Unique closing reserved words on compound
statements will enhance readability and flexibility of a language. When an
endwhile or an endif in a program is written by someone else, it is vivid which
block is ending. Using braces is much harder is sometimes much harder to read.
Cons: Writability. They have the disadvantage of writability
and thus, complicating the language by increasing the number of keywords. Use
of more of these reserved words mean less words available for the programmer.
Answer:
Kindly check the attachment.
Explanation:
We have the maximal count = 2^n - 2. Although, normally we can use 2^n = 2^3= 8( which means MOD-8 counter, but we need MOD-6). Therefore, the maximum count should be 6 - 1 Which is equal to 5. The total number of states is 6, then with these we can define our MOD-6
So, using;
Values of Qc, Qb, Qa and their respective Decimal equivalent are given below;
0 0 0 0
0. 0 1 1
0 1 0 2
0 1 1 3
1 0 0 4
1 0 1 5
1 1 0 6*(reset).
Thus, 0 - 5 => MOD-6 counting.
Check the attachment for the logical diagram
After the simulation, run the circuit to test if it is working efficiently.