The process of fixing code...
Debug
A problem with your code...
Bug
An instruction you give to Karel...
Command
Makes Karel go forward one space... Write it out
DAILY TRIPLE
move();
A function that is called when you click run...
Start Function
Place ball in Karel... (Write it out)
putBall();
A way to repeat code...
Loops
Which ends a Karel command? (Write it out)
What is the purpose for indenting code?
Keep things organized.
Easier to spot errors.
Easier to read.
Executes a command one time if it is true.
If Statement
How many times do you define the start function?
One Time
Repeats code for a specific number of times...
For Loop
A way to teach Karel a new command...
Function
How do you start a comment? (Write it out)
//
Which is written correctly?
putBall()
getTennisBalls();
turnRight())
turnLeft;{
getTennisBalls();
Fix the errors (4) in this function... (DAILY DOUBLE)
function Main () {
for (let i=1; i<4; i+); {
putBall())
}
}
function main () {
for (let i=0; i<4; i++) {
putBall();
}
}
How many times do you call a main function?
One Time
A message of code that explains what is going on...
Comment
Repeats code as long as something is true...
While Loop
Write a command that has Karel make a left hand turn...
turnLeft();
Start with lower case then use upper case...
Camel Case
What do computer programs do?
Communicates and gives instructions to a computer.
Breaks code into smaller parts and creates new commands...
Functions
What is a variable?
Stores a value, the value can change, and it is an easier way to write code.
(Answer at least one)
If there are multiple conditions in an If/Else Statement, how it is written?
If (.....) {
} ________ {
} else {
}
Elif