diff --git a/src/main/java/br/utfpr/tdd/ex1/Aluno.java b/src/main/java/br/utfpr/tdd/ex1/Aluno.java index 63588d7..e9033d8 100644 --- a/src/main/java/br/utfpr/tdd/ex1/Aluno.java +++ b/src/main/java/br/utfpr/tdd/ex1/Aluno.java @@ -45,7 +45,8 @@ void setNotaProjeto(double nota) { if(notaRAA < 0) return (notaProjeto + getNAP()) / 2.0; - return (notaProjeto + getNAP() + notaRAA) / 3.0; + double nf = (notaProjeto + getNAP() + notaRAA) / 3.0; + return nf > 6 ? 6 : nf; } void setNotaRAA(double nota) {