From e63570ff85705edea6cc1f8eea8a246104075ed9 Mon Sep 17 00:00:00 2001 From: Gabriel Franco Date: Mon, 8 Jun 2026 09:55:20 -0300 Subject: [PATCH] initial commit --- Acompanhamento.java | 73 +++++++++++++++++++++++++++++++++++++++++++ Aluno.java | 69 +++++++++++++++++++++++++++++++++++++++++ Bolsista.java | 75 +++++++++++++++++++++++++++++++++++++++++++++ Pessoa.java | 24 +++++++++++++++ README.md | 3 ++ 5 files changed, 244 insertions(+) create mode 100644 Acompanhamento.java create mode 100644 Aluno.java create mode 100644 Bolsista.java create mode 100644 Pessoa.java create mode 100644 README.md diff --git a/Acompanhamento.java b/Acompanhamento.java new file mode 100644 index 0000000..2c57760 --- /dev/null +++ b/Acompanhamento.java @@ -0,0 +1,73 @@ +public class Acompanhamento { + private Aluno aluno; + private int atividadesEntregues; + private int atividadesIA; + private int atividadesExplicadas; + private int atividadesSemAjuda; + private int atividadesNaoEstudadas; + private double riscoPedagogico; + + public Acompanhamento(Aluno aluno, int atividadesEntregues, int atividadesIA, int atividadesExplicadas, + int atividadesSemAjuda, int atividadesNaoEstudadas) { + this.aluno = aluno; + this.atividadesEntregues = atividadesEntregues; + this.atividadesIA = atividadesIA; + this.atividadesExplicadas = atividadesExplicadas; + this.atividadesSemAjuda = atividadesSemAjuda; + this.atividadesNaoEstudadas = atividadesNaoEstudadas; + } + + private void calcularRisco() { + double razaoIa = atividadesIA / atividadesEntregues; + double razaoNaoExplicadas = (atividadesEntregues - atividadesExplicadas) / atividadesEntregues; + double razaoComAjuda = (atividadesEntregues - atividadesSemAjuda) / atividadesEntregues; + double razaoNaoEstudadas = atividadesNaoEstudadas / atividadesEntregues; + double media = (razaoIa + razaoNaoExplicadas + razaoComAjuda + razaoNaoEstudadas) / 4; + this.riscoPedagogico = media * 10; + + } + + public double getRiscoPedagogico() { + return riscoPedagogico; + } + + public String getRiscoLabel() { + this.calcularRisco(); + if (riscoPedagogico < 3.3) { + return "BAIXO"; + } + if (riscoPedagogico > 3.3 && riscoPedagogico < 6.6) { + return "MODERADO"; + } + return "ALTO"; + } + + public Aluno getAluno() { + return this.aluno; + } + + public void setAluno(Aluno aluno) { + this.aluno = aluno; + } + + public void setAtividadesEntregues(int atividadesEntregues) { + this.atividadesEntregues = atividadesEntregues; + } + + public void setAtividadesIA(int atividadesIA) { + this.atividadesIA = atividadesIA; + } + + public void setAtividadesExplicadas(int atividadesExplicadas) { + this.atividadesExplicadas = atividadesExplicadas; + } + + public void setAtividadesSemAjuda(int atividadesSemAjuda) { + this.atividadesSemAjuda = atividadesSemAjuda; + } + + public void setAtividadesNaoEstudadas(int atividadesNaoEstudadas) { + this.atividadesNaoEstudadas = atividadesNaoEstudadas; + } + +} diff --git a/Aluno.java b/Aluno.java new file mode 100644 index 0000000..cd1681b --- /dev/null +++ b/Aluno.java @@ -0,0 +1,69 @@ +public class Aluno { + private Pessoa pessoa; + private String curso; + private String matricula; + private int semestre; + private int ano; + private boolean bolsista; + + public Aluno(int nome, int idade, String localNascimento, String curso, String matricula, int semestre, int ano, boolean bolsista){ + this.pessoa = new Pessoa(nome, idade, localNascimento); + this.curso = curso; + this.matricula = matricula; + this.semestre = semestre; + this.ano = ano; + this.bolsista = bolsista; + } + + public int getNome(){ + return this.pessoa.getNome(); + } + + public int getIdade(){ + return this.pessoa.getIdade(); + } + + public String getLocal(){ + return this.pessoa.getLocal(); + } + + public String getCurso(){ + return this.curso; + } + + public String getMatricula(){ + return this.matricula; + } + + public int getSemestre(){ + return this.semestre; + } + + public int getAno(){ + return this.ano; + } + + public boolean getBolsista(){ + return this.bolsista; + } + + public void setCurso(String curso){ + this.curso = curso; + } + + public void setMatricula(String matricula){ + this.matricula = matricula; + } + + public void setSemestre(int semestre){ + this.semestre = semestre; + } + + public void setAno(int ano){ + this.ano = ano; + } + + public void setBolsista(boolean bolsista){ + this.bolsista = bolsista; + } +} diff --git a/Bolsista.java b/Bolsista.java new file mode 100644 index 0000000..c3bc617 --- /dev/null +++ b/Bolsista.java @@ -0,0 +1,75 @@ +public class Bolsista{ + private Aluno aluno; + private String projeto; + private String orientador; + + public Bolsista(int nome, int idade, String localNascimento, String curso, String matricula, int semestre, int ano, boolean bolsista, String projeto, String orientador){ + this.aluno = new Aluno(nome, idade, localNascimento, curso, matricula, semestre, ano, bolsista); + this.projeto = projeto; + this.orientador = orientador; + } + + public int getNome(){ + return this.aluno.getNome(); + } + + public int getIdade(){ + return this.aluno.getIdade(); + } + + public String getLocal(){ + return this.aluno.getLocal(); + } + + public String getCurso(){ + return this.aluno.getCurso(); + } + + public String getMatricula(){ + return this.aluno.getMatricula(); + } + + public int getSemestre(){ + return this.aluno.getSemestre(); + } + + public int getAno(){ + return this.aluno.getAno(); + } + + public String getProjeto(){ + return this.projeto; + } + + public String getOrientador(){ + return this.orientador; + } + + public void setCurso(String curso){ + this.aluno.setCurso(curso); + } + + public void setMatricula(String matricula){ + this.aluno.setMatricula(matricula); + } + + public void setSemestre(int semestre){ + this.aluno.setSemestre(semestre); + } + + public void setAno(int ano){ + this.aluno.setAno(ano); + } + + public void setBolsista(boolean bolsista){ + this.aluno.setBolsista(bolsista); + } + + public void setProjeto(String projeto){ + this.projeto = projeto; + } + + public void setOrientador(String orientador){ + this.orientador = orientador; + } +} \ No newline at end of file diff --git a/Pessoa.java b/Pessoa.java new file mode 100644 index 0000000..b341dc6 --- /dev/null +++ b/Pessoa.java @@ -0,0 +1,24 @@ +public class Pessoa{ + private int nome; + private int idade; + private String localNascimento; + + public Pessoa(int nome, int idade, String localNascimento){ + this.nome = nome; + this.idade = idade; + this.localNascimento = localNascimento; + } + + public int getNome(){ + return this.nome; + } + + public int getIdade(){ + return this.idade; + } + + public String getLocal(){ + return this.localNascimento; + } + +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..fb31e4a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Trabalho final de fundamentos + +Inserir aqui o readme do projeto depois