This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: two. The elevator passes two and stops at three before it comes back down and stops at two. The elevator then returns to floor one, opens the door and waits for a new request. 4. The elevator starts at floor one. Floor two indicates a down request, followed closely by floor three. Floor two then indicates an up request. The elevator stops at floor two continues on to three five. It then comes back down and stops at floor two, then returns to floor one. 5. The elevator starts at floor one and up requested by floor two. The elevator reaches floor two and the third floor button is pressed. The elevator travels to three and lets its passenger off. 3. a. 100% Branch Coverage a = array size 6 key = 1 a = array size 6 key = 4 b. Bug – The bug is that if key is a negative number....
View Full Document
- Spring '08
- Software engineering, Florida Keys, The Doors, Code coverage, Reach