Thursday 20 November 2014

An introduction to Pseudocode - workbook

 
 
Task 1
 
TASK 1 = How do you get Minion Stuart to draw the square? What is the sequence of actions to move?
1
Forward 100
 
2
Turn right 90 degrees
 
3
Forward 100
 
4
Turn right 90 degrees
 
5
Forward 100
 
6
Turn right 90 degrees
 
7
Forward 100
 
8
Turn right 90 degrees
 
 
You have written the algorithm to show the list of instructions and you have written it in pseudocode = numbered list of instructions.
 
 
Task 2
 
 
Can you write the Pseudocode (the sequence of actions) to move Minion Stuart through the squares to collect the bananas?
Hint : Remember to pick up the bananas not just go over them
You need to write the list of instructions in remembering to number the actions
Extension – Can you add a ‘question to say if the minion reaches a banana?
Move right 2 squares
Pick up banana
Move right 1 square
Move down 1 square
Pick up banana
Move left 2 square
Pick up banana
Move left 1 square
Move down 1 square
Move right 2 squares
Pick up bananas
Move right 1 square
Move down 1 square
Move left 3 squares
Pick up bananas
 
Task 3
 
Can you tell me in your own words what pseudo code is?
Pseudocode is complicated programming written in english
 
Please complete the following self-assessment:
Question
Found Task Easy
Completed OK
Found Task Hard
Wrote a series of actions to make a square
ü  
 
 
Wrote the pseudocode to move Minion Stuart around collecting bananas
ü  
 
 
 
 
Level
Descriptor
Tick
3
Plan a sequence of instructions and present the sequence in a list
ü  
4
Think through the algorithm and use pseudocode to plan this out allowing the final format to be read easily before programming
ü
 
 
 
 

No comments:

Post a Comment