struct cnode{
char cname[20];
short unit;
float grade;
cnode *nextcrs;};
*********************************
struct snode{
char fistname[10];
char lastname[15];
int stdno;
cnode *first crs;snode*next std;};
**********************************
snode*Best std(snode*p){ snode*q,*qmax;
cnode*r:
float max=0;
q=qmax=p;
while(q!=null){
r=q->firstcrs
float s=0;
int n=0;
while(r!=null){
s+=r->grade*r->unit
n+=r->unit;
r=r->nextcrs;
}
if(s/n)>max)
max=s/n;
qmax=q;
}
q=q->nextstd;
}
return qmax;
}
***************************************
with use that up student's struct in class i want
a program that give to user the following features by the menu:
1-new student registration
2-course(lesson)registration for students with student numbers.
3-show the list of student that recieved their desired course.(by name of course)
4-remove the specified course from specified student(by student number)
5-print the specified student's result(workbook)(by student number)
6-print average of student's grade in specified course.(by name cours)
* plz look to structs that i wrote and get help from structs to write this program.