Let's assume that you are a member of a sports team, and your team is participating in a tournament. Your team needs to play against multiple opponents throughout the tournament. Before each of these matches, as per the rules of the game, the captains of the two sides must do a coin toss. If your team does not have a captain, you need to elect someone as a captain. Prior to each game and each coin toss, you may not repeat the process of electing a captain if you already nominated a person as a captain for the team. Basically, from every team member's perspective, there should be only one captain of the team. According to this scenario, which of the following design pattern you choose when designing Captain class ? I) Template Method II) Singleton III) Strategy IV) None of the mentioned а) || b) O III c) d) O IV

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter17: Markov Chains
Section: Chapter Questions
Problem 12RP
icon
Related questions
Question
100%
7- Let's assume that you are a member of a sports team, and your team is participating in a
tournament. Your team needs to play against multiple opponents throughout the tournament.
Before each of these matches, as per the rules of the game, the captains of the two sides must
do a coin toss. If your team does not have a captain, you need to elect someone as a captain.
Prior to each game and each coin toss, you may not repeat the process of electing a captain if
you already nominated a person as a captain for the team. Basically, from every team
member's perspective, there should be only one captain of the team.
According to this scenario, which of the following design pattern you choose when designing
Captain class ?
I) Template Method
II) Singleton
III) Strategy
IV) None of the mentioned
a) O||
b) O III
c) O I
d)
IV
Transcribed Image Text:7- Let's assume that you are a member of a sports team, and your team is participating in a tournament. Your team needs to play against multiple opponents throughout the tournament. Before each of these matches, as per the rules of the game, the captains of the two sides must do a coin toss. If your team does not have a captain, you need to elect someone as a captain. Prior to each game and each coin toss, you may not repeat the process of electing a captain if you already nominated a person as a captain for the team. Basically, from every team member's perspective, there should be only one captain of the team. According to this scenario, which of the following design pattern you choose when designing Captain class ? I) Template Method II) Singleton III) Strategy IV) None of the mentioned a) O|| b) O III c) O I d) IV
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Intelligent Machines
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole