Assignment
Assignment 1
Completion requirements
PART 1
Example: Eating Cereal
1. Get a cereal bowl from the cupboard.
2. Get a spoon from the drawer.
3. Get the cereal box from the cupboard.
4. Get a container of milk from the fridge.
5. Fill the cereal bowl with cereal.
6. Our milk in to the bowl.
7. Eat your cereal.
Look at what you wrote in PART 1 and convert the English statements to pseudo-code. Each example is worth 4 marks. You must show a definite movement from writing out the instructions in English towards pseudo-code. This means that each line of pseudo-code will look different from the original line.
1. Get bowl
2. Get spoon
3. Get cereal
4. Get milk
5. Fill bowl
6. Add milk
7. Eat
How to Submit your assignments:
When you wrote your steps in the previous assignment you relied on English. The next step in writing algorithms more simply is to use pseudo-code. Pseudo means 'sort-of' so it is not code, but it is close to code. If you watch this video then you will get a better ides of what to do. The examples are for real life situations so they are a little complicated. Don't worry about the details. Use it as a general overview.
(5% of your Final Grade)
You saw several examples of algorithms for tasks you perform in everyday life in the video, like grocery shopping or making a grill cheese sandwich. Your assignment is to pick 3 tasks you perform in your daily life and write step by step algorithms, in point form, for each. Each algorithm is worth 4 marks.Example: Eating Cereal
1. Get a cereal bowl from the cupboard.
2. Get a spoon from the drawer.
3. Get the cereal box from the cupboard.
4. Get a container of milk from the fridge.
5. Fill the cereal bowl with cereal.
6. Our milk in to the bowl.
7. Eat your cereal.
PART 2:
(5% of your Final Grade)Look at what you wrote in PART 1 and convert the English statements to pseudo-code. Each example is worth 4 marks. You must show a definite movement from writing out the instructions in English towards pseudo-code. This means that each line of pseudo-code will look different from the original line.
1. Get bowl
2. Get spoon
3. Get cereal
4. Get milk
5. Fill bowl
6. Add milk
7. Eat
How to Submit your assignments:
When you wrote your steps in the previous assignment you relied on English. The next step in writing algorithms more simply is to use pseudo-code. Pseudo means 'sort-of' so it is not code, but it is close to code. If you watch this video then you will get a better ides of what to do. The examples are for real life situations so they are a little complicated. Don't worry about the details. Use it as a general overview.
Watch this video to help you with your assignment: