Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(10 marks) (b) Given the following sequence diagram, comment on it in terms of coupling and cohesion and whether it is in the spirit of
(10 marks) (b) Given the following sequence diagram, comment on it in terms of coupling and cohesion and whether it is in the spirit of object-oriented design. an Order an Order Line a Product aCustomer calculate Price getQuantity lifeline participant getProduct I 1 found message aProduct activation getPricing Details return calculateBasePrice self-call message calculate Discounts getDiscountInfo 1 (7 marks) (c) Provide an alternative diagram to that in part (b) and outline how it improves on concerns about coupling and cohesion. (8 marks) (10 marks) (b) Given the following sequence diagram, comment on it in terms of coupling and cohesion and whether it is in the spirit of object-oriented design. an Order an Order Line a Product aCustomer calculate Price getQuantity lifeline participant getProduct I 1 found message aProduct activation getPricing Details return calculateBasePrice self-call message calculate Discounts getDiscountInfo 1 (7 marks) (c) Provide an alternative diagram to that in part (b) and outline how it improves on concerns about coupling and cohesion. (8 marks)
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