PPEp->EnglishEp->Math;\r)\rvoid Average(student *p)\r(\rp->AverageScore=(p->CPP+p->English+p->Math )/3.0;\r)\rvoid Sort(student *p, int n)\r(\rfor(int i=0;i<n-l;i++) ?2\rfor(int j=i+1 ;j<n;j++)\r(\rif(p[i].AverageScore>p[j]. AverageScore)\r(\rstudent temp;\rtemp=p[i];\rp[i]=pljJ\rp0]=temp;\r)\r)\r)\rvoid Display(student *p)\r(\rcout$p->Number$,\t,$p-> C P P $,\t,$p->English$'\t,$p->M ath$,\t,$p->AverageSc\rore$endl;\r)\rvoid main()\r(\rconst int N=5; 8\rstudent sts[N];\rcoutvv”5 @>?0C++008 n$endl;\rfor(int i=0;i<N;i++)\rInput(&sts[i]);\rfor(i=0;i<N;i++)\rAverage(&sts[i]);\rSort(sts,N);\rcout$,,Number',$ ,\t'$ uCPP',$ ,\t,$ ',English',$ ,\t,$ ,,M ath"$,\t,$ nAverageScore),$ e n\rdl;\rfor(i=0;i<N;i++)\rDisplay(&sts[i]);