Answered step by step
Verified Expert Solution
Link Copied!

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 24 hours to pay for the reserved ticket. If 24 hours pass or the payment method isnt valid, then the ticket is considered canceled. If payment is valid and within 24 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

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

Step: 3

blur-text-image

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

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

Students also viewed these Databases questions