question archive A) Create sequence diagram in which the Customer specifies an author on the Search Page and then presses the Search button
Subject:Computer SciencePrice: Bought3
A) Create sequence diagram in which the Customer specifies an author on the Search Page and then presses the Search button. The system validates the Customer's search criteria. The system searches the Catalog for books associated with the specified author. When the search is complete, the system displays the search results on the Search Results Page. If the customer did not enter the name of an author before pressing the Search button, the system displays an error message to that effect and prompts the Customer to re-enter an author name.
B) Draw a Collaboration diagram for Online Bookshop. Client/Customer can search, view and buy books.
Communication starts with 1: find_books() - iterative message which could be repeated some unspecified number of times. Client searches inventory of books, and if he/she is interested in some book he/she can view description of the book (2: view_book()). If client decides to buy, he/she can add book to the shopping cart - 3:add_to_cart().
Checkout includes getting list of books from shopping cart, creating order(4: update_order()), and updating inventory(5: update()), if order was completed.