Uploaded by abesigabrania6

a

advertisement
(a) Draw a use case diagram to model the top level view of the specification below.
Web Customer uses some website to make purchases online. Top level use cases are View
items , Make Purchase and client Register. View items use case could be used by customer as
top level use case if customer only wants to find and see some products. This use case could
also be used as a part of Make Purchase use case Client Register use case allows customer to
register on the web site, for example to get some coupons or be invited to private sales. Note,
that Checkout use is included use case not available by itself checkout s part of making
purchase.
<<Actor>>
Web Customer
|
v
<<Use Case>>
View Items
|
v
<<Use Case>>
Make Purchase
/
\
/
\
Checkout (included) Client Register
In this diagram, "Web Customer" is the primary actor who interacts with the system. The
system offers three top-level use cases: "View Items", "Make Purchase", and "Client Register".
"View Items" allows the customer to search and browse for products without necessarily
making a purchase. "Make Purchase" includes the "Checkout" use case, which is an included
use case and cannot be invoked on its own. Finally, "Client Register" allows the customer to
register on the website, which can offer benefits such as coupons or invitations to private sales.
+-----------------+
| Web Customer |
+-----------------+
| |
| |
| |
+-------------+
+--------------+ +---------------+
| View Items |---->| Make Purchase|--> | Client Register|
+-------------+
+--------------+ +---------------+
^
|
|
+------------+
| Checkout |
+------------+
(b) For case of View by the customer, a specification is as follows:
View Items use case extended by several optional use cases - customer may search for items,
browse catalog, view items recommended for him/her. and items to shopping cart or wish list.
All the use cases are extending the use cases because they provide some optional functions
allowing customer to find item.
Customer Authentication use case is included in View Recommended Items and Add to wish list
because both require customer Items and Add to wish list because both require customer to be
authenticate. At the same time, item could be added to shopping cart without user
authentication.
MODEL THE ABOVE USE CASES.
Download