From 74f52b5b14dcd288969ba0e7d9daf84a482dae1f Mon Sep 17 00:00:00 2001
From: Nathan <nathan@druids.tech>
Date: Tue, 31 Oct 2023 23:55:53 +0000
Subject: [PATCH] week 11

---
 manifests/week11.md        |  3 ++
 practicals/week11/code.py  | 14 ++++++++++
 practicals/week11/notes.md |  0
 practicals/week11/tasks.md | 56 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 73 insertions(+)
 create mode 100644 manifests/week11.md
 create mode 100644 practicals/week11/code.py
 create mode 100644 practicals/week11/notes.md
 create mode 100644 practicals/week11/tasks.md

diff --git a/manifests/week11.md b/manifests/week11.md
new file mode 100644
index 0000000..1e894d4
--- /dev/null
+++ b/manifests/week11.md
@@ -0,0 +1,3 @@
+practicals/week11/tasks.md
+practicals/week11/notes.md
+practicals/week11/code.py
\ No newline at end of file
diff --git a/practicals/week11/code.py b/practicals/week11/code.py
new file mode 100644
index 0000000..99fe21f
--- /dev/null
+++ b/practicals/week11/code.py
@@ -0,0 +1,14 @@
+
+existing_username = 'dumbledore88'
+banned_username = 'MinecrAvenger'
+username = input('what is your username: ')
+
+if username == banned_username:
+    print('you are banned!')
+    exit()
+
+if username == existing_username:
+    print('login')
+else:
+    print('signup')
+
diff --git a/practicals/week11/notes.md b/practicals/week11/notes.md
new file mode 100644
index 0000000..e69de29
diff --git a/practicals/week11/tasks.md b/practicals/week11/tasks.md
new file mode 100644
index 0000000..25a6338
--- /dev/null
+++ b/practicals/week11/tasks.md
@@ -0,0 +1,56 @@
+# Week 11 Tasks for practicals
+
+From [Karl Beechers book: Computational thinking: a beginner's guide to problem-solving and programming ](https://blackboard.uwe.ac.uk/webapps/blackboard/content/listContentEditable.jsp?content_id=_9740235_1&course_id=_358486_1&mode=reset), read chapter 4.
+# Task 1 (Assessment Work!)
+## 1.1 : Flow Diagrams
+
+Create a flow diagram to describe the signup process of a user. (You may use software of your choice - or scan in pen and paper if you must! I'd recommend [draw.io](https://app.diagrams.net/).)
+
+## 1.2 : Flow Diagrams cont.
+
+Select a component of you problem based on the decompostion you did last week and use a flow diagram to start to explore a solution to this problem (or some section of the problem). Work with and discuss with your tutor in order to identify the appropriate part of the problem where needed. 
+
+If relevant you may refer to the flow diagrams from the lecture and the one above in task 1.1 as predefined processes (and you may include these flow diagrams in your portfolio report too.) 
+
+## 1.3 Write up
+
+Write up at least 150 words that describe your process of creating a flow chart and using it to describe your solution in the `# models` section of your report.
+
+## 1.4 Simulation
+
+> Note: the code you write in this section should relate to your problem and not just login (login should not be the main focus of your code - though it might be included)
+
+Convert your flow diagram to python, simulating certain actions with printed output. Add this code snippet and some written content describing it your `report.md`.
+
+The following is the example from the lecture, based on the flow diagram for user login (from the lecture), we might provide the following code:
+
+```python
+existing_username = 'dumbledore88'
+banned_username = 'MinecrAvenger'
+username = input('what is your username: ')
+
+if username == banned_username:
+    print('you are banned!')
+    exit()
+
+if username == existing_username:
+    print('login')
+else:
+    print('signup')
+```
+
+
+# Task 2 (Assessment Work!)
+
+## 2.1 Data and entity relationship diagrams
+
+Identify the data required for your chosen problem and begin to build a model of this data using an entity relationship diagram.
+
+## 2.2 Coding 
+
+Program a representation of your data in python using relevant data structures in particular dictionaries and lists (as described in the lectures). This may require further description and exploration of these python concepts. You should try to construct and print this data before considering how this may be integrated into your program
+
+## 2.3 Write up
+
+Write up your exploration of the data structures and include your entity relationship diagram in the modelling section, writing approximately 150 words.
+
-- 
GitLab