C语言:输入6个学生,5门课程成绩,分别求每个学生的平均成绩和每门课程的平均成绩 谢谢各位大哥大姐了

来源:百度知道 编辑:UC知道 时间:2024/05/31 18:05:23
急求牛X的程序员解答 用C语言写哦 写的好加分

/*C语言:输入6个学生,5门课程成绩,分别求每个学生的平均成绩和每门课程的平均成绩*/
#include<stdio.h>
#define N 6
struct student
{
double chinese,math,clanguage,english,information;
double average;
};
struct student stu[N];
double avch,avmath,avclan,avlish,avifor;
void input()
{
int i;
printf("please input %d students' information!\n",N);
printf("the students' information contents:\n chinese\t math\t clanguage\t english\t information\n");
for(i=0;i<N;i++)
{
printf("please input the %dth student's information:",i+1);
scanf("%lf%lf%lf%lf%lf",
&stu[i].chinese,
&stu[i].math,
&stu[i].clanguage,
&stu[i].english,
&stu[i].information);
printf("\n");
}
}
void headl()
{

int i;
for(i=0;i<N;i++)
{
stu[i].average=(stu[i].c

输入50个学生C语言成绩,完成以下操作, 成绩的编程:如何用C语言编程这个题目:有5个学生,每个学社有四门课程,将有不及格课程的学生成绩输出 输入5个学生的姓名,学号和5门课成绩,用C语言结构体数组实现: 用C语言解答:编程输入3个学生的学号、姓名、三门课程的成绩,存入一个结构体型的数组,统计每 c语言编程从键盘上输入学生5门课的成绩计算出总成绩和平均成绩。 C语言写代码分别将某班10个同学英语和计算机两门课程的成绩从高到低排序,并求各门课的平均成绩 c语言:输入10个学生成绩存储在数组中,求成绩最高者的序号和成绩 输入10个学生的3门课程成绩,统计各科全部及格的人数? 双重循环,输入5名学生3门成绩,分别统计每个学生平均成绩 c编程:输入10个学生与5门课成绩,分别用函数求:每个学生平均分;每门课平均分;找出总分最高的学生