DOC PREVIEW
CORNELL CS 501 - Quiz 2

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 501, Software EngineeringQuiz 2InstructionsQuestion 1Question 2CS 501, Software EngineeringQuiz 2Tuesday, February 26, 200230 minutesInstructions1) Answer both questions.2) Write your answers in an examination book. WRITE YOUR NETID ON THE FRONT OF EACH BOOK.3) This is an open book examination. You may use any book or notes, but no computers. Question 1(a) What is the purpose of (i) requirements definition?(ii) requirements specification?(b) Under what circumstances would you model requirements with a Petri net?(c) Why can you not use a decision table to model the circumstances in (b)? (d) Explain each of the three following diagrams:Page 1 of 2SAEvent 1Event nASEvent S1SmAEvent 1Event n:(i)(ii)(iii)SAEvent 1Event nSAEvent 1Event nASEvent ASEvent S1SmAEvent 1Event n:S1SmAEvent 1Event n:(i)(ii)(iii)Question 2A microwave oven has the following buttons: clear Clear all settingshigh-power Set high-power cooking (default)low-power Set low-power cookingrun Run until time expirespause Pause without changing settingsopen door Pause and open doorand a rotary dial:set-clock Set the clock (default is zero)Initially and after clear the microwave is set for high-power cooking and the clock is set to zero. The microwave is ready to run when the clock is set to a value greater thanzero and the door is closed. The user can then hit the run button to begin cooking untiltime expires. While cooking, opening the door or hitting the pause button suspends operation without changing any settings; the user can then hit clear, change settings, orhit run to continue. Settings can be changed while the door is open; it is not possible to run with the door open.Your task is to model this system as a finite state machine.(a) What are the states?(b) What are the transitions?(c) What is the state transition table?(d) Draw a state transition diagram.[Hint. It is possible to model this system with only 4 states, but there are correct answers with more states.]Page 2 of


View Full Document

CORNELL CS 501 - Quiz 2

Documents in this Course
Usability

Usability

31 pages

Quiz 1

Quiz 1

2 pages

Stulba;''

Stulba;''

33 pages

Load more
Download Quiz 2
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Quiz 2 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Quiz 2 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?