Design C++ program that processes a list of records stored in a text file and generates a report that shows all students' marks, average marks of students
and also their highest and their lowest marks.
The program should contain :
string fullName to store a student's name
int marks[4] that is an array to store student's marks
int numofSubjects that holds the number of subjects that have been chosen
and at least the following member functions:
appropriate constructors (including a copy constructor) and a destructor
setStudentData(…)
getNumOfSubjTaken()
getAverageMark()
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 1 | 2 |