function getmarkrank(const mark: double): string; begin case round(mark) of 90..100: result := '优秀'; 80..89 : result := '良好'; 70..79 : result := '中等'; 60..69 : result := '及格'; 0..59 : result := '不及格'; else result := '非法分数'; end; end;