Question: Question No. 03 [30 Marks] You are provided with the following three scenarios. For each scenario you must choose what creational design pattern should be

 Question No. 03 [30 Marks] You are provided with the following

Question No. 03 [30 Marks] You are provided with the following three scenarios. For each scenario you must choose what creational design pattern should be used. You are also required to provide justification and detailed description of the proposed design pattern Scenario 01 Imagine you are building a software application that includes a logging module that writes log messages to a file. The logging module needs to ensure that not multiple instances of the logger are created, because creating multiple instances could lead to conflicts when writing to the log file. Scenario 02 You are building a software application that allows users to create and edit documents. The application supports several types of documents, such as word processor documents, spreadsheet documents, and presentation documents. You want to implement a system that allows users to easily create new instances of different types of documents. Scenario 03 You are working on a project for a company that produces vending machines. The company has two manufacturing plants, one in North America and one in Europe, and each plant produces separate vending machines for different types of products: snacks, drinks, and ice cream. Initially, the company only produced vending machines for North American customers, so the plant in North America was set up to produce all three types of vending machines. However, as the company started to expand into the European market, they set up a new plant in Europe to produce vending machines specifically for European customers. In future company has plans to expand its market to more regions e.g middle east, China and sub content and more

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!