Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A pattern catalog consists of the following design patterns: Strategy Composite Adapter Publisher - Subscriber Abstract Factory Master - Slave Wolf - Sheep Proxy Match
A pattern catalog consists of the following design patterns:
Strategy
Composite
Adapter
PublisherSubscriber
Abstract Factory
MasterSlave
WolfSheep
Proxy
Match each of the following scenarios with the pattern from this catalog that is best suited to model it
a A controller needs to react to button clicks.
b A programming language provides a collection of simple commands such as add and multiply, but also provides a block command that allows programmers to group multiple commands into a single, sequentially executed command. For example: add; mul; add; add
c An executive needs a secretary to screen calls. The secretary needs and secretary to prescreen calls. The secretarys secretary needs a secretary to preprescreen calls.
d A word processor provides a template for assembling text books title page, table of contents, chapters, references, index. But not the actual content.
e A military drone needs the ability to quickly change its mission from attack to rescue to observe etc.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started