内蒙古科技大学本科生课程设计说明书题目:面向对象课程设计——学生成绩管理系统学生姓名:****学号:*********专业:计算机科学与技术班级:11级-3班指导教师:**2013年1月6日内蒙古科技大学课程设计任务书II内蒙古科技大学课程设计任务书课程名称面向对象课程设计设计题目学生成绩管理系统指导教师**时间2012.12.31——2013.1.4一、教学要求1.巩固和加深学生对C++面向对象课程的基本知识的理解和掌握2.掌握C++面向对象课程和程序调试的基本技能3.利用C++进行基本的软件设计4.掌握书写程序设计说明文档的能力5.提高运用C++解决实际问题的能力二、设计资料及参数每个学生在教师提供的课程设计题目中任意选择一题,独立完成,题目选定后不可更换。某班学生成绩管理,包括以下功能:从键盘输入包括学号、姓名、各门课程成绩(不少于5门),并将其保存在磁盘文件里打开文件后,计算每个人的总分和平均分,排序并保存具有单项查询或多项查询的功能(即按照给定的关键字,如姓名找出满足条件的纪录)具有插入、删除和修改功能具有输出文件数据信息的功能三、设计要求及成果1.分析课程设计题目的功能需求(可选用数组或链表实现,可多人(最多3人)协作完成一个题目)2.写出详细设计说明(至少包括功能实现分析和模块流程图)3.编写程序代码,调试程序使其能正确运行(代码书写要规范,标示符要见名知意,要有必要的注释,每人至少3个函数,每人至少200行代码,不包括注释和花括号)4.设计完成的软件要便于操作和使用5.设计完成后提交课程设计报告(请严格按照模板进行排版)四、进度安排第一天选择课程设计题目,分析课题的要求第二天编程第三天编程及调试第四天写课程设计报告第五天提交课程设计报告(打印稿及电子稿)五、评分标准1.根据平时上机考勤、表现和进度,教师将每天点名和检查2.根据课程设计完成情况,必须有可运行的软件。3.根据课程设计报告的质量,如有雷同,则所有雷同的所有人均判为不及格。六、建议参考资料1.《C++面向对象程序设计》,吴敏杨国林,内蒙古大学出版社2.《C++面向对象程序设计习题解答与实验指导》,吴敏,内蒙古大学出版社内蒙古科技大学课程设计任务书III目录内蒙古科技大学课程设计任务书··········································································II目录········································································································III第一章需求分析·························································································41.1引言································································································41.2任务概述·························································································41.3数据描述·························································································41.4功能需求·························································································41.5性能需求·························································································51.6运行需求·························································································51.7任务计划·························································································5第二章概要设计·························································································62.1总体设计·························································································62.2数据类型设计(或数据结构设计)························································72.3接口设计·····························································································72.3运行界面设计···················································································8第三章详细设计·························································································93.1输入模块设计···················································································93.2输出模块设计··················································································113.3查找模块设计··················································································133.4排序模块设计··················································································143.5添加模块设计·······················································································153.6删除模块设计·······················································································173.7退出模块设计······················································································18第四章测试分析························································································194.1测试程序执行情况············································································194.2出现的问题和解决的方法···································································24第五章课程设计总结··················································································25附录:程序代码·······························································································26参考文献········································································································42致谢··············································································································43内蒙古科技大学课程设计任务书第一章需求分析1.1引言建立学生成绩管理系统,通过使用计算机对学生成绩进行管理,进一步提高办学效率。此设计说明书是对学生成绩管理系统开发的一个初步的分析说明性文档,旨在通过该文档清晰的阐述系统的实际功能,方便系统开发人员对系统的理解以及与用户的沟通。文档相关说明部分在目录部分已全部涵盖,阅读此文档的相关人员可以通过目录索引找到相应部分予以阅读。1.2任务概述某班学生成绩管理,包括以下功能:从键盘输入包括学号、姓名、各门课程成绩(不少于5门),并将其保存在磁盘文件里打开文件后,计算每个人的总分和平均分,排序并保存具有单项查询或多项查询的功能(即按照给定的关键字,如姓名找出满足条件的纪录)具有插入、删除和修改功能具有输出文件数据信息的功能1.3数据描述该管理系统程序中数据主要有:学生的学号、姓名、各门课程成绩、每个人的总分和平均分、查询、输出、插入、删除和修改等功能。1.4功能需求内蒙古科技大学课程设计任务书5(1)输入模块:有关学生的信息,各门课程成绩的输入;(2)输出模块:学生成绩的总分和平均分;(3)查找模块:根据学生的姓名查询该学生的名次、成绩;(4)排序模块:对学生成绩的排序;1.5性能需求(1)要求该管理系统具有一定的可扩展性以便适应发展,且便于维护;(2)要求该管理系统便于使用,使用步骤简易明了。1.6运行需求基于windows平台下的窗口图形界面软件,运行主界面为windows的经典运行界面,采用多文档界面,从而使程序更加美观,整齐有序,简易操作。软件运行基于windows平台上的xp,Vista,win7等1.7任务计划第一天选择课程设计题目,分析课题的要求第二天编程第三天编程及调试第四天写课程设计报告第五天提交课程设计报告(打印稿及电子稿)内蒙古科技大学课程设计任务书6第二章概要设计2.1总体设计设计目的:1.巩固和加深学生对面向对象课程的基本知识的理解和掌握2.掌握面向对象设计语言编程和程序调试的基本技能3.利用面向对象设计语言进行基本的软件设计4.掌握书写程序设计说明文档的能力5.提高运用面向对象设计语言解决实际问题的能力图2.1:程序总体设计图主菜单输入学生信息输出学生信息查询学生信息插入学生信息退出系统内蒙古科技大学课程设计任务书72.2数据类型设计(或数据结构设计)表2.1:数据类型设计数据数据类型学生各门课程成绩int型学号姓名字符型变量平均分浮点型数据姓名字符型变量2.3接口设计表2.2:函数列表函数名函数格式//即函数首部函数功能getdatavoid输入学生信息sortvoid按照成绩总分排序dispvoid显示结果initdispvoid初始化界面adddatavoid添加学生记录namefindvoid按照姓名查找记录di