Question: (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
Get step-by-step solutions from verified subject matter experts
