Decision tables: Difference between revisions
Content added Content deleted
(add Ruby) |
m (→{{header|J}}) |
||
Line 423: | Line 423: | ||
=={{header|J}}== |
=={{header|J}}== |
||
'''Solution''':<lang j>require'strings' |
'''Solution''':<lang j>require'strings' |
||
'RULE_NAMES RULES'=: |:':'&cut;._2 noun define |
'RULE_NAMES RULES'=: |:':'&cut;._2 noun define |
||
Printer does not print: Y Y Y Y N N N N |
Printer does not print: Y Y Y Y N N N N |
||
A red light is flashing: Y Y N N Y Y N N |
A red light is flashing: Y Y N N Y Y N N |
||
Line 429: | Line 430: | ||
) |
) |
||
'ACTION_NAMES ACTIONS'=: |:':'&cut;._2 noun define |
'ACTION_NAMES ACTIONS'=: |:':'&cut;._2 noun define |
||
Check the power cable: - - X - - - - - |
Check the power cable: - - X - - - - - |
||
Check the printer-computer cable: X - X - - - - - |
Check the printer-computer cable: X - X - - - - - |