From e7aaf88337e7439d104c1e531f44c2ea9b82d195 Mon Sep 17 00:00:00 2001 From: caioperschespindola Date: Mon, 15 Jun 2026 14:10:38 -0300 Subject: [PATCH] Programa funcionando --- Acompanhamento.java | 3 +-- Aluno.java | 2 +- Bolsista.java | 4 ++-- Dados.java | 6 ++++-- Gerenciador.java | 10 +++++++++- Menu.java | 2 +- Pessoa.java | 3 +-- 7 files changed, 19 insertions(+), 11 deletions(-) diff --git a/Acompanhamento.java b/Acompanhamento.java index 78eaa36..0b564db 100644 --- a/Acompanhamento.java +++ b/Acompanhamento.java @@ -82,5 +82,4 @@ public class Acompanhamento { } this.atividadesNaoEstudadas = atividadesNaoEstudadas; } - -} +} \ No newline at end of file diff --git a/Aluno.java b/Aluno.java index 0a1908f..6ad68be 100644 --- a/Aluno.java +++ b/Aluno.java @@ -66,4 +66,4 @@ public class Aluno { public void setBolsista(boolean bolsista){ this.bolsista = bolsista; } -} +} \ No newline at end of file diff --git a/Bolsista.java b/Bolsista.java index 80b4af4..1651917 100644 --- a/Bolsista.java +++ b/Bolsista.java @@ -1,4 +1,4 @@ -public class Bolsista{ +public class Bolsista { private Aluno aluno; private String projeto; private String orientador; @@ -72,4 +72,4 @@ public class Bolsista{ public void setOrientador(String orientador){ this.orientador = orientador; } -} +} \ No newline at end of file diff --git a/Dados.java b/Dados.java index 5efc3d9..886f4c7 100644 --- a/Dados.java +++ b/Dados.java @@ -1,3 +1,5 @@ +// TODO: acentos no isVowel() + public class Dados { private Aluno[] alunos; private String chamada; @@ -143,7 +145,7 @@ public class Dados { private boolean isVowel(char a){ - return (a == 'a') || (a == 'e') || (a == 'i') || (a == 'o') || (a == 'u'); + return (a == 'a') || (a == 'e') || (a == 'i') || (a == 'o') || (a == 'u') || (a == 'A') || (a == 'E') || (a == 'I') || (a == 'O') || (a == 'U'); } @@ -170,4 +172,4 @@ public class Dados { return (num / alunos.length) * 100; } -} +} \ No newline at end of file diff --git a/Gerenciador.java b/Gerenciador.java index 028f42c..33ed06c 100644 --- a/Gerenciador.java +++ b/Gerenciador.java @@ -28,12 +28,15 @@ public class Gerenciador { System.out.println("Insira a idade do aluno:"); idade = input.nextInt(); + input.nextLine(); //buffer clear System.out.println("Insira o semestre do aluno:"); semestre = input.nextInt(); + input.nextLine(); //buffer clear System.out.println("Insira o ano do aluno:"); ano = input.nextInt(); + input.nextLine(); //buffer clear Aluno aluno = new Aluno(nome, idade, local, curso, matricula, semestre, ano, false); this.dados.appendAluno(aluno); @@ -78,22 +81,27 @@ public class Gerenciador { System.out.println("Insira a quantidade de atividades entregues:"); int entregues = input.nextInt(); + input.nextLine(); //buffer clear acomp.setAtividadesEntregues(entregues); System.out.println("Insira a quantidade de atividades entregues nas quais foi declarado o uso de IA:"); int ia = input.nextInt(); + input.nextLine(); //buffer clear acomp.setAtividadesIA(ia); System.out.println("Insira a quantidade de atividades entregues que o aluno soube explicar:"); int explicadas = input.nextInt(); + input.nextLine(); //buffer clear acomp.setAtividadesExplicadas(explicadas); System.out.println("Insira a quantidade de atividades entregues que foram feitas sem ajuda:"); int semajuda = input.nextInt(); + input.nextLine(); //buffer clear acomp.setAtividadesSemAjuda(semajuda); System.out.println("Insira a quanntidade de atividades entregues que utilizarão estruturas não estudadas:"); int naoestudadas = input.nextInt(); + input.nextLine(); //buffer clear acomp.setAtividadesNaoEstudadas(naoestudadas); this.dados.appendAcompanhamento(acomp); @@ -159,4 +167,4 @@ public class Gerenciador { public void inovacao() { } -} +} \ No newline at end of file diff --git a/Menu.java b/Menu.java index ff02b86..e00af35 100644 --- a/Menu.java +++ b/Menu.java @@ -91,4 +91,4 @@ public class Menu { System.out.println("Opção inválida"); } } -} +} \ No newline at end of file diff --git a/Pessoa.java b/Pessoa.java index ba2a97e..50a1ccd 100644 --- a/Pessoa.java +++ b/Pessoa.java @@ -1,4 +1,4 @@ -public class Pessoa{ +public class Pessoa { private String nome; private int idade; private String localNascimento; @@ -20,5 +20,4 @@ public class Pessoa{ public String getLocal(){ return this.localNascimento; } - } \ No newline at end of file