inicio

10
Inicio Fim Exercício 1: Leia(raio) area pi * pot (raio, 2) pi 3.14 Escreva(area)

Upload: kali

Post on 09-Jan-2016

24 views

Category:

Documents


0 download

DESCRIPTION

Exercício 1:. Inicio. pi  3.14. Leia(raio). area  pi * pot (raio, 2). Escreva(area). Fim. Exercício 2:. Inicio. Leia(numero). centena  (numero div 100) dezena  (numero div 10) unidade  ((centena*100)+(dezena*10)) - numero. Escreva(unidade). Fim. Exercício 3:. Inicio. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Inicio

Inicio

Fim

Exercício 1:

Leia(raio)

area pi * pot (raio, 2)

pi 3.14

Escreva(area)

Page 2: Inicio

Inicio

Fim

Exercício 2:

Leia(numero)

centena (numero div 100)dezena (numero div 10)

unidade ((centena*100)+(dezena*10)) - numero

Escreva(unidade)

Page 3: Inicio

Inicio

Fim

Exercício 3:

Leia(CT, QLA, QP)

C (QP / QLA)AF (CT – QLA) * C

Escreva(C, AF)

Page 4: Inicio

Inicio

Exercício 4:

Leia(dia, mes)

(mes = 1)

Fim

Escreva(“Capricórnio”)

(dia <= 20)Verdade

Verdade

Escreva(“Aquário”)

Falso

Falso

Observação: Repete a estrutura acima mais 11 vezes, até fechar a definição do algoritmo e chegar no Fim.

Page 5: Inicio

Inicio

Exercício 5:

Leia(idade)

(idade < 16)

Fim

Escreva(“Eleitor Obrigatório”)

(idade >= 18) e(idade <= 65)

Falso

Verdade

Escreva(“Eleitor Facultativo”)

Falso

Verdade

Escreva(“Não Votante”)

Page 6: Inicio

InicioExercício 6:

Leia(mes)

(mes)

Fim

Verdade

Escreva(“Janeiro”) Escreva(“Fevereiro”)

1 2Observação: Repete a estrutura ao lado para cada um dos valores do “caso”, definido no algoritmo.

Page 7: Inicio

Inicio

Exercício 7:

(F <= 150)

Fim

Escreva(C)Verdade

F 50

C 5 / 9 (F – 32)F F + 1

Falso

Page 8: Inicio

InicioExercício 8:

(A <= 50)

Fim

Verdade

A 1B 1H 0

H H + (A / B) A A + 1B B + 2

Falso

Escreva(H)

Page 9: Inicio

InicioExercício 9:

(A <= 100)

Fim

Verdade

A 1B 1S 0

A A + 1B A * A

Falso

Escreva(S)

(A MOD 2)

S S – (A / B)

Verdade

S S + (A / B)

Falso

Page 10: Inicio

Inicio

Exercício 10:

Fim

ano 0joao 150lucas 110

Falso

Escreva(ano)

(joao >= lucas)joao joao + 2

lucas lucas + 3ano ano + 1

Verdade