



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Edit1: TEdit; Edit2: TEdit; procedure Button1Click(Sender: TObject); function TForm1.ChengJiDJ(FS: real): string; private Private declara
2、tions public Public declarations end;var Form1: TForm1;implementation$R *.dfmfunction Tform1.ChengJiDJ(FS: real): string; /自定义函数输入成绩返回成绩等级begin if (FS<=3.30) then result:= '15'else if (FS<=3.36) and (FS>3.30) thenresult:= '14.5'else if (FS<=3.38) and (FS>3.36) then res
3、ult:= '14'else if (FS<=3.42) and (FS>3.38) then result:= '13.5'else if (FS<=3.46) and (FS>3.42) then result:= '13'else if (FS<=3.50) and (FS>3.46) then result:= '12.5'else if (FS<=3.54) and (FS>3.50) then result:= '12'else if (FS<=3.
4、58) and (FS>3.54) then result:= '11.5'else if (FS<=4.02) and (FS>3.58) then result:= '11'else if (FS<=4.06) and (FS>4.02) then result:= '10.5'else if (FS<=4.10) and (FS>4.06) then result:= '10'else if (FS<=4.15) and (FS>4.10) then result:= &
5、#39;9.5'else if (FS<=4.20) and (FS>4.15) then result:='9'else if (FS<=4.25) and (FS>4.20) then result:= '8'else if (FS<=4.30) and (FS>4.25) then result:= '7'else if (FS<=4.35) and (FS>4.30) then result:= '6'else if (FS<=4.45) and (FS>
6、4.35) thenresult:= '5'else if (FS<=4.55) and (FS>4.45) then result:= '4'elseif (FS<=5.05) and (FS>4.55) then result:= '3'else if (FS<=5.15) and (FS>5.05) then result:= '2'else if (FS<=5.25) and (FS>5.15) then result:= '1'else if (FS>5.25) then result:= '0' end;procedure TForm
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 华东师大版七年级数学上册学生辅导计划
- 七年级数学分层教学资源计划
- 幼儿园秋季疫情防控保教工作计划
- 初二体育竞赛备战专项计划
- 施工场地安全保卫管理计划
- 2025小学科学实验室课程开发计划
- 六年级上期班主任特色班级建设计划
- 语文课堂课件设计改进计划
- 小学二年级班主任心理健康计划
- 三年级下册语文教研组期末复习计划
- 反分裂反渗透教育主题班会
- 电商平台供应链管理的优化
- 健康体检知识培训课件
- 安徽省2024年普通高校招生国家专项计划首轮投档最低分及名次(物理科目组合)-3
- 2025年传染病防控技能竞赛笔试理论考试题库600题(附答案)
- 人教PEP版英语五年级下册Recycle 2单元教学设计(2课时教案)
- 【泉州:寒街孤影寻暖意 一抹亮色映霜花】中原地产2024年泉州楼市分析报告正式版
- SJG 124-2022 建筑废弃物综合利用设施建设运营标准
- 国家开放大学法律事务专科《刑法学(1)》期末纸质考试总题库2025春期版
- 中职高教版(2023)语文职业模块-第三单元3.3《鉴赏家》【课件】
- 《电气质量工艺培训》课件
评论
0/150
提交评论