源码简介: |
设一个班有20个学生,每个学生有姓名,学号,以及数学、计算机、英语、语文、体育5门课程的成绩信息。分别编写3个函数以实现以下3个要求:1)、求计算机和英语的平均成绩;2)、对于有两门以上课程不及格的学生,输出它们的姓名、学号、各门课程成绩及平均成绩3)、输出成绩优良的学生(平均成绩在90分以上或全部成绩都在85分以上)的姓名、学号、各门课程成绩和平均成绩。-Set up a class of 20 students, each student name, student number, as well as mathematics, computer, English, languages, sports, five courses results. Write three functions in order to achieve the following three requirements: 1), and computer and English grade point average 2) For students who have failed two or more courses, output their name, student number, the results of various courses and grade point average), the the output high performing students (average score of 90 points or more or all of the results are more than 85 points) name, student number, the results of various courses and grade point average.
|