Question: 2- Suppose that a payment module(class) is accessed directly by both customer and bank system as shown in the figure below. The customer needs to

 2- Suppose that a payment module(class) is accessed directly by both

2- Suppose that a payment module(class) is accessed directly by both customer and bank system as shown in the figure below. The customer needs to make payment, and the bank needs to validate payment: (4 marks) Bank a Customer emal:char -firstName : string lastName : string Payment paymentNo: int +makePayment(paymentNo) validatePayment(paymentNo) a. Mention two SOLID principles that are violated in the mentioned design. b. Create a partial class diagram and redesign the payment module with the associated actors (customer and bank system) in a way that it meets these design principles. Instructions: - You may use any tool to design the required class diagrams, however visual paradigm is highly recommended. Handwritten answers are not accepted. - You are required to submit your answer as a Word document. Do not submit your answer as Zip file. This is an individual assignment. Any two identical answers will be graded ZERO automatically. Assignments submitted after due date will NOT be accepted

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!