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
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...
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa4b86813-5baa-4b0a-a247-9ca8d00e632e%2F9070bbc6-e35a-450e-9267-930a4f7813fe%2F9ezk4h3_processed.jpeg&w=3840&q=75)
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa4b86813-5baa-4b0a-a247-9ca8d00e632e%2F9070bbc6-e35a-450e-9267-930a4f7813fe%2Fg177p9ee_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY