A keyboard has 44 keys, in 4 rows of 11 keys/row. Each of the keys can be pressed
or not pressed. It is thus permitted to press many keys at the same time. Specify
an ASN.1-declaration for transfering information about which of the keys are pressed.
Solutions:
Solution 1
KeyPos ::= SEQUENCE {
row [0] INTEGER (1..4),
column [1] INTEGER (1..11 }
PressedKeys ::= SET OF KeyPos
Solution 2
Keyboard ::= SET OF SEQUENCE {
row [0] INTEGER (1..4),
column [1] INTEGER (1..11),
pressed BOOLEAN }