From 7c40224d014257f9112da2ffceda3a357beb69a9 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 15 Mar 2026 15:49:05 +0530 Subject: Added OOP/POS requirements, analysis and design docs and diagrams --- oop/10-point-of-sale/docs/01-requirements.txt | 19 +++++++++++++++++++ .../docs/02-analysis-domain-model.png | Bin 0 -> 150756 bytes .../docs/03-design-class-diagram.png | Bin 0 -> 45999 bytes 3 files changed, 19 insertions(+) create mode 100644 oop/10-point-of-sale/docs/01-requirements.txt create mode 100644 oop/10-point-of-sale/docs/02-analysis-domain-model.png create mode 100644 oop/10-point-of-sale/docs/03-design-class-diagram.png diff --git a/oop/10-point-of-sale/docs/01-requirements.txt b/oop/10-point-of-sale/docs/01-requirements.txt new file mode 100644 index 0000000..86e497a --- /dev/null +++ b/oop/10-point-of-sale/docs/01-requirements.txt @@ -0,0 +1,19 @@ +A POS needs to be created. A customer would come to the cashier and the cashier would take items from the cart and enter the item ids to the system. The system would ask the number of items to be purchased. The system would create a bill and add line items to it. At the end, the total should be calculated and the tax should be added. The system would ask to enter the amount of money the customer would give. The system should print the entire bill with the balance to be given back to the customer. + +POS (system) + +Customer + +Cashier + +Item + itemId + +LineItem + quantity + +Bill + total + taxAmount + moneyGivenByCustomer + balanceToBeGivenToCustomer diff --git a/oop/10-point-of-sale/docs/02-analysis-domain-model.png b/oop/10-point-of-sale/docs/02-analysis-domain-model.png new file mode 100644 index 0000000..26396e4 Binary files /dev/null and b/oop/10-point-of-sale/docs/02-analysis-domain-model.png differ diff --git a/oop/10-point-of-sale/docs/03-design-class-diagram.png b/oop/10-point-of-sale/docs/03-design-class-diagram.png new file mode 100644 index 0000000..c4da864 Binary files /dev/null and b/oop/10-point-of-sale/docs/03-design-class-diagram.png differ -- cgit v1.2.3