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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started