Home / Expert Answers / Computer Science / create-an-updated-class-diagram-with-the-information-presented-in-the-sequence-diagram-for-the-o-pa452

(Solved): create an updated class diagram with the information presented in the sequence diagram for the O ...



create an updated class diagram with the information presented in the sequence diagram for the “Order Payment” use case.

the class diagram to update:

the Sequence Diagram for Order payment-

title Order Payment

Customer --> Database: Select book
Database --> GUI: Retrieve total amount
GUI --> Customer: Display amount

Customer --> GUI: Place Order
GUI --> PaymentProcessor: Verify Payment

alt Payment Verified?
opt [Subsequence: Charge Payment & Save Information]
PaymentProcessor -> Bank: Charge Payment
Bank --> PaymentProcessor: Confirmation
PaymentProcessor -> Database: Save Order and Account Information
Database --> PaymentProcessor: Order and Account Confirmation
end

loop for each item in order
PaymentProcessor --> Database: Update Inventory
Database --> PaymentProcessor: Inventory Update Confirmation
end loop

PaymentProcessor --> GUI: Sign Out Customer, Empty Cart
GUI --> Customer: Display Order Number

else Payment Not Verified
PaymentProcessor --> GUI: Display Payment Error Message
GUI --> Customer: Display Error Message
end

WILL UPVOTE IF PROVIDED GOOD EXPLANATION AND DIAGRAM. THANKS



We have an Answer from Expert

View Expert Answer

Expert Answer



Based on the information provided in the sequence diagram, here's an updated class diagram represent...
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe