diff --git a/src/main/java/br/utfpr/tdd/ex1/Aluno.java b/src/main/java/br/utfpr/tdd/ex1/Aluno.java index 63588d7..873683a 100644 --- a/src/main/java/br/utfpr/tdd/ex1/Aluno.java +++ b/src/main/java/br/utfpr/tdd/ex1/Aluno.java @@ -44,8 +44,9 @@ void setNotaProjeto(double nota) { double getNF() { if(notaRAA < 0) return (notaProjeto + getNAP()) / 2.0; - - return (notaProjeto + getNAP() + notaRAA) / 3.0; + if(notaProjeto + getNAP() + notaRAA > 18.0) + return 6.0; + return (notaProjeto + getNAP() + notaRAA)/3.0; } void setNotaRAA(double nota) {