Write a function that matches the function call in the following code fragment. An array contains the names of the students in a class. A second array contains the names of the waitlisted students. The purpose of the function is to add students from the waiting list. See details below:
const double NO_STU = 15;
assume the maximum number of students in any class is 15.
string myClass[NO_STU] = {"Bob", "Mary", "Tim", "Jamie", "Ann"};
int stu = the number of students enrolled in this class;
string waitlist[] = {"Tom", "Linda", "Zoe"}; // Marks the end of the waiting list
addStu(myClass, stu, waitlist);
For instance, given the arrays myClass[] and waitlist[], after the call, myClass[] will contain {"Bob", "Mary", "Tim", "Jo", "Jamie", "Ann", "Tom", "Linda", "Zoe"}, and no_stu is now 9. The array waitlist[] does not change.
List any assumptions you make in your design: