Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 Consider the following Traffic Light System specification and transition diagram in figure 2 below. Traffic light system works as follow: Whenever the system

image text in transcribed

image text in transcribed

image text in transcribed

Question 2 Consider the following Traffic Light System specification and transition diagram in figure 2 below. Traffic light system works as follow: Whenever the system start-up, the red light on, and the other lights off. When the red light on, it will on for 10 seconds, then the red light off and the green lights on. When the green light on, it will on for 10 seconds, then the green light off and the orange light on. When the orange light on, it will on for 2 seconds, then the orange light off and the red light on. The input value is the current traffic light colour (either red, green or yellow), and the duration in seconds, whilst the output is the next traffic light colour. RED 2s 10s ORANGE GREEN 10s Figure 2: Transition diagram of traffic light system. i. Create state transition table. ii. Identify how many test cases to cover 100% test coverage. iii. Write all possible test cases

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions