文件名称:oj_GPA
介绍说明--下载内容来自于网络,使用问题请自行百度
本科生的成绩施行平均学分绩点制(GPA)。既将学生的实际考分根据不同的学科的不同学分按一定的公式进行计算。
公式如下:
实际成绩 绩点
90——100 4.0
85——89 3.7
82——84 3.3
78——81 3.0
75——77 2.7
72——74 2.3
68——71 2.0
64——67 1.5
60——63 1.0
60以下 0
1.一门课程的学分绩点=该课绩点*该课学分
2.总评绩点=所有学科绩点之和/所有课程学分之和
现要求你编写程序求出某人A的总评绩点(GPA)。
输入数据
多组数据,对于每组数据: 第一行 总的课程数n(n<10);
第二行 相应课程的学分(两个学分间用空格隔开);
第三行 对应课程的实际得分;(The results of undergraduate students were given an average score system (GPA). Not only will the actual test scores of students according to different credit different subjects according to a certain formula.
The formula is as follows:
Actual achievement point
90 - 1004
85 - 893.7
82 - 843.3
78 - 813
75 - 772.7
72 - 742.3
68 - 712
64 - 671.5
60 - 631
60 below 0
The score of the 1. one course = the score of the course * the credits
2. overall grade point = all subjects GPA and / all the courses and credits
You are requested to write program to calculate the overall GPa. A (GPA).
Input data
Multiple sets of data for each group of data: the total number of first lines n (n<10);
The second lines of the corresponding course credits (two credits are separated by space);
The actual score of the third line corresponding course;)
公式如下:
实际成绩 绩点
90——100 4.0
85——89 3.7
82——84 3.3
78——81 3.0
75——77 2.7
72——74 2.3
68——71 2.0
64——67 1.5
60——63 1.0
60以下 0
1.一门课程的学分绩点=该课绩点*该课学分
2.总评绩点=所有学科绩点之和/所有课程学分之和
现要求你编写程序求出某人A的总评绩点(GPA)。
输入数据
多组数据,对于每组数据: 第一行 总的课程数n(n<10);
第二行 相应课程的学分(两个学分间用空格隔开);
第三行 对应课程的实际得分;(The results of undergraduate students were given an average score system (GPA). Not only will the actual test scores of students according to different credit different subjects according to a certain formula.
The formula is as follows:
Actual achievement point
90 - 1004
85 - 893.7
82 - 843.3
78 - 813
75 - 772.7
72 - 742.3
68 - 712
64 - 671.5
60 - 631
60 below 0
The score of the 1. one course = the score of the course * the credits
2. overall grade point = all subjects GPA and / all the courses and credits
You are requested to write program to calculate the overall GPa. A (GPA).
Input data
Multiple sets of data for each group of data: the total number of first lines n (n<10);
The second lines of the corresponding course credits (two credits are separated by space);
The actual score of the third line corresponding course;)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.