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