Skip to content
Snippets Groups Projects
Commit 74f52b5b authored by Nathan's avatar Nathan
Browse files

week 11

parent b134f380
No related branches found
No related tags found
No related merge requests found
practicals/week11/tasks.md
practicals/week11/notes.md
practicals/week11/code.py
\ No newline at end of file
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')
# 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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment