Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Finite state machine creation [12 points] Specification: The program is an elevator simulation program. The program simulates an elevator in a building that has

image text in transcribed

2. Finite state machine creation [12 points] Specification: The program is an elevator simulation program. The program simulates an elevator in a building that has three floors: floor1, floor2, and floor3. The elevator has three buttons, labeled "button1", "button2", and "button3", which correspond to the floor that the elevator should go next. When the button for a floor is pressed, the elevator should go to that floor. The elevator simulator starts with the elevator on floor1 Note that for this problem, these three buttons are the only buttons (i.e., the only inputs), and we are only modeling the inside of the elevator, not the outside. 2a. [8 points] Draw the finite state machine to describe this elevator system. 2b. [4 points] Create a test suite that covers all transitions. Format example: test case 1: inputA, inputB test case 2: input , inputC)

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions