Karel understands the following commands:
move() Move forward one square
turnLeft() Turn 90 degrees to the left
pickBeeper() Pick up a beeper from the current square
putBeeper() Put down a beeper on the current square
These commands are - METHODS
We are calling/invoking METHOD when we want Karel to do something.
Karel responds and takes some actions.
Algorithm is recipe for doing something and the program/software is something valid syntacticaly
according to the rules of the language .
DOCOMPOSITION
If given step is not primitive, we have to refine until it becomes primitive
We start at high level and break things down
-- Top down design (start at the highest level and go down to primitive tasks)
-- Bottom up design (pradedama nuo primityviu uzduociu kurias kompiuteris supranta tiesiogiai ir ivykdo)