From 2e36eada893dea4f44edbed77e937d05ec7bb5da Mon Sep 17 00:00:00 2001 From: Steffanyperes Date: Sat, 29 Jun 2024 21:58:51 +0900 Subject: [PATCH 1/2] steffany diagrama --- Diagrama sem nome.drawio | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Diagrama sem nome.drawio diff --git a/Diagrama sem nome.drawio b/Diagrama sem nome.drawio new file mode 100644 index 0000000..c8ef53e --- /dev/null +++ b/Diagrama sem nome.drawio @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c0b8fa2fdecc2767b558712bfacb72498b4f4c96 Mon Sep 17 00:00:00 2001 From: Steffanyperes Date: Sat, 6 Jul 2024 11:52:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=20fiz=20a=20tarefa=20de=20casa,=20fazendo?= =?UTF-8?q?=20a=20programa=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataset_alunas.cpython-312.pyc | Bin 0 -> 1157 bytes exercicios/para-casa/dataset_alunas.py | 2 +- exercicios/para-casa/sistema_de_alunas.py | 25 ++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 exercicios/para-casa/__pycache__/dataset_alunas.cpython-312.pyc diff --git a/exercicios/para-casa/__pycache__/dataset_alunas.cpython-312.pyc b/exercicios/para-casa/__pycache__/dataset_alunas.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dbd573cd5ad487a51f02dc9846406ecb1051efae GIT binary patch literal 1157 zcmZvay>HV%7{={5j+2xGS|}~)hXR|2Af%RsFS!k>1S+MXWvk7Pl-@x9v6C&JJ!`W--xaU7~NW2*S96wVRxTBdQCS?gWZlhMnGD<1cv+mv zNtj^}Uc*K%V$%>&pLf-;Qn83fm25z^lIsVFd93&OlNd5>*!3{7Y8Dc0C4fZVqW&)6 z&Ugl#0+P}e1Q81n>22UXB<1Hm-6fPu)zjFQs`47)Jca2yL&W>vJ5)HbcwcDs6`uw~ z8b>q`hN38dz(rA;g^>`I+R&vKVr-JkF45Ox(MRP4b2;^5A}Wnlf&p|tDX!BlY?x|d zxPbpLiM}ak_$Tq3h&%) z;lU1xSj&qkxUBWWA@2z9;0MA&rw1Hb9SFh6g5H212N2%w?VXn&beS9bHk0Y)-;IUSiat|1ssD%ON6=EL8iN)`RGHVp2+9iQMo^|2<2442 UdS!);(kW9PP88l7d=c;S55+q-egFUf literal 0 HcmV?d00001 diff --git a/exercicios/para-casa/dataset_alunas.py b/exercicios/para-casa/dataset_alunas.py index 61992de..08f2f14 100644 --- a/exercicios/para-casa/dataset_alunas.py +++ b/exercicios/para-casa/dataset_alunas.py @@ -59,4 +59,4 @@ "Presença": [True, True, True, False, True], "Participação": 7.5 } -} \ No newline at end of file +} diff --git a/exercicios/para-casa/sistema_de_alunas.py b/exercicios/para-casa/sistema_de_alunas.py index cc7c755..be7aeef 100644 --- a/exercicios/para-casa/sistema_de_alunas.py +++ b/exercicios/para-casa/sistema_de_alunas.py @@ -37,17 +37,38 @@ def obter_opcao(): def incluir_nova_aluna(): pass - #TODO - Implentar a função + from dataset_alunas import dataset + nome_completo = input("\nDigite o nome completo da nova aluna: ") + sobrenome = input("Digite o sobrenome da aluna: ") + turma = input("Digite a turma da aluna: ") + + + def consultar_lista_alunas(): pass - #TODO - Implentar a função + if dataset : + print("\n Lista de Alunas Cadastradas:") + for idx, aluna in enumerate(dataset ): + print(f"{idx}. {aluna['nome']} {aluna['sobrenome']} - Turma: {aluna['turma']}") + else: + print("\n não cadastrada:") + def consultar_faltas_aluna(): + nome= input("por favor, nos informe o nome da aluna: ") + sobrenome= input(" agora nos informe o sobrenome da aluna :") + + qtd_faltas = dataset[(nome, sobrenome)] ["presença"].count(False) + print((f"A quantidade de faltas de {nome} {sobrenome} são {qtd_faltas[0]}, {qtd_faltas[1]}, {qtd_faltas[2]} ")) pass #TODO - Implentar a função def consultar_notas_aluna(): + nome = input("por favor, nos informe o nome da aluna: ") + sobrenome= input(" agora nos informe o sobrenome da aluna :") + valor_notas = dataset[(nome, sobrenome )] ["notas"] + print(f"As três notas de {nome} {sobrenome} é {valor_notas}. ") pass #TODO - Implentar a função