-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyacademy.py~
36 lines (19 loc) · 1 KB
/
pyacademy.py~
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
#coding: utf-8
from academy.disciplina import Disciplina
from academy.aluno import Aluno
from academy.docente import Docente
jao = Aluno("Jão", "04/02/1934")
print jao.nome, jao.matricula
maria = Aluno("Maria", "12/09/1989")
print maria.nome, maria.matricula
vantuil = Docente("Vantuil", "07/02/1934")
micro = Disciplina("Microprocessadores I", "nabo", "ELT005", 48, vantuil)
print "A disciplina %s (%s) \"%s\" possui %d vagas" % (micro.nome, micro.sigla, micro.descricao, micro.vagas)
micro.matricula = [jao, maria]
print "agora a disciplina %s (%s) \"%s\" possui %d vagas" % (micro.nome, micro.sigla, micro.descricao, micro.vagas)
#micro.desmatricula(matricula = [jao.matricula, maria.matricula])
print "agora a disciplina %s (%s) \"%s\" possui %d vagas" % (micro.nome, micro.sigla, micro.descricao, micro.vagas)
print "o professor é: %s" % micro.docente.nome
micro.avaliar([jao, maria])
print "%s nota: %d" %(jao.nome, jao.disciplina['media'])
print "%s nota: %d" %(maria.nome, maria.disciplina['media'])