i) There are three categories of design patterns which are creational, behavioural and structural. Given the list below that has design patterns examples. Sort them into the three categories and explain your choices. a. Singleton Pattern b. Facade Pattern C. Observer Pattern d. Decorator Pattern e. Factory Pattern f. Strategy Pattern

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Task5
Vocational scenario:
You are a software developer at Space Dimensions Company. You have been
assigned to work on a project to handle a factory system.
The factory has a name, address, invoice value and products. Each product
consists of id, name and price.
The factory has several types of employees in the factory in which they all share
a name, id, email, salary and phone. The manager has department in which
he/she works in, office number and project name in which he/she is responsible
for. The workers have a position, shift and a flag that defines if the worker is a
team leader or not. The accountant has a level and a list of responsibilities.
A client has id, name, address and purchase order. The purchase order has
client linked to it, id, invoice value and products. The purchase order must have
an option to add products to the purchase which will increase the invoice value
based on the products' price.
Both the factory and client should have a pay option that will pay the invoice
value. All the employees should have an option to get their salaries based on
their profession as follow:
• Manager salary = base salary + 25% of the base salary
• Worker salary = base salary + 5% of the base salary
• Accountant salary = base salary + 10% of the base salary
Note: Employee is too general.
It has been decided to use an object oriented approach to design and implement the system.
Transcribed Image Text:Vocational scenario: You are a software developer at Space Dimensions Company. You have been assigned to work on a project to handle a factory system. The factory has a name, address, invoice value and products. Each product consists of id, name and price. The factory has several types of employees in the factory in which they all share a name, id, email, salary and phone. The manager has department in which he/she works in, office number and project name in which he/she is responsible for. The workers have a position, shift and a flag that defines if the worker is a team leader or not. The accountant has a level and a list of responsibilities. A client has id, name, address and purchase order. The purchase order has client linked to it, id, invoice value and products. The purchase order must have an option to add products to the purchase which will increase the invoice value based on the products' price. Both the factory and client should have a pay option that will pay the invoice value. All the employees should have an option to get their salaries based on their profession as follow: • Manager salary = base salary + 25% of the base salary • Worker salary = base salary + 5% of the base salary • Accountant salary = base salary + 10% of the base salary Note: Employee is too general. It has been decided to use an object oriented approach to design and implement the system.
automatically from the given code in details.
Task 5
i) There are three categories of design patterns which are creational, behavioural and
structural. Given the list below that has design patterns examples. Sort them into the
three categories and explain your choices.
a. Singleton Pattern
b. Facade Pattern
C. Observer Pattern
d. Decorator Pattern
e. Factory Pattern
f. Strategy Pattern
Transcribed Image Text:automatically from the given code in details. Task 5 i) There are three categories of design patterns which are creational, behavioural and structural. Given the list below that has design patterns examples. Sort them into the three categories and explain your choices. a. Singleton Pattern b. Facade Pattern C. Observer Pattern d. Decorator Pattern e. Factory Pattern f. Strategy Pattern
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY