Essays.club - Ensayos gratis, notas de cursos, notas de libros, tareas, monografías y trabajos de investigación
Buscar

Information and Cmmunication of Technology

Enviado por   •  16 de Diciembre de 2017  •  650 Palabras (3 Páginas)  •  462 Visitas

Página 1 de 3

...

Command turnoff ():

The turnoff () statement we use to instruct karel stop performing any work that is designated in the instructions above, it is the end of execution.

Basic Commands Karel the Robot.

There are a variety of commands that are used in programming the Robot Karel, this section will describe only those who use to develop learning activities.

Command move ():

The order or instruction move () serves to advance the Robot Karel one block on the street or avenue in the direction you are facing.

Command turnLeft ():

With the turnleft () instruction, we make karel robot turn 90 degrees to the left, ie counterclockwise to clockwise, we must note that we refer to the left of karel, which means that if karel this eastward, and we order "turnleft ()" then he will turn his left, to let him looking northwards. To turn right, we write three times the order or instruction turnleft ().

Command putbeeper ():

The putbeeper () command we use to instruct karel to leave a spin or buzzer on the corner where you are standing, but we must ensure that karel has at least a spin in his backpack tops, otherwise mark a mistake and task end "Abnormally", ie without success.

If we want to stop two spins, we write twice putbeeper () statement.

Command pickBeeper ():

The pickBeeper () instruction, used to instruct karel lift a spin or buzzer corner where this stopped, but we must ensure that Karel is in a corner where there is at least one spin or buzzer, what otherwise mark a mistake, and your task finished "Abnormally", ie, without success.

Each spin raising Karel stores it in his backpack, no need to lift two spins, then we write twice "pickBeeper ()".

Command turnoff ():

The turnoff () statement we use to instruct karel stop performing any work that is designated in the instructions above, it is the end of execution.

In this activity we showed you different type of commands in Karel the Robot , we explain in detail each one of the basic commands its to useful because without them we can operate karel the robot.[pic 6]

[pic 7]

Book Information and Communication of Technology 2 UANL.

...

Descargar como  txt (4.3 Kb)   pdf (44.9 Kb)   docx (12.4 Kb)  
Leer 2 páginas más »
Disponible sólo en Essays.club