0% found this document useful (0 votes)
40 views3 pages

Name: Nazmul Hasan Shaikot ID: 1812455642 Section: 02

The document contains the answers to exam questions from a student named Nazmul Hasan Shaikot with ID 1812455642 in Section 02. For the first question about designing a stock management subsystem, the student proposes using the Template, Singleton, and Observer patterns. For the second question about a data analytics subsystem, the student proposes using the Strategy and Composite patterns.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

Name: Nazmul Hasan Shaikot ID: 1812455642 Section: 02

The document contains the answers to exam questions from a student named Nazmul Hasan Shaikot with ID 1812455642 in Section 02. For the first question about designing a stock management subsystem, the student proposes using the Template, Singleton, and Observer patterns. For the second question about a data analytics subsystem, the student proposes using the Strategy and Composite patterns.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Name: Nazmul Hasan Shaikot

ID: 1812455642
Section: 02

Q1a. What design pattern(s) will you use to design the subsystem described in
lines 5-9.? Choose a maximum of three patterns (working together) for your
solution.

Ans: The design patterns I will use for the subsystem are Template pattern,
Singleton pattern and Observer pattern. Template pattern will handle all of the
tasks which are repeated like add and remove share. Singleton pattern will be
used to create an instance of the stock class. Observer pattern will notify the user
about the limitation of share.
Q1b. Draw a high-level UML class diagram of the subsystem using the design
pattern(s) you named in your answer to Q1a.

Ans:
Q2a. What design pattern(s) will you use to design the subsystem described in
lines 16-20. Choose a maximum of three patterns (working together) for your
solution.

Ans: We can use Strategy and Composite pattern for this solution. Strategy
pattern can handle the buy or metrics query operations at runtime. And the
composite pattern will help to compose objects.

Q2b. Draw a high-level UML class diagram of the subsystem using the design
pattern(s) you named in your answer to Q2a.

Ans:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy