Page 324 -
P. 324

chaPter 10  •  object-oriented systems analysis and design Using Uml     291

                3.  Draw a use case diagram for World’s Trend Catalog Division.
                4.  Draw four pictures, showing examples of four types of behavioral relationships for Joel Porter’s
                  BMW automobile dealership. What type of relationship is involved when a customer must arrange
                  financing? Are there common activities involved when a person either leases or buys an automobile?
                  What type of relationship is between an employee who is a manager or one who is a salesperson?
                5.  Draw a communication diagram for a student taking a course from a teacher, who is part of the faculty.
                6.  Coleman County has a phone exchange that handles calls between callers and those receiving the
                  call. Given these three actors, draw a simple sequence diagram for making a simple phone call.
                7.  You are ready to begin UML modeling for the Kirt Clinic. Draw a class diagram that includes a phy-
                  sician, a patient, an appointment, and a patient’s bill. Do not get the insurance company involved.
                8.  Use UML to draw examples of the four structural relationships for the Kirt Clinic.
                9.  Write a sample use case scenario for a patient who sees a physician in the Kirt Clinic.
               10.  Woody’s Supermarket, a small chain of grocery stores, is building a website to allow customers to place
                  orders for groceries and other items. The customer places a Web order, the customer master is updated,
                  and an order record is created. The order prints at a local store, and store employees pick the goods
                  from the shelves. The customer is then sent an email notification that his or her order is ready. When
                  the customer picks up the order, frozen goods, chilled products, and other items are assembled. Draw
                  an activity diagram showing the customer using the website to place an order, verification of the order,
                  order confirmation, order details sent to the local store, and a customer email sent to the customer.
               11.  Sludge’s Auto (refer to Chapter 12) is as an auto parts recycling center that is using Ajax on websites
                  for customers to browse for parts. Ajax allows the website to obtain data from the server while the user
                  stays on the original web page. The customer needs to know the make, model, and year of a car as well
                  as the part. If the part is in stock, the description, condition of the part, price, and shipping cost are dis-
                  played, with the quantity available for each condition of the part, along with a picture of the part. Draw a
                  sequence diagram using boundary, control, and entity classes for the Auto Part Query for Sludge’s Auto.
               12.  Musixscore.com is an online service providing sheet music to customers. On the “browse music”
                  web page, customers select a genre of music from a drop-down list. The web page uses Ajax to
                  obtain a list of performers, musicians, or groups that match the genre, which is formatted as a drop-
                  down list. When a selection is made from the performer’s drop-down list, the web page uses Ajax to
                  display a third drop-down list displaying all the CDs or other works of the performer. When a CD is
                  selected, the web page uses Ajax to obtain all the songs on the CD in a fourth drop-down list. The
                  viewer may make multiple selections. When the Add to Shopping Cart image is clicked, the songs
                  are added to the shopping cart. The viewer may change any of the drop-down lists to select additional
                  sheet music, and the process is repeated.
                   a.  Write a use case description for the Browse Music Score use case, representing this activity.
                   b.   Draw a sequence diagram using boundary, control, and entity classes for the Musixscore web page.
                   c.   Write a list of the messages, names, and the parameters, along with the data types, that would be
                    passed to the classes and the values (with data types) that are included with the return message.
                    Make any assumptions you need to make about the data.
                   d.   Create a class diagram for the entity classes used in the sequence diagram.


              Selected Bibliography

              Beck, K., and W. Cunningham. “A Laboratory for Teaching Object-Oriented Thinking,” OOPSLA ‘89
                  http://c2.com/doc/oopsla89/paper.html. Last accessed November 12, 2012.
              Bellin, D., and S. Suchman Simone. The CRC Card Book. Indianapolis: Addison-Wesley Professional, 1997.
              Booch, G., I. Jacobson, and J. Rumbaugh. The Unified Modeling Language User Guide, 2nd ed.
                  Indianapolis: Addison-Wesley Professional, 2005.
              Cockburn, A. Writing Effective Use Cases. Boston: Addison-Wesley Publishing Co., 2001.
              Dobing, B., and J. Parsons. “How UML Is Used.” Communications of the ACM, Vol. 49, No. 5, May
                  2006, pp. 109–113.
              Fowler, M. UML Distilled: A Brief Guide to the Standard Object Modeling Language, 3rd ed.
                  Indianapolis: Addison-Wesley Professional, 2003.
              Kulak, D., and E. Guiney. Use Cases: Requirements in Context, 2nd ed. Indianapolis: Addison-Wesley
                  Professional, 2004.
              Miles, R., and K. Hamilton. Learning UML 2.0. Indianapolis: O’Reilly Media, Inc., 2006.
              Sahraoudi, A. E. K., and T. Blum. “Using Object-Oriented Methods in a System Lifecycle Process
                  Model.” ACM SIGSOFT Software Engineering Notes, Vol. 28, No. 2, March 2003.



              The CPU Case Episode and accompanying student files are available online at www.pearsonhighered.com/
              kendall.
   319   320   321   322   323   324   325   326   327   328   329