Question: A project team is about to creating a state machine diagram based on the following problem specification concerning a computerized gas station pump control scheme:

A project team is about to creating a state machine diagram based on the following problem specification concerning a computerized gas station pump control scheme: The pump is initially deactivated (i.e. depressing the trigger will not output gas) and waiting for a client to come and use it. When a client comes, he has two ways of using the pump. After lifting the nozzle and selecting the type of gas he wants: (1) he slides his credit card, enters the monetary amount of gas he wants then presses the OK button. A banking transaction then takes place. If it is rejected, the pump waits for a new client. If the transaction is accepted, or (2) if the client waits for 5 seconds before sliding his card, the cashier receives a beeping signal until he activates the pump. When the pump is activated, it is idle until the trigger is depressed and begins pumping. After it started pumping, the trigger can be released to put the pump back to idle. If the amount entered (using the aforementioned credit card billing scheme) is reached while pumping, the pump is deactivated and the transaction is processed. After payment is confirmed, the pump waits for a new client. If the pump is activated and not pumping (idle) for more than 5 seconds, or if s put back the pump is deactivated until the transaction is processed and the payment is received. There is also an anti-overfilling mechanism that prevents gas spilling when pumping by putting the pump to the activated idle state. a) The team figures out 2 major states: "pump deactivated" and "pump activated" in the following state machine diagram. What the 3^rd important state should be included in the diagram? Please fill up the state name. b) Please clearly write down the event name for the 3 transitions within "pump deactivated" and "pump activated" states (please just write beside the transition lines) c) please identify 3 transitions based on the problem specification between the "pump deactivated" and "pump activated" states in the following state machine diagram. Please draw the line, clearly mark the arrow direction and give event name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
