-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMedia_Alunoa_Aprovado_Reprov.html
75 lines (66 loc) · 1.22 KB
/
Media_Alunoa_Aprovado_Reprov.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<script>
// Objeto com dados dos Alunos
const alunos = [
{
nome: 'pedro',
snome: 'Alcantara',
mediaNotas: 7
},
{
nome: 'Bruno',
snome: 'Silva',
mediaNotas: 8
},
{
nome: 'Amanda',
snome: 'Santos',
mediaNotas: 8
},
{
nome: 'Aline',
snome: 'Ferroso',
mediaNotas: 3
},
{
nome: 'Matheus',
snome: 'Moraes',
mediaNotas: 7
},
{
nome: 'Gustavo',
snome: 'Batista',
mediaNotas: 10
},
{
nome: 'Iago',
snome: 'Cruz',
mediaNotas: 9
},
{
nome: 'Lina',
snome: 'Cruz',
mediaNotas: 10
},
{
nome: 'Edinei',
snome: 'Cruz',
mediaNotas: 8
},
{
nome: 'Livia',
snome: 'Pereira',
mediaNotas: 10
}
];
// Function listagem de alunos
function listagemDeAlunos() {
alunos.map((lista) =>{
return console.log(
`${lista.nome} ${lista.snome},
Média Notas: ${lista.mediaNotas},
Situação: ${lista.mediaNotas < 7 ? 'Failed' : 'Approved'}`
);
});
}
listagemDeAlunos()
</script>