summaryrefslogtreecommitdiff
path: root/oop
diff options
context:
space:
mode:
Diffstat (limited to 'oop')
-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