Developing Retailing Management System for a Store
1. Identify all the nouns in the narrative and categorize them into five categories. 2. Develop a Domain Model Class Diagram for the system based on the provided information. Include multiplicities for associations.
1. - Checkout: domain class - Item: domain class - Cashier: domain class - Retailing management system: domain class - Running total: attribute - Purchase: attribute - Payment: domain class - Cash: input/output - Credit card: input/output - Card information: attribute - Validation: input/output - Payment amount: attribute - Change: output - Receipt: output 2. The Domain Model Class Diagram for the system is as follows: Checkout ------ Item - purchase - payment Retailing management system ------ Payment - paymentMethod: String - cardNumber: int - cardName: string - amount: double Cashier - checkout() - recordItem() - makePayment() - printReceipt() Explanation: In the diagram, there is a many-to-many relationship between Checkout and Item, indicating that one checkout can have multiple items and one item can appear in multiple checkouts. The Retailing management system class has associations with both Payment and Cashier, showing that it interacts with both of these classes. The Payment class includes attributes for payment method, card number, card name, and amount. The Cashier class includes methods for checkout, recording items, making payments, and printing receipts.