Lab # 5 Understanding State Transition Diagrams.
Lab Exercise:
Q1) Draw State Diagram for Airline Reservation System. Show different
activities involved for making Reservation, Changing Reservation and
Passenger Checking in for flight. ,Also clearly write down your
assumptions.
Assumptions:
● This state diagram assumes that the user is a passenger booking flight
for himself.
● This diagram portrays that each process depends upon the completion
of the previous process which imitates normal flight reservation
systems.
● The flight is booked if and only if the payment is verified. If it is not
verified it asks to enter correct details.
● The user is required to enter his ticket details to modify the current
reservation.
● The Boarding is completed only after the check in is fully completed.
State Diagram
Q2) Draw State Diagram of University for course registration system
Details: NED University offers new course ,course can initiate only if 10 students (exactly)
registered in course ,Registration will cancel otherwise, students must have to login with
their cloudIDs for registration.
Assumptions:
● This state diagram assumes that the university is the body in control and is made from
their point of view.
● This diagram only allows access to students logged in through cloud id’s
● The registrations are automatically closed as soon as the number of students reach 10.
State Diagram
Q3) Draw State Diagram of online shopping system. Consider any website and define
states and their transition to successfully place order, also define appropriate start and
exit states. Also clearly write down your assumptions
Q3 )Draw State Diagram of online shopping system. Consider any website and define states and
their transition to successfully place order, also define appropriate start and exit states. Also
clearly write down your assumptions
Assumptions:
● This diagram assumes that the main customer is mainly the buyer.
● The system does not need the user to be logged in until the checkout
process.
● This diagram also allows the user to add multiple items to the cart.
● The order is only placed when the payment verification is confirmed.
State Diagram