Wednesday, May 19, 2010

Exercise 12

Examine the Use Case in Figure 4 and explain the MVC architecture of the online bookstore (the model the view and controllers) needed to Lookup Books and Add to Shopping Cart.

MVC (Model-View-Control) architecture is a widely used approach to decouple an applications logic into separate objects. For the online bookstore, there will be required a number of objects to complete the use cases. The MVC architecture of the book store is below:

Figure1.(msdn ,n.d.). MVC for Shoppingcart


Customers input search strings in the Book Search page. The Book Search Controller passes the searching criteria to Lookup Books for processing and redirects the display to Book Search Result page. While rendering of the view, Model will be requested to display the search result.

In the shopping cart, customers input books information in the Add to Shopping Cart page. The Add to Shopping Cart Controller passes the book information to Add to Shopping Cart for processing and redirects the display to Shopping Cart Result page. While rendering of the view, Model will be requested to display the result.

Reference

Msdn.(n.d.).Model-View-Controller. Retrieved May 20, 2010 from http://msdn.microsoft.com/en-us/library/ff649643.aspx

4 comments:

  1. here are some of the fabulous benefits of blogging. By no means are these specific reasons to give it a go, but if you find yourself unsure about taking that leap of faith then maybe this will inspire you to start a blog yourself.read the full info here

    ReplyDelete
  2. How To Succeed In Business Like A Professional. To succeed in business is so important. Another important fact to remember is that being a money-driven company isn’t going to get you far either.read more

    ReplyDelete
  3. A virtual office can be a wonderful way to save both time and money while maintaining a super professional business image!read more

    ReplyDelete
  4. Running a business from home is the ideal situation for many. Not only does it afford you a higher level of flexibility, but it also means that you can cut out all of the costs that come with having an office. see here

    ReplyDelete