Create the following models. You may complete the StarUML model danube.uml.
Draw a use case diagram for an online bookstore (like Amazon).
Draw a UML class diagram modeling the following bookstore concepts:
A book store has an inventory containing books. These books can be transferred to and from shopping carts. When the items in a cart are purchased, they are transferred to a customer.
Create a design model (class diagram) for the bookstore. Consider using the following patterns:
Layers
Model-View-Controller
Publisher-Subscriber
Gateway
Facade
Command Processor
Your diagram should provide ways for users to view the inventory and their cart. There should be a way for users to transfer books between inventory and cart.
Show operations in your class.
Draw a sequence diagram showing how a user might transfer a book from inventory to a cart.
Assume the following database has been created:
The following utilities are available:
The package utils.events contains a Publisher class and a Subscriber interface.
The package utils.gui contains an abstract GUIComponent class. This will be useful for any visible component such as a view or a control (button, menu item, etc.)
An API for connecting to databases: