0 like 0 dislike
8.7k views

Write a program with following requirements:

  • Define the structure type student with fields: name, code, and grade.
  • Write a function to sort the structures in grade ascending order and another function to display the data of the students who got a higher grade than the average grade of all students. If there is only 1 student in the list, display the data of that student.
  • Write a program that uses this type to read the data of 100 students and store them in an array of such structures. If the user enters the grade −1, the insertion of student data should terminate. Then print the data of the students who got a higher grade than the average grade of all students. 

 Example input:

Edgar
20161123
78
Robert
20161523
75
Rebecca
20166123
66
Todd
20161673
86
End
1
-1

Example output:

Students who got a higher grade than the average grade of all students:
Name: Edgar
Code: 20161123
Grade: 78
Name: Todd
Code: 20161673
Grade: 86

 

[Exam] asked in Midterm
ID: 23789 - Available when: Unlimited - Due to: Unlimited

reshown by | 8.7k views

70 Answers

0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



struct student{
* ** * ** ** ** name[20];
** * * * ** *** code;
* * ** * ** ** **** grade;

};



void sort(int n, struct student s[])

{
* * * * * * * *** * * i, j;
* ** ** * * ** **** ** ** ** * student temp;
****** *** * **** * * i<n; i++)

    {
* ** * *** * * * * * ****** * ** * * * * j<n; j++)
* *** *** * ******** * ** ** * ** ** *
*** *** ** * * * * * * ** * * ***** * **** * ****** *** * * * * ** * ** > s[j].grade)
* ***** ** ****** * * * * *** * *** * * * ** * ** * ** * * ***
****** * **** * *** ** * *** * * * **** * *** * * * **** * * *** **** * * ** ** ** *** = s[j];
** **** ** ******* **** * * **** *** * ** * ** ** *** * * * ** * * * * * **** ** * * ** = s[i];
*** * ** * ** ** ** * ** *** ** * ** * ** * ********** * ** ***** **** * * ** ** ** ** * *** ** = temp;
* * **** **** * * ** **** * * *** ** * * *** * * * ** ****
** * * * ** ** ****** **** *** * ** * ****** *** ***
* ** * * * * * *** * * **

}



void display(int n, struct student s[])

{
*** ************ * *** * i, sum=0;


** * * * ** *** * * ***** i<n; i++)
* * * ** * ** *
* ** **** ** * ** ***** * **** ** ***** * += s[i].grade;
* ****** * *** ** * ** *
* * * * *** **** * * *** /= n;


* *** ** * * * *** ** ** * i<n; i++)
***** **** * * ***
* *** * ** * * * *** * **** * * **** * ** *** * ***** * > sum)
*** * * ** * * *** ****** *** ** * ** ** ** ** ** **
***** **** ** * ** * **** ** ***** * ** * * ** * * ***** * *** ** * * *** * %s\n", s[i].name);
* * * *** * * ** * ***** * * ** *** * * ** ** * ** ** *** ** ** * * * %d\n", s[i].code);
* * * ** ** ** **** **** ** *** * * * ** ** ** ** * ** *** ** ** %d\n", s[i].grade);
** * *** *** ** * *** * ** * * ** * * * *
* *** * * *** **** * * ***

}



int main()

{
** * * * * * ** ** ** * * student s[100];
*** **** *** * * ** i=0;


*** * * * * ** * *****

    {
*** * ** *** * * *** * ** **** * * * * ** *** *** s[i].name);
* ***** *** ** * * *** * * * * *** * ** * ***** &s[i].code);
**** * * ** * * * * **** ** **** * * *** *** **** *** * * * ** &s[i].grade);
* * ** * ** ** ** ** * *** ** * * ** * * * * *** == -1)
* *** **** * ** * ** ** ***** ** * * ******* * * * * * ***
* * ******* * *** * * *** *** **** * ** * *

    }


**** *** ** * *** * *** *** * * ** who got a higher grade than the average grade of all students:\n");
*** * * **** * *** * s);
*** ****** * * * * * ** s);


** **** * *** * **** 0;

}
answered by (5.2k points)
0 like 0 dislike
Hidden content!
* * * ** *
*** ******** * * **



typedef struct{
* * ***   char name[50];
** * ** ** int number;
* *** * * * int grade;
* *



int main(){
*** ** element ****
*** * *   int i = 0;
* ****** *** * int j = 0;
* * * ** int k = 0;
* ** * while(1){
* ***** ** *** * ** *** * *******
** * * * ** *** * ** * * * * * ** * *
* ** * *** *** * *** ** ** ***** * ** *****
** ** *** *** ** ** * == -1){
* **** * ** * *** *** * int average = 0;
***** ** * * **** ** ** ** **** != -1){
*** * *** * ** **** * ****** * average += ** **
** * * ** * * * ** *     i++;
**       * * * * ** **
**** **     *** ** * ** * ** = average / i;
* *** * ** * ** * * ** ** * ** ** * ** ***** who got a higher grade than the average grade of all *** * * **** *
** * * * * * * * *** ** ** * ** ** * **** != -1){
*** * * ** * ** ** * * * *** *** * * * ****** * > average){
**** ** **** ** * * * * **** * * *** * ** * ** *** *** ** * * * ***** * *
* ** * ******* * ******* * * * *** *** * * ** * * * ** ** * * * * * * ***** *** *** ** * *
* ** **** ** *** *** ** * * * * * * ** * * * * * **** * **** * ** ** * * * **
** * * * ***** * * * **** * ***** * ** ** ***
** ** ** ** ******** *** * *** * * * * * * * *
* ** *** ** ** ** *** *** ** * * * ** *
** *** * * * *** * * **** * * ** * ** 0;
* * * * * * ** * *** * ** * * **
*** * ** ***** * *** ** ** * **** * * ***
**** * * }

}
answered by (-134 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



struct students

{
**** * * *** * * * ******* name[10];
** ** * * * * **** ***** code;
* **** ** ** * *** ** grade;

};



void sort(int k, struct students s[])

{

int i,j;

struct students s1;



for(i=0;i<k;i++)

{
* **** *** *** * * ** * ***** * *
** ** * * ** *** ** * *
** * ***** ** *** ** ** ** * * ** ***** ** *** *** ** ***** * * *
* ** *** * * *** *** * * * * *
***** * * ** ** ** * * * **** * ******* ** * * ** **
**** ** ** * ** ** *** * * *** * * *** * * * ********* * * ***** * *
*** **** ** **** ***** ** **** ** *** * * ** * ** ** * ** ******* * **
** * *** * * ***** * *** **** ** *** * *****
* *** ***** * * ** **

}

}



int average(int k,struct students s[])

{
* *** * *** * ** * i,sum=0,aver;


*** *** *** **** ** * *** *** * * * *
*** *** ******** *****
** * * * ** ** *** * * * ** * * *** * ** ** * *
* **** * ** **** * **** * *** * * ** ***** ** *** * ** * %d\n",sum);
* * * ** *** ***
***** *** * * * **** * ** ***
* ** * * * ** * *** * * aver;

}







int main()

{

struct students s[100];

int i,k,aver;



for(i=0;i<100;i++)

{
* ***** * ** **** **** * ** *** * * ** ** **
** *** * * ** ** ** * * * * * ** ** ** *** * *
** ***************** *** ** * * * * *** ****


* **** * **** * ** * **** * * *
** * * * * ** ** ** *
** * * * * * * * *** * **** * *** * * * ***
* * ** * * **** *** * * * ** * ** ** * * ** *** * *
** * ** * * *** * *

}

sort(k,s);

aver=average(k,s);
** *** ** * * * ** *

printf("Students who got a higher grade than the average grade of all students:\n");



for(i=0;i<=k;i++)

{
***** * ** * * ** ******* * * **
* **** ** * ** *** **
** * * * **** **** * * * * *** * * * * ** * **** * ** ** * **
* ** ** * *** * * *** * * * * ** * * * * ** *** * * * **** ***** ***
* * ** **** ** *** * ** * * ** * *** *** * ** ** *** *** ** * * *

    }

}



}
answered by (-226 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



struct student{
************* *** ** ** * name[20];
******** * * *** *** *** code;
** * * * * * **** *** grade;

};



void sort(int n, struct student s[])

{
* * * * ** ** * ** ******* i, j;
** * * * * * ** * ** **** * student temp;
* **** * **** ** ** * ** i<n; i++)

    {
*** ***** * * * ** ********* * *** ** * * *** j<n; j++)
* * **** *** *** * * ******** ** *** * *
* ** * ***** ** * ** * * * * ** * ** ** ** ** **** **** * * * > s[j].grade)
** *** * * **** ** ***** **** * ** * ** ******* * * **** ***
* *** ** *** * **** ** * * * **** ** * * ** ****** * * * ** * * * ** * * * * * * * * * = s[j];
* * *** * * * * ** *** * *** * ** * ** ***** * ******* *** *** * *** * * ** * ***** * * ** = s[i];
** *** ** * * * * *** * ** * **** ** * *** * * **** * ** *** *** * ** * * = temp;
** * * * * * * * * * * * * ******* * * * **** * *
******* * ** *** * *** * * * * ***** * * ** ***
* ** ** * *** ***

}



void display(int n, struct student s[])

{
* * * * ** * * * ****** i, sum=0;


** ** * ** * ** * ** i<=n; i++)
* ** * ** ***** ** **** ***
** * * * ***** * * * ** * * *** *** * * ** += s[i].grade;
*** *** * ** *** **** * *
**** ** ***** * * * * *** /= n;


*** * * ** * * ** * * * *** i<=n; i++)
** * * ******** ** *
**** * ** ** * * ** * * *** *** * * * * ** * * ** > sum)
* ******* * ** * * ***** ** * *** * * * * **
* * ** * * *** * *** *** * ******* *** * *** * ** * **** ** ** * ****** ** ** ***** *** %s\n", s[i].name);
*** ** *** * * * ** * * * ***** * * * ** ** **** * * * * *** * * * ** * %d\n", s[i].code);
* ** **** ** * ** * * *** * ** * ** ** * * * * *** * * *** *** %d\n", s[i].grade);
***** * *** ** * * ** ** * ** * * * ***
* * ** *** ** * ** ** * *

}



int main()

{
* * ** *** ** ** * * student s[100];
** **** * * ** ** i=0;


** * * * * ** * ****

    {
**** * * * * ** * ***** *** * * * * * * ** ** * ** s[i].name);
* * * * * *** * * * ** * * ** ****** * * * * * * * *** * ** &s[i].code);
* ****** * * ** ** ** * * * **** **** * ** * ** ** ** * * &s[i].grade);
**** ** ** * *** ** ** ****** ** **** * * * ** ** * ****** == -1)
** * ** * *** * * * * * ** * * ** **** *** *** **** ** ***** * *
** ** * * * * * ** * ** * *** ** * * *

    }


* * **** * * * * **** *** *** * who got a higher grade than the average grade of all students:\n");
* *** *** * * *** *** * * s);
* * * * ***** * ** * * s);


**** * * * ** *** * * **** 0;

}
answered by (5.2k points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



struct students

{
* ** * **** ***** * ** name[10];
* ** * * *** * * ***** code;
* * * * ** * * * grade;

};



void sort(int k, struct students s[])

{

int i,j;

struct students s1;



for(i=0;i<k;i++)

{
* * ** ** * * * **** * ** * ** * **
*** *** * ** ** * *
*** ** ** ** **** * *** * ** ** ** * ** **** *** ** **** ** * * **
******** ** ****** * * * ****** * * * ** * **
** * * * ** * *** * **** ** * ******** * * * * ** ****** *
*** * ** ** **** *** * * **** *** * ** * ** ** * ** ***** * **
* *********** ** ** ** *** * * * * ***** *** * ** * ** ***** * ** *
* ** * * ** * * ** ** **** *****
* * *** ** * ** ** * ***

}

}



int average(int k,struct students s[])

{
* ** * ** ** * ** * i,sum=0,aver;


** * **** * ** *** * * ******
* *** *** **** ** ***
***** **** ** * * ** * *** **** **** ***** ****** * *****
* **** * * * ** ** * * * * ******* * * * * %d\n",sum);
********* **** ***
*** * ** * ** * **
* ** **** * * * ** * **** ** aver;

}







int main()

{

struct students s[100];

int i,k,aver;



for(i=0;i<100;i++)

{
***** ** ** * * ** * ***** *** * * *** * *** **
** ** ** ** ** ** * * ** *** **** * *** **
** *** ** **** * *** * * * * **** * **** *** *


** *** ** * ** * *** ** * *****
****** * * * * ** * ******
** ** *** * ** * *** * * ** ****** ******
** *** ** * **** * * *** ** * *** * ***
** *** * **** * ** *

}

sort(k,s);

aver=average(k,s);



printf("Students who got a higher grade than the average grade of all students:\n");



for(i=0;i<=k;i++)

{
* ** ** ** *** *** * * **** *
* **** * * * * * *****
** *** ** ****** ****** * ****** * *** ** * * * * * * * ** * *
* ** * * * *** * **** ** * * * * * ** * ** ** * *
** ** **** * *** * ** * * * * * * * ** * * * ** ** * * ** *
*** * ** ** ** *** *** **

}



}
answered by (-226 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



struct students

{
* ***** **** ** *** * * name[10];
* **** * ** **** * code;
* **** * * * * * ** ********* grade;

};



void sort(int k, struct students s[])

{

int i,j;

struct students s1;



for(i=0;i<k;i++)

{
* ** **** * **** * * * *
* ** ** * * * * * * * **
* *** * ** ** * **** * ** * * **** * * * * * ** ** *** * *** **
*** * **** *** ** * * * *** * ** **
* ** ** * *** * ** ** * * * **** **** * ** ** * * ** * * *** *
* * ** *** * ** ** ******* * * ** * ** *** ** ** * * * ***** *
*** * **** ****** **** * * *** * * * * *** * * *** ** ** * * **
** ** ****** * * **** **** ** ***** ** ** * ****
* * ** * ** * * *

}

}



int average(int k,struct students s[])

{
** * ** ** *** ** i,sum=0,aver;


** ** ** * * **** * * * * * * *
* * ****** * * * * *
***** * * **** * ** *** *** * *** * * * * * * ** *
** * * * ** * * ** * ** **** *** *** *** ** * * * *** * ** %d\n",sum);
* ** ** * ** * *** * *** ** *
* *** ** ** ********** *** * ***
* * *** *** ***** * ** * aver;

}







int main()

{

struct students s[100];

int i,k,aver;



for(i=0;i<100;i++)

{
** * ** * * * **** * * * * * ** * ** ** *** *
* * *** ** **** * ** * *** *** * * * * * * ** *
**** * ** ** **** ***** * ** ****** ** * ***


* * * * * ** * * ***********
* ** * *** * ** ** *
* * * * * ***** *** * * ***
** * ****** ** * * * ** ** *** * * ****
**** ** * * *

}

sort(k,s);

aver=average(k,s);



printf("Students who got a higher grade than the average grade of all students:\n");



for(i=0;i<=k;i++)

{
** *** * * * **** ** * **** ** *
* ** * * **
***** * * ***** ** * * * * * ** ** * * * *** * * * * * * *
* * * *** ** * * * * * ** **** ****** ** ** *
***** **** * ** ** * ***** *** ** * ** * ** * * *
*** ** ** * ** * *

}



}
answered by (-226 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>



struct PPAP

{
** * * ***** * * ** * * * * name[100];
*** * ** **** **** * ** *** code;
** ** * * * *** ** * grade;

};



int TURN(int j, struct PPAP a[100])

{
***** * * ** * ** i,k;
*** * ** *** ** * **** * PPAP c;
** **** ** ** * * *** ** * * i<j; i++)

    {
*** * ***** ** *** * *** ** ** * * * * k<j; k++)
**** ***** * ** * ** ******* *** * ******
*** ** * * * * * * ** * *** * * ** ** * ********* ** ** * * *** * * *** * ** *
******** * *** ** *** * * *** ** ** * * ** * * * ** ******* * *** **** **
** * * * * ************ * * ** ** **** **** ***** ** * * * **** * * *** * * * *
* ** * * * * * **** * * ** ** * * ** * * ** ******* ** ***** * * *** * ******* ** ** **
* * * * ** ********* * ** ** ** ** * * * ** * ** ** ** ** ** ** * * ** * *
** ******* * * * ** ** ** ** * * * ** ** *
*** ** * ** * *** **** * * ** **

    }

*** ** * *** * * * ** * * 0;

}



void AVERGE(int j, struct PPAP a[100])

{
* *** * ** * * *** * **** *** i,sum=0,aver;
* ** *** *** * ** * * ** ***** * ** * who got a higher grade than the average grade of all students:\n");
* * * * ** * * * i<j; i++)

    {
** * * * * *** * * * ** **** ******* *** * *

    }
** * ** *** * ** ***** * ** *
* * * *** *** * * * ***** i<j; i++)

    {
** * ****** ** ** ***** ** * *** * ***** * *
* * *** * *** * **** ***** * * * ** ** **
** * * * *** **** * ** * * * * * ** * * ** *** * * * * ** * * ** * ** *** * ** %s\n",a[i].name);
** * ** *** ** ** * * * * * *** * *** ** *** * ** * * * * * * *** %d\n",a[i].code);
************ **** * * ** ** ******** * * ** *** * *** * * * ** ** * ** * * * %d\n",a[i].grade);
* * ** ** *** * ** ** ***** ** * ** ** ***

    }

}



int main()

{
* ** * * *** ** ** ** * i,j=0;
* *** * ****** *** PPAP a[100];
* * ** * *** * *** ** ;i++)

    {
* ***** ** ** *** *** ********* ***** ** ** ***** **** * *** ** * ***
* * **** * ** ** * ***** * *** * * ** ** ** ****** ** * * ** ** **
* * ** **** * * **** **** * * * * *** * ** * *** ** ** ** * * * * ** *
******* * * *** * * * * ** * * *** *** **** * ***** ******
*** * *** * * **** ** * * * *
** ** * ** * ** *** * * **** * * *** **** * **** ****** * * ** * * ***
* * * * * * ********* * * ** * ** *** *
* ** *** *** ** ** ** ** *** * * * * ****

    }
** * ** * * ** * *
*** * * ** * *** * * ***** *

    
** * *** *** * * ** ** ** * 0;

}
answered by (-264 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



typedef struct Student{

    char name[50];

    int code;

    int grade;

}student;



int main(){

    int n;

    student list[n];

    while(1){
** ** * * **** ** * * * ** ** **** * *** * i;
* ** * *** * *** ** * **** ** * sum=0;
*** * ** *** * *** ** ** ** ** ** * **** * ***** * average=0;
* * ***** *** * ***** * **** *** * **** * * stu=0;
* * ** * * ** * ** * * * * * * * ** * * * * * * *
* * * * * ** ** * ** * ** * *** **** * * * *** ** * * * ** ** * **** * * ** ** * ** ** *** ****** * ****
* **** ** **** * * *** ** * * * **** * *** * * ** **
*** ** *** ** * *** * * * ******** * ** * * ** * * *** **** *** * * *** == -1){
**** *** * * *** *** * * * ** ** ** ** * * ** ** * ****** *** ** ** ** **** ***** * * ****** * * ** * **** **** *
** ** * * * **** * ***** *** ** * **** ** * * ** *** ** *** *** *** ** *** * * ** * * * * * * * * ** *** = sum + list[i].grade;
*** * * ** ***** *** * ** * ****** * * * ** ******** * * * * *** * * * **** *********** **
* * * *** ** ** * ** ** ** * * * * * *** *** * * ** *** * * ** * * *** ** * *** = sum / stu;
*** * ** ** * *** * * *** *** * ***** ** * * * * ** ** * * ** * * * * ** ** ** * **** ** **
* **** * ** ** *** * ** * * * * * * * ***** *** * *** * ** * ** ** ** * * *** ** * * ** * *** ***** * * **** **
**** *** ** ** * ** ** ** *** * ** ** * ** ** * ** ***** *** * ** *** **** ** * * * *** *** *** ** *** ** *** * * * ** ** ** * *** ** * * ** **** **** ** * * * * ***
* * * **** ** **** * *** * * * * ******* * ** **** ** **** *** *** * * * *** *** * *** ** ****
******* ** ***** * ** * * ** *** * *** *** * ** *** ** **** * * ***** *
** * ** * ** *** *** * * ** *** *** ***** ***** * * ** ** *** **

        }

    }

    return 0;

}
answered by (24 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <string.h>

#define KK 100



int main(void)

{
*** ** * **** **** *** ** * note

    {
* * ******* ** * * * * *** ** * ** * * ** * name[KK];
**** ** **** ** * * * ** ** * * **** id;
* *** *** **** ** ** *** * ** * **** *** ** * grade;

    } std[KK];


* * * * * * *** i=0,j,k,m=0,sum=0,avg=0;






** **** **** * ** * **** ****

    {
** ** * *** * * * * * ******* * * * *** *** ** * * * ***** * * * * *** *
*** * ** * ***** * **** ** ** * *** * **** * * *** ** ***** **
* **** *** * * *** ** ** * * * *** * ** * ** ** * * **** ** ** **


* ***** ** ** **** ** * *** ***** * ** ** * * *** * *** * * ***
* ** * ** * * * ** ** **** **** * * ****
** * ** **** ** ***** * ** *** ** * * * * * ***** ** ** *
******** * * ** ** ** ** * * * ***** * * * ****** * * *** ** *
*** ** ** *** * ** ** **** ******* * ****** * * ** ****
* * * ** * * * * ****** ** ** * * ***** * *** * * *
**** * * ** ** ** * * * * ** ** ** * * ** ***
**** * ** **** * ** * * ***** ** ** * ** *** * *** ******** *
* * **** * ** ** ** *** * * ** ** * * ** *
* ** *** ** * ****


* * * *** * * *** ** *** i<m; i++)

    {
******* ******** ** * * * * *** *** * ** ** * * *
** ** * * ** * ** *
* ** * * * **** **** *


* * * *** * * ** ** * * * * * * * who got a higher grade than the average grade of all students:\n");


* ** * * ** ** ** ** *** ** * i<m; i++)

    {
** * *** ** * * * ******** *** ** ** * * * *** *
*** * *** * ** * * * * ** ** * ** * ** **
** * * ******* * ** * ****** ***** * * ** * * ****** **** * ** * ** %s\n",std[i].name);
** * * * *** ** ** * * * * ***** **** * *** * ****** * * *** * * ***** * %d\n",std[i].id);
** * * *** * ** * * * *** * * ** *** * * * ***** * ** ** * **** * * * %d\n",std[i].grade);
* ** * * *** * **** * ** * * ** *

    }

}
answered by (-324 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<string.h>

typedef struct Student

{
** ** ***** * *** * **** name[1000];
* ** * ** ** * ** * code;
****** *** * ** ** grade;

} Student_t;



void compare(Student_t *student, int count);

void display(Student_t *student, int count);



int main ()

{
* *** **** * * ** ** ****** student[100];
*** ** * **** ** count=0;
* * ** * ** * * * *** ** ***** * * * ** *
***** *** ** * * *** ******** ** * * ** ***
** ********* ** *** ** * **** **** * * ***** ****** * * **** *
* *** *** ** ** **** ***** * * * **** * **

    {
*** ****** * * ** * ** **** ** * * * ** ** **
*** * ****** *** *** *** ** ** *** * ***** * ** * * ** * * * ** **** ** * * **
** * *** * * * ** **** * * ** * * * * **** * ***** ** * * * * * ** *
*** ** * ** * * * * * * ** ** * * ** * * ** ** * * * ** * ***

    }
*** * * * * * ** * ** **** * *** ** *
* * ** ** * * * ** ** ** * ** *

}



void compare(Student_t *student, int count)

{
*** * ** * ** ** * * i, j;
* ** * *** * * ** * ** **** t;
*** * * **** ** * * * *** ** * * * *

    {
* * ** * * * * * * * **** ** ** * * * ** **** * **** * *** **
*** * *** * ***** * ****** * * *
** * * * ** * *** ** ** * ** ** *** *** * * ** * **** *** * *** ** ** * * *** ** *
*** * *** ** * **** * **** *** * * * * * * ** * ** **** *** * ** *
*** * * * *** * * * * * *** **** * ** * * *** ** *** * *** ** * * ** ** ****** ** ** * * **
**** ** * * * ** *** ** ** ** ** ** *** ** * * ** * * * ***** *** ** * *** ** * * * ** * *** * *
** * ** * * **** ** ** ** **** ** * * * ** * *** ****** ** *** * ** *
* * * **** *** ** * * * **** ** * * ** * ** *** ** * * *** *
********* * ** *** * *** *** * ** ** * ***** *

    }

}



void display(Student_t *student, int count)

{
** ***** * * * * *** ***** * i, avg=0;
*** *** *** * * **** **

    {
**** * * * * ** ** * *** ** ** * * * *** ** * *

    }
* *** ** ****** * *** **
** * * *** * ** ****** * ** *** who got a higher grade than the average grade of all students:\n");
*** * ** ** ** *** * * * ***** * ** * **
** ** *** ******* ** **
* ** **** ** * *** ** * ** * * * * * *** * * * *** * * *
*** *** **** *** * * ******* * ** * *
***** * ** * ** ** *** * * * ** * *** * *** * ** * * * ***** ** ** * * *** %s\n",student[i].name);
****** * ** ****** ** * ***** ** * ** * * * * ** ** ***** *** ** %d\n",student[i].code);
**** * * ** * ** *** * * ** ** * ** ** ** ** * **** * * %d\n",student[i].grade);
* * ***** ***** * * * * *** ** * * * *

    }

}
answered by (-367 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.131.189
©2016-2025

Related questions

0 like 0 dislike
8 answers
[Exam] asked Apr 21, 2017 in Midterm
ID: 24273 - Available when: Unlimited - Due to: Unlimited
| 1.6k views
0 like 0 dislike
6 answers
[Normal] asked Apr 21, 2017 in Midterm by thopd (12.1k points)
ID: 24271 - Available when: Unlimited - Due to: Unlimited
| 1.4k views
0 like 0 dislike
13 answers
[Exam] asked Apr 21, 2017 in Midterm
ID: 24269 - Available when: Unlimited - Due to: Unlimited
| 2.3k views
0 like 0 dislike
46 answers
asked Apr 13, 2017 in Midterm by thopd (12.1k points) | 5.8k views
0 like 0 dislike
44 answers
[Exam] asked Apr 13, 2017 in Midterm
ID: 23785 - Available when: Unlimited - Due to: Unlimited
| 5.9k views
12,783 questions
183,442 answers
172,219 comments
4,824 users