summaryrefslogtreecommitdiff
path: root/oop/10-point-of-sale/docs
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-03-15 15:49:05 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-03-15 15:49:05 +0530
commit7c40224d014257f9112da2ffceda3a357beb69a9 (patch)
tree236c4cf5befe4a88a4872b16b6c213a3788814ef /oop/10-point-of-sale/docs
parent11d647bd802e014bc941ebda7889fe9978807478 (diff)
Added OOP/POS requirements, analysis and design docs and diagrams
Diffstat (limited to 'oop/10-point-of-sale/docs')
-rw-r--r--oop/10-point-of-sale/docs/01-requirements.txt19
-rw-r--r--oop/10-point-of-sale/docs/02-analysis-domain-model.pngbin0 -> 150756 bytes
-rw-r--r--oop/10-point-of-sale/docs/03-design-class-diagram.pngbin0 -> 45999 bytes
3 files changed, 19 insertions, 0 deletions
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
--- /dev/null
+++ b/oop/10-point-of-sale/docs/02-analysis-domain-model.png
Binary files 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
--- /dev/null
+++ b/oop/10-point-of-sale/docs/03-design-class-diagram.png
Binary files differ