i have a code about a school of 5 classes, each class has 10 students :
the code
struct student {
char name[100];
float grade;
} ;
student *A[5];
for(int i=0;i<5;i++){
A[i]=new student [10];
}
can any one help me to
a) Write a code necessary to enter the information for all the students above from KB.
b) Write a function that accepts a class of students and it calculates and displays the average of the class.