initial commit
This commit is contained in:
commit
e63570ff85
5 changed files with 244 additions and 0 deletions
73
Acompanhamento.java
Normal file
73
Acompanhamento.java
Normal file
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
69
Aluno.java
Normal file
69
Aluno.java
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
75
Bolsista.java
Normal file
75
Bolsista.java
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
24
Pessoa.java
Normal file
24
Pessoa.java
Normal file
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Trabalho final de fundamentos
|
||||
|
||||
Inserir aqui o readme do projeto depois
|
||||
Loading…
Reference in a new issue