Beispiel #1
0
 public Note(double erhaltenePunkte, double gesamtPunkte, int day, int month, int year)
 {
     this.gesamtPunkte    = gesamtPunkte;
     this.erhaltenePunkte = erhaltenePunkte;
     this.noteInProzent   = (erhaltenePunkte / gesamtPunkte);
     this.note            = Werkzeuge.notenSpiegelAusrechnen(noteInProzent);
     this.date            = new DateTime(year, month, day);
 }
Beispiel #2
0
        public double getNotenspiegel()
        {
            double temp = 0;

            foreach (Note note in notenListe)
            {
                temp = temp + note.getNoteInProzent();
            }
            return(Werkzeuge.notenSpiegelAusrechnen(temp / notenListe.Count));
        }