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:
If you approach the traffic light and a traffic police directs you to stop, you must STOP.
If you approach the traffic light and the light is green, you simply proceed.
If you approach the traffic light and the light is yellow, you should proceed with caution.
In all other cases, you must proceed with caution.
Answer:
Completed Decision Table for Traffic Light
Conditions/Actions |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
If Traffic Police directs to stop |
Y |
Y |
Y |
Y |
N |
N |
N |
N |
If Traffic light is green |
Y |
Y |
N |
N |
Y |
Y |
N |
N |
If Traffic light is yellow |
Y |
N |
Y |
N |
Y |
N |
Y |
N |
Stop |
X |
X |
X |
X |
X |
X |
||
Proceed |
X |
X |
X |
X |
||||
Proceed with caution |
X |
X |
X |
Please Respond should to the answer above. Do you agree/disagree with reasons providing supplement information. Are there any help/suggestions/improvements to the answer.
Get Answers For Free
Most questions answered within 1 hours.