Answered step by step
Verified Expert Solution
Link Copied!

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
Publisher-Subscriber
Abstract Factory
Master-Slave
Wolf-Sheep
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 pre-screen calls. The secretary's secretary needs a secretary to pre-pre-screen 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

Does it exceed two pages in length?

Answered: 1 week ago

Question

Does it avoid typos and grammatical errors?

Answered: 1 week ago