Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ProcessSale (Diagram) 4) How many times does the system go through the EnterItem - Description, subtotal loop? 5) How many objects are explicitly destroyed during
ProcessSale (Diagram)
4) How many times does the system go through the "EnterItem - Description, subtotal" loop?
5) How many objects are explicitly destroyed during the ProcessSale interaction?
6) List a pair of messages that could have been represented as an exclusive conditional pair? What would the condition be?
7) According to Common UML Interaction Diagram notation as described by Larman, what is wrong with the representation of each "Create" message in the diagram?
Cashier Register MakeNewSale Create Sale mare items Loop Enterltem(itemID, quantity) Enterltem(itemlD, quantity) CreatelitemID, quantity), SaleLineltem getSubTotal(itemlD) Create subTotal getDesaription(itemID) desaription getTaxableCodelitemlD) taxableCode getPriceDesaription TaxableCodeitemlD) prion, desaription, taxableCode desaription, subTotal desaription, subTotal EndSale getTotal Create(looationCode) TaxCalaulator getTax(SaleLineltems) Totsl EnterCashPayment(amount) EnterCashPaymentamount) areate cash Tendered) Payment authorize changeDue, receipt changeDue acceptedMessage create update(salelD, subTotel, Tax) reate InventoryDB update(salelD, SaleLineltems) Process Sale Cashier Register MakeNewSale Create Sale mare items Loop Enterltem(itemID, quantity) Enterltem(itemlD, quantity) CreatelitemID, quantity), SaleLineltem getSubTotal(itemlD) Create subTotal getDesaription(itemID) desaription getTaxableCodelitemlD) taxableCode getPriceDesaription TaxableCodeitemlD) prion, desaription, taxableCode desaription, subTotal desaription, subTotal EndSale getTotal Create(looationCode) TaxCalaulator getTax(SaleLineltems) Totsl EnterCashPayment(amount) EnterCashPaymentamount) areate cash Tendered) Payment authorize changeDue, receipt changeDue acceptedMessage create update(salelD, subTotel, Tax) reate InventoryDB update(salelD, SaleLineltems) Process SaleStep 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