A school wants to be able to check how students have performed in any course. To do this they will use sampling. They will pick the marks of any 5 students and then get the average grade. Each course must have a mid-semester exam mark, a final exam mark, and assignment, project, or quiz marks.
Write a C++ program that can enable a school to do the sampling explained in the narrative above. The program must be able to do the following:
Add student marks into the sample;
Edit the marks in the sample;
View the marks of the students in the sample;
Display the average grade for the course.
The program is only required to hold data while the program is running. If the user exits the program, then all the data entered will be lost.