Presentation is loading. Please wait.

Presentation is loading. Please wait.

EasyCode Foundations Vocabulary Terms.

Similar presentations


Presentation on theme: "EasyCode Foundations Vocabulary Terms."— Presentation transcript:

1 EasyCode Foundations Vocabulary Terms

2 computer program --A set of instructions which are simple tasks provided to the computer

3 statement --An element which expresses some action to be carried out The instructions in a computer program are statements

4 functions -- The set of actions that an object can do

5 object --Everything in the scene we can interact with Ex: bush, bridge, banana, turtle

6 argument -- The input that we add to the function (the action)

7 step 10 statement function argument

8 syntax -- The rules that are used to write and read programming languages

9 simple loop --A sequence of instructions that repeats a specified number of times

10 dot 100.times -> stepUp indentation function

11 variable -- stores data for use when needed x= 20
identifier (can be any letter or word) value

12 distanceTo --Function used with an object. Computer gives “return value” (computes distance) Ex: distanceTo banana Can be combined with variables Ex: x = distanceTo banana step x

13 array -- A group of objects, which share a common name and are usually of the same type.

14 element --Each object in an array

15 index --The number used to tell which element in an array. Starts with 0.

16 array indexing If there are 5 bananas on the screen the first banana is: bananas[0] name of the array Index will be 0,1,2,3 or 4 brackets

17 for loop --repeating an action to all the elements in an array individually Has a loop variable and array

18 “for loop” example From challenge #56: The 6 bananas belong to an array called bananas. for (this tells the computer that there is a "for" loop here) b (definition of the loop variable) in (part of the "for" loop) bananas (the name of the array) turnTo b (b is the loop variable that refers to an object in the array) step distanceTo b (b is the loop variable that refers to an object in the array) for b in bananas turnTo b step distanceTo b

19 iteration --the process of performing a function to every object in a collection If there is a collection of turtles, you would say that you iterate over the collection of turtles. Ex: for t in turtles t.step 10

20 nested loops --a loop inside of a loop
When using a nested for loop, the inner loop is fully executed over and over. For every element of the outer loop, the inner loop is executed from start to end, then the whole process repeats for the next element in the other loop, and so on. Challenge 70


Download ppt "EasyCode Foundations Vocabulary Terms."

Similar presentations


Ads by Google