Computer Science, asked by jjzach21, 9 months ago

Jeeva is the chairman of ABC university and he is planned to improve students education. So he is conducted meeting for all departments HODs. Write a program to help all department HODs to display student details. Create a structure called Student. struct Student { char name[30]; char department[20]; int yearOfStudy; float cgpa; }; Write a program to get the details of 'n' students and to display their details, sorted in ascending order based on the name.

Answers

Answered by nidaeamann
16

Explanation:

int main void

{

struct student

{  

    char name[30];

     char department[20];

     int yearOfStudy;

     float cgpa;

}

int n, i=1;

student data[ ]

while(i<n)

{

scanf("Enter the name of studnet", data.name[ i])

scanf("Enter the department of studnet", %data. department[ i])

scanf("Enter the year of study", data.yearofStudy[ i])

scanf("Enter the CGPA of studnet", data.cgpa[ i])

i++

}

for ( i=1 ; i < n, i++)

{

printf("Name of studnet", data.name[ i])

printf("Department of studnet", data. department[ i])

printf("Year of study", data.yearofStudy[ i])

printf(" CGPA of studnet", data.cgpa[ i])

}

Return

Answered by parthik1999
22

Answer:

Explanation:

In This file answer and pass all hidden condition

Attachments:
Similar questions