MCCCXXXVII
Cadet 2nd Year
- Registriert
- Aug. 2006
- Beiträge
- 20
wäre nett, wenn mir jemand sagen könnte wo der fehler liegt.
function Notendurchschnitt (a,b,c,d,e : integer) : string;
Begin
erg := a+b+c+d+e;
erg := erg/5;
CASE erg of
1 <= and <1.5 : Begin Notendurchschnitt := ('sehr gut'); END;
1.5 <= and <2.5 : Begin Notendurchschnitt := ('gut'); END;
2.5 <= and <3.5 : Begin Notendurchschnitt := ('befriedigend'); END;
3.5 <= and <4.5 : Begin Notendurchschnitt := ('ausreichend'); END;
4.5 <= and <5.5 : Begin Notendurchschnitt := ('mangelhaft'); END;
5.5 <= and <6 : Begin Notendurchschnitt := ('ungengend'); END;
END;
END;
function Notendurchschnitt (a,b,c,d,e : integer) : string;
Begin
erg := a+b+c+d+e;
erg := erg/5;
CASE erg of
1 <= and <1.5 : Begin Notendurchschnitt := ('sehr gut'); END;
1.5 <= and <2.5 : Begin Notendurchschnitt := ('gut'); END;
2.5 <= and <3.5 : Begin Notendurchschnitt := ('befriedigend'); END;
3.5 <= and <4.5 : Begin Notendurchschnitt := ('ausreichend'); END;
4.5 <= and <5.5 : Begin Notendurchschnitt := ('mangelhaft'); END;
5.5 <= and <6 : Begin Notendurchschnitt := ('ungengend'); END;
END;
END;