forked from ifnmgjanauba/plaft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.yaml
More file actions
21 lines (20 loc) · 834 Bytes
/
tests.yaml
File metadata and controls
21 lines (20 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- title: Soma Simples
description: Leia dois valores inteiros, no caso para variáveis A e B. A seguir, calcule a soma entre elas e atribua à variável SOMA. A seguir escrever o valor desta variável.
program: ex01.py
tests:
- input: [30,10]
output: soma = 40
- input: [-30,10]
output: soma = -20
- input: [0,0]
output: soma = 0
- title: Média
description: Leia 3 valores, no caso, variáveis A, B e C, que são as três notas de um aluno. A seguir, calcule a média do aluno, sabendo que a nota A tem peso 2, a nota B tem peso 3 e a nota C tem peso 5. Considere que cada nota pode ir de 0 até 10.
program: ex02.py
tests:
- input: [5,6,7]
output: media = 6.0
- input: [5,10,10]
output: media = 8.333333333333334
- input: [10,10,40]
output: media = 20.0