Which design pattern is a good choice for the expansion

Assignment Help Computer Engineering
Reference no: EM133565568

Case Study: A retailer system manages a number of ProductIF objects for sale. Each ProductIF is either a table or a chair. The same type of product objects, such as tables, are allowed to have a different price tag due to minor cosmetic issues. The way to set the MSRP price for a product is through the setPrice method. There is also a getPrice method to return the MSRP of a product. For the purpose of information hiding and software reuse, the price attribute is preferred to be private but made sharable to all ProductIF objects. Based on the description for the existing code above, you are asked to expand the system for the customer to see MSRP plus tax based on the living state. One major requirement is not to modify the existing code. Conceptually, the new design allows the getPrice method of the customer's received ProductIF object to show the sum of MSRP and tax from the product of interest and living state.

Question:

  • Which design pattern is a good choice for the expansion?
  • Draw the UML class diagram for the whole system design that includes required classes, interfaces, methods, attributes and relationships.

 

Reference no: EM133565568

Questions Cloud

Identify at least two ethical principles at conflict : Identify at least two ethical principles at conflict in this case. Discuss the publicity this case generated "did it help or hurt the case?
How do you feel the training will help adjust to new systems : How do you feel the training will help adjust to the new systems? How hard is it to look up terminology for the system being used?
Discuss how performance assessment differ from other types : ED 400- Discuss how performance assessment differ from other types of assessment? What are the benefits of using performance assessment? What are disadvantages?
Primarily for nursing and healthcare research : Walker and Avant's Method were established by Kay Walker and Kay Avant in 1983, primarily for nursing and healthcare research.
Which design pattern is a good choice for the expansion : Which design pattern is a good choice for the expansion? Draw the UML class diagram for the whole system design that includes required classes, interfaces
What application/software/infrastructure should have been : What vulnerabilities were exploited? What application/software/infrastructure should have been patched? What was/were the Impacts of the security breach
How a real-life consumer packaged goods company dealt : How a real-life consumer packaged goods company dealt with disruption when a natural disaster threatened their ability to conduct business
How many domain controllers would you need : How many domain controllers would you need? Where would they be placed? Why? What plays a role in determining this? Would you use a Read Only Domain Controller
How do you feel the observation went : EDU 216- How do you feel the observation went? Did you encounter any issues or situations that you did not know how to handle? If so, explain.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd