please help!!: write a program taht ask the name of the student, id, grade ofchi
ID: 3610604 • Letter: P
Question
please help!!:write a program taht ask the name of the student, id, grade ofchinese, grade of englsih and grade of math. store the data using structure like this:
struct score
{
char*name;
int id;
int s1,s2,s3;
float average;
};
struct score class[ ];
**the programs has to give the name of the students and grades inorder from the highest to the lowest average of the grades, if theaverage of the grades is the same for two students the highest onewill be the one with the hoghest score in the chinese class.
**the user has to input the number of students that are going to belisted.
Explanation / Answer
#includeusing namespace std;struct score{char*name;int id;int s1,s2,s3;float average;}*my_class;void print_stud(struct score stud){coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.