AF - Using Scratch to Create Algorithms Lesson

Using Scratch to Create Algorithms

Scratch is a high-level block-based visual programming language that allows users to create animations, games, and interactive stories.  You will be using the Scratch program to grasp how algorithms are used in programming. You will also access Scratch to complete future programming assignments.

Scratch can be accessed online at https://scratch.mit.edu/.  Once you access the website, the online editor can be opened by clicking on the Create option from the menu.  The image below reflects the areas of the Scratch IDE.  Details for each area and the blocks are also indicated.

 

SCRATCH IDE
Block Palette Contains different types of blocks that will be used for programming.  The blocks will be used to build the algorithm.
Code Area The area where the blocks will be arranged to form scripts.  This area is where the algorithm will be written.
Stage The area where the sprites are displayed and perform their actions.  This area reveals the execution of the algorithm.
Sprite Pane This area permits you to switch sprites and view the different scripts each sprite contains.

 

CODE EXPLANATION
codecolors.png

Motion – blocks to move and rotate sprites and variables dealing with their position or direction.

Looks – blocks to modify the way the sprite looks and blocks allowing sprites to communicate.

Sound – blocks that include sound options.

Events – blocks that add interaction.

Control – blocks that control the execution of the algorithm.

Sensing – blocks dealing with interactions with the user.  Allows sprites to ask users for input.

Operators – blocks for computation.

Variables – permits you (the user) to create new variables and lists.

My Blocks – permits you (the user) to create new blocks that can be used to define procedures.

Click here Links to an external site. to obtain more information on the Scratch IDE.

[CC BY 4.0] UNLESS OTHERWISE NOTED | IMAGES: LICENSED AND USED ACCORDING TO TERMS OF SUBSCRIPTION