导航菜单
首页 >  » 正文

成绩排名的百分比怎么算,例如全班10人,我排第二,那么我的成绩排名是20%还是80% 输入5个学生4门课程的成绩,求(1)每个学生的总分(2)每门课程的平均分(3)输出总分最高的学生的姓名和总成绩

成绩排名的百分比怎么算,例如全班10人,我排第二,那么我的成绩排名是20%还是80%

就是倒数全班人数x10%以内的名次。
比如全班50人,那么排名后10%就是50x10%=5,就是从46到50名。
百分比排名:求某个数据的百分比排名,即是求比此数据小的数据个数除以与此数据进行比较的数据个数总数。
这个在分数上经常用到,比如说一个人考试分数为85分,percentile ranking是95%,意思是把他的成绩与其他所有参加考试的的人的成绩比较,他的成绩比95%的人的成绩要高。percentile ranking显示的是一个人成绩与其他人的比较情况,并不代表具体分数。

成绩排名的百分比计算例子:
大学成绩加权平均分、百分比。
按照每科的学分算。如:英语 学分4 分数90,计算机学分3,分数85,那么加权平均数就是(90*4+85*3)/(4+3)=87.86
百分比。
上班的占这个小组总人数的百分比: 5/7×100%≈71.43%请假的占这个小组总人数的百分比: 2/7×100%≈28.57%
excel中计算百分比排名。
可以用RANK,如=RANK($A$1,A1:A5),可以显示A1的值在A1:A5中的排名。

输入5个学生4门课程的成绩,求(1)每个学生的总分(2)每门课程的平均分(3)输出总分最高的学生的姓名和总成绩

我曾经回答过一个问题,和你的类似。 题目如下,你可以参考一下:
/*
从键盘输入38个学生的基本数据,包括学号,姓名,性别以及3门课程的单科成绩。
(1) 计算每个学生3门课程的总分和平均成绩;
(2) 找出每门课程中成绩最好和成绩最差的学生,并输出这些学生的基本数据;
(3) 3门课程总成绩按由高分到低分的顺序排序,输出排序后的学生的基本数据。
*/
/*
VC++ 6.0测试通过。 键盘输入问题没解决,你自己去解决。 主要是要注意输入字符串的问题,特别是用scanf函数进行字符串输入的时候。我下面写的那个从键盘输入数据有问题,所以被我注释了。
还有我只用了5个学生做测试,你要用38个的话,把SIZE改成38,在数组初始化的时候初始化38个数据就行了。
学生的性别,我用n表示男,v表示女
Turbo C 2.01 测试通过,不过输出的信息比较多,我这边Turbo C查看运行结果是不能滚屏,所以显示不全,不知道你那边怎样
*/
#include <stdio.h>
#define SIZE 5
struct student
{
int num;
char name[100];
char sex;
double score1;
double score2;
double score3;
};
/* 输出学生信息 */
void print_student(struct student stu)
{
printf("num:%d name:%s sex:%c score1:%f score2:%f score3:%f ",stu.num,stu.name,stu.sex,stu.score1,stu.score2,stu.score3);
}
/* ---------------------------------------- */
/* 求每个学生三门课程的总分。 */
double score_Sum(struct student stu)
{
double sum=stu.score1;
sum+=stu.score2;
sum+=stu.score3;
return sum;
}
/* ---------------------------------------- */
/* 每个学生三门课的平均成绩 */
double scoreAvg(struct student stu)
{
return (score_Sum(stu)/3.0);
}
/* ---------------------------------------- */
/* 求score1最高和最低的学生 */
void score1(struct student stu[])
{
double min=stu[0].score1,max=stu[0].score1;
int index_min=0,index_max=0,i;
for(i=0;i<SIZE;i++)
{
if(min>stu[i].score1)
{
min=stu[i].score1;
index_min=i;
}
if(max<stu[i].score1)
{
max=stu[i].score1;
index_max=i;
}
}
printf("score1 max: ");
print_student(stu[index_max]);
printf("score1 min: ");
print_student(stu[index_min]);
}
/* ---------------------------------------- */
/* 求score2最高和最低的学生 */
void score2(struct student stu[])
{
double min=stu[0].score2,max=stu[0].score2;
int index_min=0,index_max=0,i;
for(i=0;i<SIZE;i++)
{
if(min>stu[i].score2)
{
min=stu[i].score2;
index_min=i;
}
if(max<stu[i].score2)
{
max=stu[i].score2;
index_max=i;
}
}
printf("score2 max: ");
print_student(stu[index_max]);
printf("score2 min: ");
print_student(stu[index_min]);
}
/* ---------------------------------------- */
/* 求score3最高和最低的学生 */
void score3(struct student stu[])
{
double min=stu[0].score3,max=stu[0].score3;
int index_min=0,index_max=0,i;
for(i=0;i<SIZE;i++)
{
if(min>stu[i].score3)
{
min=stu[i].score3;
index_min=i;
}
if(max<stu[i].score3)
{
max=stu[i].score3;
index_max=i;
}
}
printf("score3 max: ");
print_student(stu[index_max]);
printf("score3 min: ");
print_student(stu[index_min]);
}
/* ---------------------------------------- */
/* 按总分从高到低排序,并输出学生信息 */
void sortAndPrint(struct student stu[])
{
int i,j;
for(j=0;j<SIZE;j++)
{
for(i=j;i<SIZE-1;i++)
{
if(score_Sum(stu[i])<score_Sum(stu[i+1]))
{
struct student stu_t=stu[i];
stu[i]=stu[i+1];
stu[i+1]=stu_t;
}
}
}
for(i=0;i<SIZE;i++)
{
print_student(stu[i]);
}
}
/* ---------------------------------------- */
void main()
{
int i;
struct student stu[SIZE]=
{
{123456,"wangqiguo",n,98,96,85},
{14523,"zhangsan",v,98,85,74},
{15632,"lisi",n,96,85,86},
{12563,"huliu",v,85,96,86},
{12563,"zhujiang",n,98,98,96}
};
/* 循环输入,这个有点问题,主要是输入格式方面我直接在程序里面进行的初始化,所以要从键盘里面输入的话,你要自己写了 */
/*
for(i=0;i<SIZE;i++)
{
printf("please input num,name,sex,score1,score2,score3 in stu[%d]: ",i);
scanf("%d,%s,%c,%f,%f,%f",&stu[i].num,stu[i].name,&stu[i].sex,&stu[i].score1,&stu[i].score2,&stu[i].score3);
printf(" ");
}*/
/* 输出每个学生的总成绩和平均成绩 */
for(i=0;i<SIZE;i++)
{
printf("stu[%d] sum:%f,avg:%f ",i,score_Sum(stu[i]),scoreAvg(stu[i]));
}
printf(" ------------------------------------------------- ");
/* 分别输出score1、score2、score3科目的最高分,和最低分学生信息 */
score1(stu);
score2(stu);
score3(stu);
printf(" ------------------------------------------------- ");
/* 按照总分高低顺序排序并输出 */
sortAndPrint(stu);
}

大学绩点是只算专业课还是必修课都算

是所有科目,有的学校可能比较重视专业课成绩,但是平均绩点GPA是算的成绩是全部学过的科目。而且你自己算过的,学校那边还会自己再算一遍

相关推荐: