Answered step by step
Verified Expert Solution
Question
1 Approved Answer
b . Read the following case and draw a state machine diagram: ABC is an online company that allows customers to buy tickets for various
b Read the following case and draw a state machine diagram:
ABC is an online company that allows customers to buy tickets for various sporting and entertainment activities. The object Ticket takes on many states during its lifecycle. Once the customer visits the website, the system first creates a new instance of a ticket and the ticket is considered initiated. After the customer selects an event and a seat, if the selection is valid then the state changes to reserved. The customer has hours to pay for the reserved ticket. If hours pass or the payment method isnt valid, then the ticket is considered canceled. If payment is valid and within hours then the reservation is confirmed. A canceled ticket can be confirmed if valid payment is provided and the desired seat hasnt been taken yet.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started