Skip to content

feat: adiciona atividades modulo 1 e modulo 2#2

Open
letxiz wants to merge 2 commits into
Hygo:mainfrom
letxiz:leticia_branch
Open

feat: adiciona atividades modulo 1 e modulo 2#2
letxiz wants to merge 2 commits into
Hygo:mainfrom
letxiz:leticia_branch

Conversation

@letxiz
Copy link
Copy Markdown
Collaborator

@letxiz letxiz commented May 22, 2026

adiciona atividades modulo 1 e modulo 2

Copilot AI review requested due to automatic review settings May 22, 2026 19:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Letícia Alves’ activities for Módulo 1 and Módulo 2, including exercise implementations (control flow template), plus two standalone scripts for a calculator registry and an e-commerce discount “decision engine/registry” example.

Changes:

  • Added Módulo 2 control-structures exercise solutions in a template file.
  • Added two Módulo 2 activity scripts: calculator (registry of operations) and e-commerce discount engine.
  • Added Módulo 1 Exercise 40 implementation and accompanying JSON artifacts (alunos.json, relatorio_turma.json).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
modulo-02/leticia-alves/template_leticia.py Implements the 15 control-flow exercises for Módulo 2.
modulo-02/leticia-alves/e-commerce.py Implements a discount rule engine + registry and includes a demo run.
modulo-02/leticia-alves/calculadora.py Implements a registry-based calculator and includes demo prints.
modulo-01/leticia-alves/atividade40.py Implements the Módulo 1 “cadastro de alunos” system with JSON persistence and report export.
modulo-01/leticia-alves/alunos.json Persisted sample data generated by the cadastro script.
modulo-01/leticia-alves/relatorio_turma.json Generated report output for the turma.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modulo-02/leticia-alves/template_leticia.py Outdated
Comment thread modulo-02/leticia-alves/template_leticia.py Outdated
Comment thread modulo-02/leticia-alves/template_leticia.py Outdated
Comment thread modulo-02/leticia-alves/template_leticia.py Outdated
Comment on lines +305 to +309
for i in range(2, n):
if n % i == 0:
eh_primo = False
print(f"Encontrou o divisor {i}. Interrompendo a busca com 'break'...")
break
Comment thread modulo-02/leticia-alves/calculadora.py Outdated
Comment thread modulo-02/leticia-alves/calculadora.py Outdated
Comment thread modulo-01/leticia-alves/atividade40.py
Comment on lines +95 to +107
alunos = carregar()
if not alunos:
return 0.0

total_notas = 0
qtd_notas = 0

for aluno in alunos:
total_notas += sum(aluno["notas"])
qtd_notas += len(aluno["notas"])

return total_notas / qtd_notas

Comment on lines +122 to +126
for aluno in alunos:
media_atual = sum(aluno["notas"]) / len(aluno["notas"])
media_maior = sum(aluno_maior["notas"]) / len(aluno_maior["notas"])
media_menor = sum(aluno_menor["notas"]) / len(aluno_menor["notas"])

@letxiz letxiz requested a review from Hygo May 22, 2026 20:03
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Owner

@Hygo Hygo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consegue corrigir as solicitações?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants