Research on the various design patterns described in Smith (2015) and Gamma et al (1999). Describe how software development productivity can be accomplished by the application of various Creational Design Patterns.
Describe each of them
You have been tasked to carry out the development of an online shopping system for iChipKart store. You are currently working on two use cases of the system: Checkout and Compute Price. An extract of the current analysis and design of these use cases are given in Appendix A.
Consider the two software design problems described below.
Design Problem 1 (Compute Price): During the transition from Analysis to Design phase, you are designing the price computation for ease of incorporating different shipping and handling fees for different locations in the pricing policies. In your design, you also want to ensure that various policies in pricing computation are encapsulated appropriately for ease of maintenance. Suggested candidate design patterns (Proxy, Strategy, Template Method) |
Use UML diagram to design ComputePrice class. Then write the complete Java class
Design Problem 2 (Checkout): During the transition from Analysis to Design phase, you are designing the functionality of free gifts for ease of offering and withdrawing the various gifts dynamically and for ease of modifying the price ranges of free gifts. Suggested candidate design patterns (Chain of Responsibility, Composite, Iterator) |
Use UML diagram to design Checkout class. Then write the complete Java class
NOTE: Don’t forget to include relationships (use appropriate symbols, dotted arrow, diamond shape …etc)
For each of these design problems, answer the following:
a.Choose one of the suggested candidate design patterns that you think best solves the problem. Justify the applicability of your choice. You need to research on various patterns and come up with your choices and justifications.
b.Applying scientific principles identify the participants for incorporating the chosen design pattern and modify the class diagram of the use case to show their relationships.
c.Critically analyze the patterns and list two benefits of incorporating the design pattern, with respect to the problem.
Questions 1 and 2 in a written essay format. You must use the project template given on Moodle to present your answers.
Analysis and Design for Object Oriented Software
Online Shopping System for iChipKart
After a buyer adds items to the shopping cart, he/she will check out the purchased items. Items can be Books, Media (CD, hard disks, memory card etc.), TV, computing items and accessories like tablets, thumb drives etc. In order to make their business competitive, iChipKart has decided to give its buyers one of the following memorabilia items as a free gift during the period 1 October to 15 January. The following describes the policy for these gifts:
Note that iChipKart memorabilia items are not for sale.
This use case is invoked when the buyer chooses the Checkout option from the Purchase Screen.
Brief Description
This is an abstract use case which will be included in use cases such as Checkout. In this use case, the subtotal of items and total price of the items in the shopping cart will be computed and other charges such as shipping, and handling charges will be included as appropriate. The total price will constitute the following:
This abstract use case is invoked when other use cases want to compute the subtotal of items price of items in the shopping cart or compute the total price of the items in the shopping cart including the shipping, handling and other charges.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more
Recent Comments