Assignment 02
Assignment 02
Lahore Campus
Question 1: Draw the use case diagrams and write a user requirements of the
following scenarions, :
Scenario 1:
We have an online shopping system designed to offer a secure and convenient shopping
experience for customers. The system begins with a customer logging into the platform using an
external identity provider that authenticates their credentials. Once logged in, the customer can
browse through a catalog of items, viewing details about each product. When a customer decides
to purchase an item, they initiate a process that includes selecting the item for purchase, which is
directly linked to the item viewing functionality. Following this selection, the customer proceeds
to complete the checkout process. This process involves several steps, including the
authentication of the customer's identity and the processing of payments. The system integrates
with external services such as a credit payment service and PayPal to handle transactions
securely. The comprehensive nature of this system ensures that the customer can manage their
purchases from viewing items to completing transactions smoothly and securely. This scenario
requires to create a use case diagram that illustrates these interactions and dependencies within
the system.
Scenario 2:
In this scenario, explore the functionalities of a website from the perspectives of two types of
users: a standard site user and a webmaster. The site user has access to a range of functionalities
starting with the ability to log in to the website. Once logged in, the user can perform several
tasks: they can browse through documents, search for documents using full-text search, and view
details of upcoming events. Each document viewed can also be previewed and downloaded if
needed. Additionally, users can upload documents, which is a functionality that extends to
managing folders, allowing users to organize their uploads into structured directories.
On the other hand, the webmaster has administrative privileges that include not only all the
functionalities available to the standard site user but also several extended capabilities. The
webmaster can post new events to the homepage to keep the site updated with the latest
activities. They can also add new users to the website, which extends to adding entire companies,
allowing group management under single entities. This scenario illustrates a comprehensive
system where different user roles are assigned specific responsibilities and privileges, enhancing
the functionality and management of the website.
Scenario 3:
In this scenario, the focus is on the interactions between a traveler, a clerk, and a railway website
within a railway ticket booking system. The process begins when a traveler decides to book a
ticket using the railway website. Initially, the traveler checks the availability of tickets for their
desired journey. If tickets are available, the traveler proceeds to book a ticket. This booking
process includes filling out personal information and travel details, a mandatory step before
proceeding. Once the information is filled in, the booking is completed by paying the fare
amount.
However, if the traveler needs to cancel the ticket, the process involves interactions with a clerk.
The traveler contacts the clerk to initiate the cancellation, who then processes the request through
the system. After successfully cancelling the ticket, the system triggers a refund process, where
the money paid by the traveler is returned. This comprehensive system efficiently manages
booking, cancellation, and refund processes, ensuring a smooth operation for both travelers and
railway staff.