Programa funcionando
This commit is contained in:
parent
4be954a333
commit
e7aaf88337
7 changed files with 19 additions and 11 deletions
|
|
@ -82,5 +82,4 @@ public class Acompanhamento {
|
|||
}
|
||||
this.atividadesNaoEstudadas = atividadesNaoEstudadas;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
public class Bolsista{
|
||||
public class Bolsista {
|
||||
private Aluno aluno;
|
||||
private String projeto;
|
||||
private String orientador;
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue