资源描述:
《面向对象程序设计课设论文-学生成绩评定系统》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、2.上"GUILINUNIVERSITYOFELECTRONICTECHNOLOGY《面向对象程序设计》课程设计题目:《学生成绩评定系统》院系:数学与计算科学专业:信息与计算科学姓名学号:指导老师:日期:2015年1月8日摘要关键字:录入学生数据,删除数据,查询数据,显示全部学生数据程序主耍用于对学生成绩进行评定,将学生考试成绩输入,作业成绩,测试成绩输入,然后通过加权平均求出最终成绩,最后将成绩分成字符等级输出,此外这个程序还可以删除,查找,显示全部学生考试情况。定义一个student类分别对学号、姓名、性别、考试成绩、作业成绩、和测试成绩进行输入,定义
2、成员函数pj()将所冇成绩加权以及成员函数gr()将加权后的成绩转化为等级,stu_delete(),stu_find(),display()分别为删除,查询,显示学生的数据,接着定义一个类manage_stu,将前面的student类作为manage_stu成员变量,并定义成员函数input_stu()用于输入N名学生信息,delete_stu(),find_stu(),分别用于删除和查找并显示指定学生,display_stu()用于显示全部学生信息,用户在界而上选择某个数字,通过switch來判断所对应的条件,从而选择调用相应的成员函数,例如选择1.录
3、用学生信息,则调用manage_stu中的input_stu(),输入N名学生姓名,学号,性别,考试成绩,作业成绩,测试成绩后,则成绩存在系统中。AbstractKeywords:inputstudents*data,deletedata,querydata,displayallthestudents1datProgramismainlyusedforassessmentofstudentachievement.Wecaninputstudents^examinationperformance,taskperformanceandtestscoresand
4、thenthenthefinalresultsobtainedbytheweightedaverage.Finally,theperformanceleveloftheoutputintoacharacter,inadditiontothisprogramcanalsodelete,search,displayallstudenttestcases.Designphase:wecandefineaClassstudenttoinputrespectivelystudentnumber,name.sex,examinationperformance,task
5、performanceandtestscores.Wecandefinememberfunctionpj()toweightallthescores.Andmemberfunctiongr()willconvertweightedscoresintothegrades-Thememberfunctionstu_delete()candeletedatas.Thememberfunctionstu_find()canfinddatas.Andthememberfunctiondisplay()candisplaythestudents9datas.Thenw
6、edefineaClassmanage_stutotaketheprecedingClassstudentasthemembervariablesofit.Wedefinethememberfunctioninput_stu()toinputtheinformationofseveralstudents.Delete_stu()andfind_stu()areusedtorespectivelydeletedatasandfinddatasanddisplaythespecifiedstudents^information.Dispiay_stu()isu
7、sedtodisplayallstudentinformation.Theusercanselectoneofthedigitalontheinterface,throughaswitchtodeterminethecorrespondingconditionstoselecttheappropriatememberfunctioncalls.Forexamplejfweselectnumberl:inputtheinformationofstudents,wecancallthememberfunctioninput_stu()ofClassmanage
8、_stutoinputseveralstudents^name,s