Friday, April 2, 2010

Exercise 13: Shopping cart specifications

Develop the class diagram for the following shopping cart specifications: A shoppingCart object is associated with only one creditCard and customer and to items in itemToBuy object. Persistent customer information such as name, billing address, delivery address, e-mail address and credit rating is stored in the customer object. The credit card object is associated with a frequentShopper discount object, if the credit rating for the customer is good. The customer can make or cancel orders as well as add and delete items to the shopping cart product. The credit card object contains the secure method for checking that the charge is authentic.

I took a look around the web and found a useful application called UMLet (http://www.umlet.com/) that is very useful for drawing class diagrams. There quite a few others out there from what I saw, but I just picked UMLet as it is the first one I came across. This means that you don't have to wrestle with the drawing feature in MS Word or Vision to make your class diagram. Using this neat little application I was able to knock together a class diagram in about ten minutes. Anyways, my class diagram for a shoppingCart object is below.



No comments:

Post a Comment