> For the complete documentation index, see [llms.txt](https://favelaware.gitbook.io/favelaware/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://favelaware.gitbook.io/favelaware/8-logica-de-programacao.md).

# 8 - Lógica de Programação

Aulas e atividades da trilha Lógica de Programação.

## 📚 Aulas

* [8.1 Lógica de programação e algoritmos](/favelaware/8-logica-de-programacao/8.1-logica-de-programacao-e-algoritmos.md)
* [8.2 Aprendendo Portugol](/favelaware/8-logica-de-programacao/8.2-aprendendo-portugol.md)
* [8.3 Correlacionando com Fluxograma](/favelaware/8-logica-de-programacao/8.3-correlacionando-com-fluxograma.md)
* [8.4 Colinhas para realizar os exercícios](/favelaware/8-logica-de-programacao/8.4-colinhas-para-realizar-os-exercicios.md)

## ✍️ Atividades

{% hint style="info" %}
Cada atividade traz o enunciado e o passo a passo de entrega. A entrega é feita pelo **portal do FavelaWare**, na área do aluno.
{% endhint %}

| Atividade                                                                                                                                                                                           | Nível         | Tempo  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------ |
| [Atividade 1 - Tabela-verdade da quebrada](/favelaware/8-logica-de-programacao/atividades/atividade-1-tabela-verdade-da-quebrada.md)                                                                | Básico        | 40 min |
| [Atividade 2 - Algoritmo para pegar o ônibus certo](/favelaware/8-logica-de-programacao/atividades/atividade-2-algoritmo-para-pegar-o-onibus-certo.md)                                              | Básico        | 40 min |
| [Atividade 3 - Rachando a conta do churrasco](/favelaware/8-logica-de-programacao/atividades/atividade-3-rachando-a-conta-do-churrasco.md)                                                          | Básico        | 45 min |
| [Atividade 4 - Variáveis e operadores do time de várzea](/favelaware/8-logica-de-programacao/atividades/atividade-4-variaveis-e-operadores-do-time-de-varzea.md)                                    | Básico        | 40 min |
| [Atividade 5 - Escolhendo a estrutura certa](/favelaware/8-logica-de-programacao/atividades/atividade-5-escolhendo-a-estrutura-certa.md)                                                            | Básico        | 45 min |
| [Atividade 6 - O que este Portugol imprime?](/favelaware/8-logica-de-programacao/atividades/atividade-6-o-que-este-portugol-imprime.md)                                                             | Básico        | 40 min |
| [Atividade 7 - Condições em Portugol](/favelaware/8-logica-de-programacao/atividades/atividade-7-condicoes-em-portugol.md)                                                                          | Básico        | 1h30   |
| [Atividade 8 - Operadores lógicos em Portugol](/favelaware/8-logica-de-programacao/atividades/atividade-8-operadores-logicos-em-portugol.md)                                                        | Intermediário | 1h30   |
| [Atividade 9 - Catraca inteligente: tarifa do ônibus](/favelaware/8-logica-de-programacao/atividades/atividade-9-catraca-inteligente-tarifa-do-onibus.md)                                           | Intermediário | 1h     |
| [Atividade 10 - Laços de repetição em Portugol](/favelaware/8-logica-de-programacao/atividades/atividade-10-lacos-de-repeticao-em-portugol.md)                                                      | Intermediário | 2h     |
| [Atividade 11 - Vetores e matrizes: notas da turma e tabela do campeonato](/favelaware/8-logica-de-programacao/atividades/atividade-11-vetores-e-matrizes-notas-da-turma-e-tabela-do-campeonato.md) | Intermediário | 1h30   |
| [Atividade 12 - Conta de luz em partes: funções em Portugol](/favelaware/8-logica-de-programacao/atividades/atividade-12-conta-de-luz-em-partes-funcoes-em-portugol.md)                             | Intermediário | 1h30   |
| [Atividade 13 - Teste de mesa: o cofrinho e a sequência misteriosa](/favelaware/8-logica-de-programacao/atividades/atividade-13-teste-de-mesa-o-cofrinho-e-a-sequencia-misteriosa.md)               | Desafio       | 1h     |
| [Atividade 14 - Caça aos bugs de lógica](/favelaware/8-logica-de-programacao/atividades/atividade-14-caca-aos-bugs-de-logica.md)                                                                    | Desafio       | 1h15   |
| [Atividade 15 - Troco com o menor número de peças](/favelaware/8-logica-de-programacao/atividades/atividade-15-troco-com-o-menor-numero-de-pecas.md)                                                | Desafio       | 1h30   |
| [Atividade 16 - Fluxograma do atendimento no posto de saúde](/favelaware/8-logica-de-programacao/atividades/atividade-16-fluxograma-do-atendimento-no-posto-de-saude.md)                            | Intermediário | 1h     |
| [Atividade 17 - Fluxograma](/favelaware/8-logica-de-programacao/atividades/atividade-17-fluxograma.md)                                                                                              | Desafio       | 3h     |
| [Atividade 18 - Desafio final: o caixa do mercadinho](/favelaware/8-logica-de-programacao/atividades/atividade-18-desafio-final-o-caixa-do-mercadinho.md)                                           | Desafio       | 3h     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://favelaware.gitbook.io/favelaware/8-logica-de-programacao.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
