summaryrefslogtreecommitdiff
path: root/algo1w4d2/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w4d2/readme.md')
-rw-r--r--algo1w4d2/readme.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/algo1w4d2/readme.md b/algo1w4d2/readme.md
new file mode 100644
index 0000000..04d37ea
--- /dev/null
+++ b/algo1w4d2/readme.md
@@ -0,0 +1,55 @@
+# week 4 deel 2
+
+## opdracht 1
+
+output:
+```bash
+$ ./main
+tijd: 0
+ kassa 1:
+ kassa 2:
+ kassa 3:
+
+tijd: 1
+ kassa 1:
+ kassa 2:
+ kassa 3: * *
+
+tijd: 2
+ kassa 1: * *
+ kassa 2: * *
+ kassa 3: * * * * * *
+
+tijd: 3
+ kassa 1: * * * * * * * * * *
+ kassa 2: *
+ kassa 3: * * * * * * *
+
+tijd: 4
+ kassa 1: * * * * * * * * * * * * * * *
+ kassa 2: * *
+ kassa 3: * * * * * * * * * * * *
+```
+etc.
+
+## opdracht 2
+
+```bash
+$ cat input.txt
+I(){}E{}[]
+D{I(){}}W([])
+D{I(){}I(){}I(){}}W([])
+E{I(){}}W([])
+
+I{[}]
+D{}I(){}
+$ ./main < input.txt
+line 1 is valid
+line 2 is invalid
+line 3 is invalid
+line 4 is invalid
+
+line 6 is invalid
+line 7 is invalid
+$
+```