文件名称:GradeReport
介绍说明--下载内容均来自于网络,请自行研究使用
创建一个名为GradeReport的类,来处理某个学生的各科成绩。要求能够保存学生姓名,总科目数目,各科目的总成绩,以及该学生的GPA,另外用三个数组分别来保存各个科目的课程名称、课程学分点数、本课程成绩。要求该类提供构造函数来初始化成员变量,并使用setCourse,setCreditValue,setScore三个成员函数来设置三个数组的值。提供getTotal,getGPA来获取学生目前的总分数和GPA。另外,利用成员函数getScore(courseName)来获取与cousrName相对应的课程成绩。编写main函数来测试GradeReport类,测试课程数目可设为{Calculus,Physics,Programing,LinearAlgebra,English}五门课程。-Create a file named class of GradeReport, to handle a student of all subjects. Requires the ability to save student' s name, total number of subjects, the total score of the various subjects, as well as the student' s GPA, the other three arrays to hold the various subjects of the course name, course credit points, the course grade. Class provides a constructor to initialize the member variables, and use the setCourse, setCreditValue, setScore member function to set the value of the three arrays. Provide getTotal, getGPA to get the students' total scores and GPA of In addition, the member function getScore (courseName) to get cousrName the course grade that corresponds to. To write the main function test GradeReport class, test the number of courses can be set to {Calculus, Physics, Programing, LinearAlgebra English} five courses.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GradeReport.cpp
GradeReport.h
1.cpp
GradeReport.h
1.cpp