You are on page 1of 2

Draw the sequence diagram for any Four scenarios of use case.

Explain the different notations used in the diagram.

A Sequence Diagram is a type of Unified Modeling Language (UML) diagram used to


represent the interactions and messages exchanged between objects or components in a
system over time. The one for the Airplane Reservation System is shown below:

Scenario 1: Passenger Books a Flight


Sequence Diagram:

 The Passenger actor initiates the interaction by requesting a flight booking.


 The Booking System processes the request and responds with a reservation.
Scenario 2: Check Flight Availability
Sequence Diagram:

 The Passenger checks the availability of a flight.


 The Booking System responds with information about the flight's availability.
Scenario 3: Passenger Cancels Reservation
Sequence Diagram:
 The Passenger requests to cancel a reservation.
 The Booking System processes the cancellation and sends a confirmation to the Passenger.
Scenario 4: Administrator Manages Flights
Sequence Diagram:

 The Administrator manages flights within the system.


 The Booking System responds to the administrative action.
These textual representations illustrate interactions between actors (Passenger or
Administrator) and the Booking System in an airplane reservation system. In an actual sequence
diagram, you would use UML notations to visually represent these interactions, including
lifelines, messages, and other elements.

You might also like