Mudanças entre as edições de "Sistemas Operacionais e Introdução a Programação - atividades extraclasse 2010-1"
Ir para navegação
Ir para pesquisar
Linha 18: | Linha 18: | ||
* Uma espiral | * Uma espiral | ||
Como atividade complementar: [http://armorgames.com/play/2205/light-bot Light Bot] | Como atividade complementar: [http://armorgames.com/play/2205/light-bot Light Bot] | ||
+ | |||
+ | |||
+ | ===Respostas=== | ||
+ | * O que este código abaixo faz? | ||
+ | reset | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnleft 60 | ||
+ | } | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnright 60 | ||
+ | } | ||
+ | turnleft 120 | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnleft 60 | ||
+ | } | ||
+ | forward 70 | ||
+ | turnright 60 | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnleft 60 | ||
+ | } | ||
+ | forward 70 | ||
+ | turnright 60 | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnleft 60 | ||
+ | } | ||
+ | forward 70 | ||
+ | turnright 60 | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnleft 60 | ||
+ | } | ||
+ | forward 70 | ||
+ | turnright 60 | ||
+ | repeat 6 | ||
+ | { | ||
+ | forward 70 | ||
+ | turnleft 60 | ||
+ | } | ||
==Semana 2== | ==Semana 2== |
Edição das 04h53min de 8 de abril de 2010
Lógica de Programação
Semana 1
- Para hoje, bastam as seguintes instruções:
- reset
- forward NÚMERO
- turnright NÚMERO
- turnleft NÚMERO
- Para hoje, bastam as seguintes instruções:
- Páginas da apostila: 8 a 11.
Atividades-problema
Com esse conjunto de instruções, desenhe:
- Um triângulo equilátero.
- Um triângulo isósceles.
- Um triângulo escaleno.
- Um hexágono.
- Um octógono.
- 7 hexágonos interligados (um central e seis periféricos).
- Uma espiral
Como atividade complementar: Light Bot
Respostas
- O que este código abaixo faz?
reset repeat 6 { forward 70 turnleft 60 } repeat 6 { forward 70 turnright 60 } turnleft 120 repeat 6 { forward 70 turnleft 60 } forward 70 turnright 60 repeat 6 { forward 70 turnleft 60 } forward 70 turnright 60 repeat 6 { forward 70 turnleft 60 } forward 70 turnright 60 repeat 6 { forward 70 turnleft 60 } forward 70 turnright 60 repeat 6 { forward 70 turnleft 60 }