
生物竞赛里的计分方法,好像是在2010年启用的,谁能告诉我到底是怎么样的方法?
T-SCORE=50+10(X-m)/SD
其中X是你考得分数(MARK)。m是这门课的全国平均分数。SD是这门课的分割系数。
这是兆氏从族埋散国外网站找液键到的,不知国内是不是这样算的。
那个发程序代码的人答案不靠谱,他的程序只是一个统计学生得分的程序,根本不是T-score。
另外,全国高中生物联赛中的T-score参见文章:http://www.docin.com/p-162673810.html
转载本答案请注明出处。
#include
//结构的定义歼消
typedef struct
{
long no;
char name[20];
double score[3];
}Student;
void GetOneRecord(Student students[],int i)
{//将第i个学生的信息录入到students[i]中
printf("Input the NO.:");scanf("%ld",&students[i].no);
printf("Input the name:");scanf("%s",students[i].name);
printf("Input the first score:");scanf("%lf"者拆,&students[i].score[0]);
printf("Input the second score:");scanf("%lf",&students[i].score[1]);
printf("Input the third score:");scanf("%lf",&students[i].score[2]);
}
void OutputTableHead()
{//打印表头
printf("学号 姓名 成绩1 成绩2 成绩3\n");
}
void OutputOneRecord(Student students[],int i)
{
printf("%ld\t%s\t%.2lf\t%.2lf\t%.2lf\t",students[i].no,students[i].name,students[i].score[0],students[i].score[1],students[i].score[2]);
}
void Sort(Student students[],int i,int cnt)
{//按照第i门首改枣课程排序。students中有cnt个记录
Student stuTemp=students[0];
for(int j=0;j
if(students[j].score[i-1]
stuTemp=students[j];
students[j]=students[j+1];
students[j+1]=stuTemp;
}
}
}
void main()
{
Student std[3];//结构数组
for(int i=0;i<3;i++)
{
printf("For student %d\n",i+1);
GetOneRecord(std,i);
putchar('\n');
}
printf("The original message:\n");
OutputTableHead();
for(i=0;i<3;i++)
{
OutputOneRecord(std,i);
putchar('\n');
}
int n;
printf("\nSort by which corse?1,2,or3?");
scanf("%d",&n);
Sort(std,n,3);
printf("The sorted message:\n");
OutputTableHead();
for(i=0;i<3;i++)
{
OutputOneRecord(std,i);
putchar('\n');
}
}
//The run result:
For student 1
Input the NO.:1
Input the name:name1
Input the first score:50
Input the second score:90
Input the third score:10
For student 2
Input the NO.:2
Input the name:name2
Input the first score:95
Input the second score:20
Input the third score:40
For student 3
Input the NO.:3
Input the name:name3
Input the first score:30
Input the second score:60
Input the third score:80
The original message:
学号 姓名 成绩1 成绩2 成绩3
1 name1 50.00 90.00 10.00
2 name2 95.00 20.00 40.00
3 name3 30.00 60.00 80.00
Sort by which corse?1,2,or3?1
The sorted message:
学号 姓名 成绩1 成绩2 成绩3
2 name2 95.00 20.00 40.00
1 name1 50.00 90.00 10.00
3 name3 30.00 60.00 80.00
Press any key to continue