3. ntiec@fe.up.pt | www.fe.up.pt/ntiec | facebook.com/ntiec.feup
Exercício 5
Input "X1=",A
Input "X2=",B
Input "X3=",C
If A≤20 and B≤20 and C≤0 and A≥0 and B≥0 and C≥0
Then
(A+B+C)/3 -> M
If M≥10
Disp "Aprovado"
Stop
End
If M≤5
Then
Disp "Reprovado"
Else
Disp "Possibilidade de"
Disp "ir a Recurso"
End
Else
Disp "Erro"
Disp "As notas tem que"
Disp "estar entre 0 e 20"
4. ntiec@fe.up.pt | www.fe.up.pt/ntiec | facebook.com/ntiec.feup
Exercício 6
Exercício 7
“π*x^2/4” -> y1(x)
Disp "Formula-Resolvente"
Input "N. de vezes",N
For(I,0,N)
Prompt A,B,C
If A=0
Then
Disp "Erro"
Disp "A tem que ser positivo"
End
If sqrt(B^2-4*A*C)<0 or sqrt(B^2-4*A*C)≠0
Then
Disp "Sem raizes"
End
End