Question: A) Draw the initial full Decision Table to represent the following case. You are developing a computer program to assist people in learning the rules

A) Draw the initial full Decision Table to represent the following case.

You are developing a computer program to assist people in learning the rules of good driving. The following rules must be captured in the application:

  1. If you approach the traffic light and a traffic police directs you to stop, you must STOP.
  2. If you approach the traffic light and the light is green, you simply proceed.
  3. If you approach the traffic light and the light is yellow, you should proceed with caution.
  4. In all other cases, you must proceed with caution.

b) Draw the Reduced Decision Table to represent the combined rules of the case given in (a) above. All working must be shown.

DECISION TABLE: express condition with actions in tabular format. Conditions can be expressed as in terms of y or n or -(don't care). actions for the condition is expressed as X.

The given condition is:

if traffic police = stop and traffic light = stop then STOP

Else if traffic light =green then GO

Else if traffic light = yellow then CAUTION

Else CAUTION

RULE 1

RULE 2

RULE 3

RULE 4

Traffic Police

Y

N

N

N

CONDITIONS

Traffic Signal STOP

Y

N

N

N

Traffic Signal YELLOW

N

Y

N

N

Traffic Signal GREEN

N

N

Y

N

ACTIONS

OTHER

N

N

N

N

STOP

X

GO

X

CAUTION

X

X

b) Draw the Reduced Decision Table to represent the combined rules of the case given in (a) above. All working must be shown

RULES Decision Table

If TRAFFIC SIGNAL is YELLOW or IF no other condition is met then action should be taken is CAUTION

RULE 1

RULE 2

RULE 3

Traffic police

Y

N

N

CONDITIONS

Traffic Signal STOP

Y

N

N

Traffic Signal Yellow

N

Y

N

Traffic Signal Green

N

N

Y

ACTIONS

OTHER

N

-

N

STOP

X

GO

X

CAUTION

X

Please comment and provide feedback to the above answer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!