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); }
public double getNotenspiegel() { double temp = 0; foreach (Note note in notenListe) { temp = temp + note.getNoteInProzent(); } return(Werkzeuge.notenSpiegelAusrechnen(temp / notenListe.Count)); }