Example #1
0
        // pt profesor
        internal Materie(PlainText nume, CoeficientNote pondereExamen)
        {
            Contract.Requires(nume != null, "nume");
            Contract.Requires(pondereExamen != null, "pondereExamen");

            NumeMaterie = nume;
            PondereExamen = pondereExamen;
            _studentiInscrisi = new List<Student>();
        }
Example #2
0
        internal void CalculeazaNotaFinala(CoeficientNote coeficient)
        {
            Contract.Requires(coeficient != null, "coeficient");
            Contract.Requires(notaExamen != null, "nota la examen");
            Contract.Requires(noteParcurs.Media.Valoare>=5, "nota activitate");
            Contract.Requires(notaExamen.Valoare>= 5, "nota examen");

            var valCoeficient = coeficient.Fractie;
            Medie_Materie = new Nota(Math.Round(valCoeficient * notaExamen.Valoare + (1 - valCoeficient) * noteParcurs.Media.Valoare));
        }
Example #3
0
 // pt Secretariat
 internal Materie(PlainText nume, CoeficientNote pondereExamen, List<Student> studentiInscrisi)
     : this(nume, pondereExamen)
 {
     Contract.Requires(studentiInscrisi != null, "lista de studenti inscrisi");
     _studentiInscrisi = studentiInscrisi;
 }