(fp);\rV?100W\rXYZ[\],^\]Z3`abcd,efg\rhijkl(mn\\r]o?pq?r`acd)?st?\ruvcd,wxZbklyst?buvkz{|}g*stud*.\r1 .?\r2 .? \r#include *stdio. h*\rstruct student\r{ char num[6];\rchar name[8];\rint score[3];\rfloat avr;\r} stu[5];\rmain()\r{int i, j, sum;\rFILE *fp;.\r/*input*/\rfor(i=0;i<5;i++)\r{ printf (zz\n please input No. %d score:\nz?, i);\rprintf(*stuNo:*);\rscanf(*%s0@stu[i]. num);\rprintf("name:*)I\rscanf(*%s0@stu[i]. name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf("score %d. 0@j+1);\rscanf(*%d*, &stu[i]. score[j]);\rsum+=stu[i]. score[j];\r)\rstu[i]. avr=sum/3. 0;\r)\rfpfopen(*stud”, *w*);\rfor (i=0;i<5;i++)\rif(fwrite(&stu[i] sizeof(struct student), 1, fp)!=1)\rprintf ("file write error\n?z);\rfclose(fp);