Question: create c++ to read the data and include these functions int menu(); int readFile(ifstream &infile, struct student s[]); int displayStudents(struct student s[],int size); double calculateAverage(struct

create c++ to read the data and include these functions int menu(); int readFile(ifstream &infile, struct student s[]); int displayStudents(struct student s[],int size);

double calculateAverage(struct student s[], int size,sting ); use this structure struct student { string name; int no_of_units; int mark[5]; }

1 to display data 2 to find average mark -1 to exit.

average mark is for signle student. It need seach the correct student name then calculate the average mark for that student.

data: Ricky 2 55 70 Alex 4 96 67 88 98 Peter 3 45 37 61 Joseph 5 98 56 100 87 77 Tyler 4 65 80 79 85

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!