Functions are used to teach Karel a word or command. Using functions allow us to break down our program into smaller pieces and make it easier to understand.
Help students understand what functions are for and how using them improves programs.
Functions are used to teach Karel a word or command. Using functions allow us to break down our program into smaller pieces and make it easier to understand.
Students will be able to…
* Create their own functions
* Utilize functions to create higher order programs that go beyond the basic toolbox of Karel commands
* Debug programs that use functions incorrectly
All programs start by ?calling? the start function.
Students gain a deeper understanding of functions. Students can explain the importance of writing readable code, and can analyze and compare the readability of different programs. Students can use the start function to make their programs more readable.
Top down design and Decomposition are the processes of breaking down a program into functions into smaller parts to avoid repeated code and make our program more readable.
Students will be able to…
* Break a large problem down into smaller pieces
* Write methods to solve each smaller problem
* Solve a complicated problem using Top Down Design
* Identify good and poor decomposition