# Turn USE CASE into Sequence Diagram

Page 1 of 1

## 0 Replies - 317 Views - Last Post: 11 May 2013 - 02:27 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=320784&amp;s=d712424cb5b8592ea00329916d0da92a&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 MrAmazing

• New D.I.C Head

Reputation: 0
• Posts: 1
• Joined: 11-May 13

# Turn USE CASE into Sequence Diagram

Posted 11 May 2013 - 02:27 AM

Hi.

As part of my hobby I am currently teaching myself about USE CASES and sequence diagrams.

This is the use case:

Use case: Record Purchase
Actors involved: Sales Person
Preconditions: The purchase is ready to be made.

Main flow: The sales system interface displays that it is ready for a new purchase or return of sold items. A Sales Person begins a new purchase. A new purchase record is created for the purchase. The Sales Person enters their id number into the record and their details are attached to the record. A receipt number and date and time are generated and stored by the purchase record. The barcode of each item that the customer wants to purchase is read. The barcode will contain a barcode number for the item. The items are added to the purchase record. The product type of the item is determined from the barcode number. The price of the item is then found from the price of its product type. Once the last item has been added to the purchase record the price is calculated for each item and for the entire purchase. A list is displayed of: each item’s price and the product name for that item; the price of the entire purchase; and the name of the Sales Person. When payment is taken by the Sales Person the purchase recorded as set to complete and each item is recorded as sold.

I have learned so far that the objects within the sequence diagram are usually identified as NOUNS within the USE CASE.

Therefore, the objects I can find are: Sales person, sales system, purchase.
Are there anymore objects?

Is This A Good Question/Topic? 0

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }